	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_kld_path
_find_kld_path:                         ## @find_kld_path
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_exec_bfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_bfd_get_filename
	movl	%eax, %edi
	callq	_dirname
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_check_kld_path
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_10
LBB0_3:
	movq	_module_path_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.4:
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	callq	_target_read_string
	cmpl	$0, -44(%rbp)
	jne	LBB0_10
## %bb.5:
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi
	callq	_make_cleanup
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_check_kld_path
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_module_path_addr,8,3           ## @module_path_addr
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_xfree,4,2                      ## @xfree
L_.str.1:                               ## @.str.1
	.asciz	";"

	.no_dead_strip	_find_kld_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_kld_path
_find_kld_path:                         ; @find_kld_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exec_bfd@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_bfd_get_filename
	bl	_dirname
	cbz	x0, LBB0_3
; %bb.2:
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_snprintf
	mov	x0, x20
	mov	x1, x19
	bl	_check_kld_path
	cbnz	x0, LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _module_path_addr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _module_path_addr@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.4:
Lloh8:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #24
	add	x3, sp, #12
	bl	_target_read_string
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _xfree@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x1, [sp, #24]
	bl	_make_cleanup
	ldr	x8, [sp, #24]
	str	x8, [sp, #16]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, x22
	bl	_strsep
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x4, x21
	bl	_snprintf
	mov	x0, x20
	mov	x1, x19
	bl	_check_kld_path
	cbz	x0, LBB0_7
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_module_path_addr,8,3           ; @module_path_addr
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_xfree,4,2                      ; @xfree
l_.str.1:                               ; @.str.1
	.asciz	";"

	.no_dead_strip	_find_kld_path
.subsections_via_symbols
