	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_linker_hints
_read_linker_hints:                     ## @read_linker_hints
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_linker_hints@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.11:
	leaq	-56(%rbp), %rsi
	callq	_read_hints
	movq	_hints@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movq	-64(%rbp), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_5:
	leaq	L_.str(%rip), %rdi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	movq	%r15, -72(%rbp)
	leaq	-72(%rbp), %r12
	leaq	-56(%rbp), %r13
	movq	_hints@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_read_hints
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_13:
	movq	_hints@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_LINKER_HINTS_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %esi
	jne	LBB0_14
## %bb.15:
	addq	-56(%rbp), %rax
	movq	_hints_end@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.7(%rip), %rdi
	callq	_warnx
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_linker_hints,8,3               ## @linker_hints
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.module_path"

L_.str.1:                               ## @.str.1
	.asciz	"Can't find kernel module path."

L_.str.2:                               ## @.str.2
	.asciz	"Can't get memory for modpath."

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

L_.str.4:                               ## @.str.4
	.asciz	"%s/linker.hints"

	.comm	_hints,8,3                      ## @hints
L_.str.5:                               ## @.str.5
	.asciz	"Can't read linker hints file."

L_.str.6:                               ## @.str.6
	.asciz	"Can't open %s for reading"

	.comm	_LINKER_HINTS_VERSION,4,2       ## @LINKER_HINTS_VERSION
L_.str.7:                               ## @.str.7
	.asciz	"Linker hints version %d doesn't match expected %d."

	.comm	_hints_end,8,3                  ## @hints_end
	.no_dead_strip	_read_linker_hints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_linker_hints
_read_linker_hints:                     ; @read_linker_hints
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _linker_hints@GOTPAGE
Lloh9:
	ldr	x8, [x8, _linker_hints@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x23, _hints@GOTPAGE
Lloh12:
	ldr	x23, [x23, _hints@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	sub	x1, x29, #80
	bl	_read_hints
	str	x0, [x23]
	cbnz	x0, LBB0_13
; %bb.2:
	str	x19, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
	b	LBB0_13
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	sub	x2, x29, #72
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	ldur	x0, [x29, #-72]
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	sub	x2, x29, #72
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_9:
	stur	x21, [x29, #-64]
Lloh25:
	adrp	x21, l_.str.3@PAGE
Lloh26:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh27:
	adrp	x22, l_.str.4@PAGE
Lloh28:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #64
	mov	x1, x21
	bl	_strsep
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_snprintf
	sub	x1, x29, #80
	mov	x0, x19
	bl	_read_hints
	str	x0, [x23]
	cbz	x0, LBB0_10
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldr	x8, [x23]
	ldr	w1, [x8]
Lloh31:
	adrp	x9, _LINKER_HINTS_VERSION@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LINKER_HINTS_VERSION@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x9]
	cmp	w1, w2
	b.ne	LBB0_15
; %bb.14:
	ldur	x9, [x29, #-80]
	add	x8, x9, x8
Lloh34:
	adrp	x9, _hints_end@GOTPAGE
Lloh35:
	ldr	x9, [x9, _hints_end@GOTPAGEOFF]
Lloh36:
	str	x8, [x9]
	b	LBB0_16
LBB0_15:
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_warnx
	ldr	x0, [x23]
	bl	_free
	str	xzr, [x23]
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_linker_hints,8,3               ; @linker_hints
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.module_path"

l_.str.1:                               ; @.str.1
	.asciz	"Can't find kernel module path."

l_.str.2:                               ; @.str.2
	.asciz	"Can't get memory for modpath."

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

l_.str.4:                               ; @.str.4
	.asciz	"%s/linker.hints"

	.comm	_hints,8,3                      ; @hints
l_.str.5:                               ; @.str.5
	.asciz	"Can't read linker hints file."

l_.str.6:                               ; @.str.6
	.asciz	"Can't open %s for reading"

	.comm	_LINKER_HINTS_VERSION,4,2       ; @LINKER_HINTS_VERSION
l_.str.7:                               ; @.str.7
	.asciz	"Linker hints version %d doesn't match expected %d."

	.comm	_hints_end,8,3                  ; @hints_end
	.no_dead_strip	_read_linker_hints
.subsections_via_symbols
