	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kld_current_sos
_kld_current_sos:                       ## @kld_current_sos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_linker_files_addr@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_22
## %bb.1:
	movq	_kernel_file_addr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.2:
	movq	_off_address@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_22
## %bb.3:
	movq	_off_filename@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_22
## %bb.4:
	movq	_off_next@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_22
## %bb.5:
	movq	$0, -72(%rbp)
	callq	_read_pointer
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_read_pointer
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	-72(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	addq	$16, %r13
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_read_pointer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_21
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$32, %edi
	callq	_xmalloc
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$8, %edi
	callq	_xmalloc
	movq	%rax, 24(%r13)
	movq	$0, (%rax)
	movq	_off_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_read_pointer
	movq	%rax, %rdi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	leaq	-44(%rbp), %rcx
	callq	_target_read_string
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_warning
	movq	%r13, %rdi
	callq	_free_so
	jmp	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rdi
	movq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-56(%rbp), %rdi
	callq	_xfree
	movq	(%r13), %rdi
	movq	8(%r13), %rsi
	movl	$8, %edx
	callq	_find_kld_path
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_off_pathname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %rdi
	callq	_read_pointer
	movq	%rax, %rdi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	leaq	-44(%rbp), %rcx
	callq	_target_read_string
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %r15
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	_off_address@GOTPCREL(%rip), %r15
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_warning
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	movl	$8, %edx
	callq	_strlcpy
	jmp	LBB0_16
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rdi
	movq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-56(%rbp), %rdi
	callq	_xfree
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_read_pointer
	movq	24(%r13), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_18
LBB0_21:
	movq	-72(%rbp), %rax
	jmp	LBB0_22
LBB0_6:
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_linker_files_addr,8,3          ## @linker_files_addr
	.comm	_kernel_file_addr,8,3           ## @kernel_file_addr
	.comm	_off_address,8,3                ## @off_address
	.comm	_off_filename,8,3               ## @off_filename
	.comm	_off_next,8,3                   ## @off_next
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kld_current_sos: Can't read filename: %s\n"

	.comm	_off_pathname,8,3               ## @off_pathname
L_.str.1:                               ## @.str.1
	.asciz	"kld_current_sos: Can't read pathname for \"%s\": %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"kld_current_sos: Invalid address for kld \"%s\""

	.no_dead_strip	_kld_current_sos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kld_current_sos
_kld_current_sos:                       ; @kld_current_sos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _linker_files_addr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _linker_files_addr@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _kernel_file_addr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _kernel_file_addr@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x9]
Lloh5:
	adrp	x26, _off_address@GOTPAGE
Lloh6:
	ldr	x26, [x26, _off_address@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh7:
	adrp	x27, _off_filename@GOTPAGE
Lloh8:
	ldr	x27, [x27, _off_filename@GOTPAGEOFF]
	ldr	x10, [x27]
Lloh9:
	adrp	x28, _off_next@GOTPAGE
Lloh10:
	ldr	x28, [x28, _off_next@GOTPAGEOFF]
	ldr	x11, [x28]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	ccmp	x9, #0, #4, ne
	ccmp	x10, #0, #4, ne
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_19
LBB0_2:
	str	xzr, [sp, #24]
	bl	_read_pointer
	mov	x19, x0
	ldr	x0, [x20]
	bl	_read_pointer
	cbz	x0, LBB0_19
; %bb.3:
	mov	x20, x0
	add	x21, sp, #24
Lloh11:
	adrp	x25, _off_pathname@GOTPAGE
Lloh12:
	ldr	x25, [x25, _off_pathname@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.2@PAGE
Lloh14:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh15:
	adrp	x23, l_.str@PAGE
Lloh16:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x24, [x21]
	add	x21, x24, #16
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
	add	x0, x8, x20
	bl	_read_pointer
	mov	x20, x0
	cbz	x0, LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x19
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #32
	bl	_xmalloc
	mov	x24, x0
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w0, #8
	bl	_xmalloc
	str	x0, [x24, #24]
	str	xzr, [x0]
	ldr	x8, [x27]
	add	x0, x8, x20
	bl	_read_pointer
	add	x1, sp, #16
	add	x3, sp, #12
	mov	w2, #8
	bl	_target_read_string
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_safe_strerror
	mov	x1, x0
	mov	x0, x23
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_warning
	mov	x0, x24
	bl	_free_so
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	ldr	x1, [sp, #16]
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [sp, #16]
	bl	_xfree
	ldp	x0, x1, [x24]
	mov	w2, #8
	bl	_find_kld_path
	cbnz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x8, x20
	bl	_read_pointer
	add	x1, sp, #16
	add	x3, sp, #12
	mov	w2, #8
	bl	_target_read_string
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x21
	mov	x21, x23
	mov	x23, x26
	mov	x26, x22
	mov	x22, x25
	ldr	x25, [x24]
	bl	_safe_strerror
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	mov	x25, x22
	mov	x22, x26
	mov	x26, x23
	mov	x23, x21
	mov	x21, x27
Lloh19:
	adrp	x27, _off_filename@GOTPAGE
Lloh20:
	ldr	x27, [x27, _off_filename@GOTPAGEOFF]
	bl	_warning
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x1, x0, [x24]
	mov	w2, #8
	bl	_strlcpy
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24, #8]
	ldr	x1, [sp, #16]
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [sp, #16]
	bl	_xfree
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	add	x0, x8, x20
	bl	_read_pointer
	ldr	x8, [x24, #24]
	str	x0, [x8]
	cbnz	x0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x24]
	mov	x0, x22
	b	LBB0_9
LBB0_18:
	ldr	x0, [sp, #24]
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_linker_files_addr,8,3          ; @linker_files_addr
	.comm	_kernel_file_addr,8,3           ; @kernel_file_addr
	.comm	_off_address,8,3                ; @off_address
	.comm	_off_filename,8,3               ; @off_filename
	.comm	_off_next,8,3                   ; @off_next
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kld_current_sos: Can't read filename: %s\n"

	.comm	_off_pathname,8,3               ; @off_pathname
l_.str.1:                               ; @.str.1
	.asciz	"kld_current_sos: Can't read pathname for \"%s\": %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"kld_current_sos: Invalid address for kld \"%s\""

	.no_dead_strip	_kld_current_sos
.subsections_via_symbols
