	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readhints
_readhints:                             ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hints_file@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.1:
	movl	%eax, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	_MAP_FAILED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_HH_BADMAG
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movslq	(%r13), %rsi
	movq	40(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_4:
	movq	(%r15), %rsi
	movq	_LD_HINTS_VERSION_1@GOTPCREL(%rip), %rax
	movq	_LD_HINTS_VERSION_2@GOTPCREL(%rip), %rcx
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.5:
	cmpq	(%rcx), %rsi
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_7:
	movq	8(%r15), %rax
	cmpq	%r14, %rax
	jle	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	%r14, %rsi
	callq	_munmap
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	cmpq	(%r12), %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r15
LBB0_10:
	movl	%ebx, %edi
	callq	_close
	movslq	16(%r15), %r12
	addq	%r15, %r12
	movq	(%r15), %rax
	movq	_LD_HINTS_VERSION_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.11:
	movq	_rescan@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.12:
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_17
LBB0_13:
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movslq	20(%r15), %rdi
	addq	%r12, %rdi
	callq	_add_search_path
LBB0_17:
	movq	_rescan@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_15
LBB0_18:
	movl	24(%r15), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_20:
	movslq	28(%r15), %rax
	movq	%r15, %rsi
	addq	%rax, %rsi
	movl	24(%r15), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_memcpy
	cmpl	$0, 24(%r15)
	jle	LBB0_25
## %bb.21:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	32(%r15), %rax
	cmpq	%rax, %rsi
	jge	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%r14), %rsi
	cmpq	%rax, %rsi
	jge	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$32, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_strdup
	movq	%rax, 24(%rbx)
	movq	8(%r14), %rdi
	addq	%r12, %rdi
	callq	_strdup
	movq	%rax, 16(%rbx)
	movl	20(%r14), %edi
	movl	12(%rbx), %esi
	movl	$4, %edx
	callq	_bcopy
	movl	16(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	_shlib_tail@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rbx, (%rax)
	movq	%rbx, (%rcx)
	incq	%r13
	movslq	24(%r15), %rax
	addq	$24, %r14
	cmpq	%rax, %r13
	jl	LBB0_22
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_26:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.6(%rip), %rdi
LBB0_28:
	xorl	%eax, %eax
	callq	_warnx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_hints_file,4,2                 ## @hints_file
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"%s: bad magic: %lo"

	.comm	_LD_HINTS_VERSION_1,8,3         ## @LD_HINTS_VERSION_1
	.comm	_LD_HINTS_VERSION_2,8,3         ## @LD_HINTS_VERSION_2
L_.str.2:                               ## @.str.2
	.asciz	"unsupported version: %ld"

	.comm	_rescan,8,3                     ## @rescan
L_.str.3:                               ## @.str.3
	.asciz	"%s too old and does not contain the search path"

L_.str.4:                               ## @.str.4
	.asciz	"readhints"

L_.str.5:                               ## @.str.5
	.asciz	"bad name index: %#x"

L_.str.6:                               ## @.str.6
	.asciz	"bad path index: %#x"

	.comm	_shlib_tail,8,3                 ## @shlib_tail
	.no_dead_strip	_readhints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readhints
_readhints:                             ; @readhints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x23, _hints_file@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hints_file@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
Lloh8:
	adrp	x24, _PROT_READ@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PROT_READ@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh10:
	adrp	x25, _MAP_PRIVATE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MAP_PRIVATE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	w0, #0
	mov	x1, x21
	mov	x4, x20
	mov	w5, #0
	bl	_mmap
Lloh12:
	adrp	x26, _MAP_FAILED@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MAP_FAILED@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.2:
	mov	x19, x0
	ldp	q0, q1, [x0]
	ldr	q2, [x0, #32]
	stp	q1, q2, [sp, #32]
	str	q0, [sp, #16]
	add	x0, sp, #16
	bl	_HH_BADMAG
	cbz	x0, LBB0_4
; %bb.3:
	ldrsw	x1, [x23]
	ldr	x8, [x19, #40]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_4:
	ldr	x1, [x19]
Lloh16:
	adrp	x8, _LD_HINTS_VERSION_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LD_HINTS_VERSION_1@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x27, _LD_HINTS_VERSION_2@GOTPAGE
Lloh20:
	ldr	x27, [x27, _LD_HINTS_VERSION_2@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_12
; %bb.5:
	ldr	x22, [x19, #8]
	cmp	x22, x21
	b.le	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_munmap
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	w0, #0
	mov	x1, x22
	mov	x4, x20
	mov	w5, #0
	bl	_mmap
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.7:
	mov	x19, x0
LBB0_8:
	mov	x0, x20
	bl	_close
	ldrsw	x8, [x19, #16]
	add	x22, x19, x8
	ldr	x8, [x19]
	ldr	x9, [x27]
Lloh21:
	adrp	x20, _rescan@GOTPAGE
Lloh22:
	ldr	x20, [x20, _rescan@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.9:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.10:
	ldr	w2, [x23]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_17
LBB0_11:
	ldr	w1, [x23]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_14
LBB0_12:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_warnx
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	ldrsw	x8, [x19, #20]
	add	x0, x22, x8
	bl	_add_search_path
LBB0_17:
	ldr	x8, [x20]
	cbnz	x8, LBB0_26
LBB0_18:
	ldr	w8, [x19, #24]
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_20
; %bb.19:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_20:
	ldp	w9, w8, [x19, #24]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x1, x19, x8
	add	w8, w9, w9, lsl #1
	lsl	w2, w8, #3
	mov	x0, x20
	bl	_memcpy
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x23, #0
Lloh31:
	adrp	x24, _shlib_tail@GOTPAGE
Lloh32:
	ldr	x24, [x24, _shlib_tail@GOTPAGEOFF]
	mov	x25, x20
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25]
	ldr	x8, [x19, #32]
	cmp	x1, x8
	b.ge	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x1, [x25, #8]
	cmp	x1, x8
	b.ge	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #32
	bl	_xmalloc
	mov	x21, x0
	ldr	x8, [x25]
	add	x0, x22, x8
	bl	_strdup
	str	x0, [x21, #24]
	ldr	x8, [x25, #8]
	add	x0, x22, x8
	bl	_strdup
	str	x0, [x21, #16]
	ldr	w0, [x25, #20]
	ldr	w1, [x21, #12]
	mov	w2, #4
	bl	_bcopy
	ldr	w8, [x25, #16]
	str	w8, [x21, #8]
	str	xzr, [x21]
	ldr	x8, [x24]
	str	x21, [x8]
	str	x21, [x24]
	add	x23, x23, #1
	ldrsw	x8, [x19, #24]
	add	x25, x25, #24
	cmp	x23, x8
	b.lt	LBB0_22
LBB0_25:
	mov	x0, x20
	bl	_free
LBB0_26:
	mov	w0, #0
	b	LBB0_15
LBB0_27:
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_29
LBB0_28:
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_29:
	bl	_warnx
	mov	x0, x20
	bl	_free
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_hints_file,4,2                 ; @hints_file
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"%s: bad magic: %lo"

	.comm	_LD_HINTS_VERSION_1,8,3         ; @LD_HINTS_VERSION_1
	.comm	_LD_HINTS_VERSION_2,8,3         ; @LD_HINTS_VERSION_2
l_.str.2:                               ; @.str.2
	.asciz	"unsupported version: %ld"

	.comm	_rescan,8,3                     ; @rescan
l_.str.3:                               ; @.str.3
	.asciz	"%s too old and does not contain the search path"

l_.str.4:                               ; @.str.4
	.asciz	"readhints"

l_.str.5:                               ; @.str.5
	.asciz	"bad name index: %#x"

l_.str.6:                               ; @.str.6
	.asciz	"bad path index: %#x"

	.comm	_shlib_tail,8,3                 ; @shlib_tail
	.no_dead_strip	_readhints
.subsections_via_symbols
