	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function path_check
_path_check:                            ## @path_check
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_23:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	leaq	-136(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_23
## %bb.3:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-136(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	movq	%rax, -104(%rbp)
	movq	_PATHCTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_sysctlnametomib
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	-104(%rbp), %rsi
	leaq	-80(%rbp), %rdi
	leaq	-120(%rbp), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movq	-120(%rbp), %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_err
LBB0_9:
	movq	-104(%rbp), %rsi
	leaq	-80(%rbp), %rdi
	leaq	-120(%rbp), %rcx
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_11:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r12, -160(%rbp)
	leaq	-160(%rbp), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strlcat
	movq	%r13, %rdi
	leaq	-136(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	jne	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_strlcpy
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$47, -1(%rax,%r13)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strlcat
	jmp	LBB0_15
LBB0_20:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	movl	$-1, %r14d
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_22
LBB0_16:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	xorq	-136(%rbp), %rax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	xorq	-128(%rbp), %rcx
	orq	%rax, %rcx
	setne	%al
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.17:
	testb	%al, %al
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_warnx
LBB0_19:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	xorl	%r14d, %r14d
LBB0_22:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".ko"

	.comm	_PATHCTL,8,3                    ## @PATHCTL
L_.str.1:                               ## @.str.1
	.asciz	"sysctlnametomib(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"getting path: sysctl(%s) - size only"

L_.str.3:                               ## @.str.3
	.asciz	"allocating %lu bytes for the path"

L_.str.4:                               ## @.str.4
	.asciz	"getting path: sysctl(%s)"

L_.str.5:                               ## @.str.5
	.asciz	";"

L_.str.6:                               ## @.str.6
	.asciz	"/"

L_.str.7:                               ## @.str.7
	.asciz	"%s will be loaded from %s, not the current directory"

L_.str.8:                               ## @.str.8
	.asciz	"%s is not in the module path"

	.no_dead_strip	_path_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function path_check
_path_check:                            ; @path_check
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x20, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_4
LBB0_1:
	mov	w0, #0
LBB0_2:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.3:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_2
; %bb.5:
	sub	x1, x29, #136
	mov	x0, x19
	bl	_stat
	cbnz	w0, LBB0_1
; %bb.6:
	ldp	x8, x28, [x29, #-136]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	sub	x0, x29, #108
	bl	_nitems
	stur	x0, [x29, #-144]
Lloh12:
	adrp	x24, _PATHCTL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PATHCTL@GOTPAGEOFF]
	ldr	x0, [x24]
	sub	x1, x29, #108
	sub	x2, x29, #144
	bl	_sysctlnametomib
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x2, [x24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	ldur	x1, [x29, #-144]
	sub	x0, x29, #108
	sub	x3, x29, #152
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	x2, [x24]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	ldur	x8, [x29, #-152]
	add	x23, x8, #1
	mov	x0, x23
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.11:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	bl	_err
LBB0_12:
	ldur	x1, [x29, #-144]
	sub	x0, x29, #108
	sub	x3, x29, #152
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
	ldr	x2, [x24]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	stur	x22, [x29, #-120]
Lloh22:
	adrp	x24, l_.str.5@PAGE
Lloh23:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh24:
	adrp	x25, l_.str.6@PAGE
Lloh25:
	add	x25, x25, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x19
	bl	_strlcat
	sub	x1, x29, #136
	mov	x0, x21
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #120
	mov	x1, x24
	bl	_strsep
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x0
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x23
	bl	_strlcpy
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x25
	bl	_strlcat
	b	LBB0_15
LBB0_19:
	mov	x0, x22
	bl	_free
	cbnz	w20, LBB0_21
; %bb.20:
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_21:
	mov	w0, #-1
	b	LBB0_2
LBB0_22:
	ldp	x8, x9, [x29, #-136]
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	cmp	x8, x10
	ccmp	x9, x28, #0, eq
	cset	w8, ne
	cbnz	w20, LBB0_25
; %bb.23:
	cbz	w8, LBB0_25
; %bb.24:
	str	x23, [sp, #-16]!
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_warnx
	add	sp, sp, #16
LBB0_25:
	mov	x0, x22
	bl	_free
	b	LBB0_1
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".ko"

	.comm	_PATHCTL,8,3                    ; @PATHCTL
l_.str.1:                               ; @.str.1
	.asciz	"sysctlnametomib(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"getting path: sysctl(%s) - size only"

l_.str.3:                               ; @.str.3
	.asciz	"allocating %lu bytes for the path"

l_.str.4:                               ; @.str.4
	.asciz	"getting path: sysctl(%s)"

l_.str.5:                               ; @.str.5
	.asciz	";"

l_.str.6:                               ; @.str.6
	.asciz	"/"

l_.str.7:                               ; @.str.7
	.asciz	"%s will be loaded from %s, not the current directory"

l_.str.8:                               ; @.str.8
	.asciz	"%s is not in the module path"

	.no_dead_strip	_path_check
.subsections_via_symbols
