	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_kld_address
_find_kld_address:                      ## @find_kld_address
	.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	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.1:
	movq	_off_address@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.2:
	movq	_off_filename@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movq	_off_next@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movq	%rsi, %r15
	callq	_basename
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_read_pointer
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r13
	leaq	-44(%rbp), %r14
	movq	_off_filename@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_off_next@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_read_pointer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_read_pointer
	movl	(%r12), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_target_read_string
	cmpl	$0, -44(%rbp)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	movq	%rax, %r15
	movq	-56(%rbp), %rdi
	callq	_xfree
	testq	%r15, %r15
	movq	_off_filename@GOTPCREL(%rip), %r15
	jne	LBB0_9
## %bb.8:
	movq	_off_address@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_read_pointer
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	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	_off_address,8,3                ## @off_address
	.comm	_off_filename,8,3               ## @off_filename
	.comm	_off_next,8,3                   ## @off_next
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.no_dead_strip	_find_kld_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_kld_address
_find_kld_address:                      ; @find_kld_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x21, _linker_files_addr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _linker_files_addr@GOTPAGEOFF]
Lloh2:
	adrp	x23, _off_address@GOTPAGE
Lloh3:
	ldr	x23, [x23, _off_address@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x23]
Lloh4:
	adrp	x24, _off_filename@GOTPAGE
Lloh5:
	ldr	x24, [x24, _off_filename@GOTPAGEOFF]
Lloh6:
	adrp	x25, _off_next@GOTPAGE
Lloh7:
	ldr	x25, [x25, _off_next@GOTPAGEOFF]
	ldr	x10, [x24]
	ldr	x11, [x25]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x10, #0, #4, ne
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x1
	bl	_basename
	mov	x20, x0
	ldr	x0, [x21]
	bl	_read_pointer
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x26, _PATH_MAX@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PATH_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	add	x0, x8, x21
	bl	_read_pointer
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x21
	bl	_read_pointer
	ldr	w2, [x26]
	add	x1, sp, #8
	add	x3, sp, #4
	bl	_target_read_string
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_strcmp
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_xfree
	cbnz	x22, LBB0_4
; %bb.7:
	ldr	x8, [x23]
	add	x0, x8, x21
	bl	_read_pointer
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, ne
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_linker_files_addr,8,3          ; @linker_files_addr
	.comm	_off_address,8,3                ; @off_address
	.comm	_off_filename,8,3               ; @off_filename
	.comm	_off_next,8,3                   ; @off_next
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.no_dead_strip	_find_kld_address
.subsections_via_symbols
