	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_link_extension            ## -- Begin function read_link_extension
	.p2align	4, 0x90
_read_link_extension:                   ## @read_link_extension
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_the_hash_algo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_init_split_index
	movq	%rax, %r15
	movl	16(%rax), %edi
	movq	%r14, %rsi
	callq	_hashcpy
	movq	(%r12), %rax
	movq	(%rax), %rax
	subq	%rax, %rbx
	jne	LBB0_3
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addq	%rax, %r14
	xorl	%eax, %eax
	callq	_ewah_new
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ewah_read_mmap
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %eax
	addq	%rax, %r14
	subq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ewah_new
	movq	%rax, (%r15)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ewah_read_mmap
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	%eax, %eax
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupt link extension (too short)"

L_.str.1:                               ## @.str.1
	.asciz	"corrupt delete bitmap in link extension"

L_.str.2:                               ## @.str.2
	.asciz	"corrupt replace bitmap in link extension"

L_.str.3:                               ## @.str.3
	.asciz	"garbage at the end of link extension"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_link_extension            ; -- Begin function read_link_extension
	.p2align	2
_read_link_extension:                   ; @read_link_extension
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x22, [x22, _the_hash_algo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cmp	x8, x2
	b.ls	LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_error
LBB0_3:
	mov	x21, x2
	mov	x20, x1
	bl	_init_split_index
	mov	x19, x0
	ldr	w0, [x0, #16]
	mov	x1, x20
	bl	_hashcpy
	ldr	x8, [x22]
	ldr	x8, [x8]
	subs	x21, x21, x8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x20, x20, x8
	bl	_ewah_new
	str	x0, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_ewah_read_mmap
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w8, w0
	add	x22, x20, x8
	sub	x20, x21, x8
	bl	_ewah_new
	str	x0, [x19]
	mov	x1, x22
	mov	x2, x20
	bl	_ewah_read_mmap
	tbnz	w0, #31, LBB0_10
; %bb.7:
	cmp	x20, w0, uxtw
	b.eq	LBB0_4
; %bb.8:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_10:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupt link extension (too short)"

l_.str.1:                               ; @.str.1
	.asciz	"corrupt delete bitmap in link extension"

l_.str.2:                               ; @.str.2
	.asciz	"corrupt replace bitmap in link extension"

l_.str.3:                               ; @.str.3
	.asciz	"garbage at the end of link extension"

.subsections_via_symbols
