	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moduledir_readhints
_moduledir_readhints:                   ## @moduledir_readhints
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	_MDIR_NOHINTS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 8(%rdi)
	jne	LBB0_14
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_moduledir_fullpath
	movq	%rax, %r15
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	-40(%rbp), %eax
	cmpl	$8, %eax
	jl	LBB0_6
## %bb.4:
	movq	_LINKER_HINTS_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_6
## %bb.5:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_free
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	movl	$4, %edx
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_12
## %bb.8:
	movl	-44(%rbp), %eax
	movq	_LINKER_HINTS_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.9:
	movl	-40(%rbp), %r15d
	addl	$-4, %r15d
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_read
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, 12(%rbx)
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_14
LBB0_6:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_12:
	movl	%r14d, %edi
	callq	_close
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
LBB0_13:
	movl	(%r12), %eax
	orl	%eax, 8(%rbx)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIR_NOHINTS,4,2               ## @MDIR_NOHINTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linker.hints"

	.comm	_LINKER_HINTS_MAX,4,2           ## @LINKER_HINTS_MAX
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_LINKER_HINTS_VERSION,4,2       ## @LINKER_HINTS_VERSION
	.no_dead_strip	_moduledir_readhints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moduledir_readhints
_moduledir_readhints:                   ; @moduledir_readhints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0]
	cbnz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x22, _MDIR_NOHINTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIR_NOHINTS@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_moduledir_fullpath
	mov	x21, x0
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_11
; %bb.3:
	ldr	w8, [sp, #8]
	cmp	w8, #8
	b.lt	LBB0_11
; %bb.4:
Lloh4:
	adrp	x9, _LINKER_HINTS_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LINKER_HINTS_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_11
; %bb.5:
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_open
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	x20, x0
	mov	x0, x21
	bl	_free
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #4
	bl	_read
	cmp	w0, #4
	b.ne	LBB0_12
; %bb.7:
	ldr	w8, [sp, #4]
Lloh10:
	adrp	x9, _LINKER_HINTS_VERSION@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LINKER_HINTS_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.8:
	ldr	w8, [sp, #8]
	sub	w21, w8, #4
	mov	x0, x21
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_read
	cmp	w0, w21
	b.ne	LBB0_12
; %bb.10:
	str	w21, [x19, #12]
	mov	x0, x20
	bl	_close
	b	LBB0_14
LBB0_11:
	mov	x0, x21
	bl	_free
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_close
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_13:
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIR_NOHINTS,4,2               ; @MDIR_NOHINTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linker.hints"

	.comm	_LINKER_HINTS_MAX,4,2           ; @LINKER_HINTS_MAX
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_LINKER_HINTS_VERSION,4,2       ; @LINKER_HINTS_VERSION
	.no_dead_strip	_moduledir_readhints
.subsections_via_symbols
