	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_hunk
_find_hunk:                             ## @find_hunk
	.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	_LIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	decl	%ecx
	sarl	%ecx
	movq	_context@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	cmpl	%r9d, %ecx
	leal	1(%r9,%r9), %r8d
	cmovll	%eax, %r8d
	movq	(%rdi), %r11
	movq	16(%rdi), %r10
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	movq	8(%rdi), %r15
	movq	24(%rdi), %r14
	movq	40(%rdi), %rdi
	cmpq	$0, 32(%rax)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r9d, %r12d
	testq	%rdi, %rdi
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 32(%rdi)
	movl	%r9d, %r12d
	cmovel	%r8d, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdi), %rsi
	movq	16(%rdi), %rdx
	addq	%r11, %r15
	movq	%rsi, %rbx
	subq	%r15, %rbx
	addq	%r10, %r14
	movq	%rdx, %rcx
	subq	%r14, %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rcx
	movq	%rdx, %r10
	movq	%rsi, %r11
	cmpq	%rcx, %rbx
	jl	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_LIN_MAX,4,2                    ## @LIN_MAX
	.comm	_context,4,2                    ## @context
	.no_dead_strip	_find_hunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_hunk
_find_hunk:                             ; @find_hunk
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _LIN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w10, w8, w9, lt
Lloh3:
	adrp	x9, _context@GOTPAGE
Lloh4:
	ldr	x9, [x9, _context@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w11, #1
	bfi	w11, w9, #1, #31
	cmp	w9, w10, asr #1
	csel	w10, w8, w11, gt
	ldr	x12, [x0]
	ldr	x11, [x0, #16]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x0
	ldr	x14, [x0, #8]
	ldr	x0, [x0, #40]
	ldp	x13, x15, [x8, #24]
	cbz	x15, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x15, x9
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x15, [x0, #32]
	cmp	x15, #0
	csel	w15, w10, w9, eq
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x16, [x0]
	add	x12, x14, x12
	sub	x12, x16, x12
	ldr	x14, [x0, #16]
	add	x11, x13, x11
	sub	x11, x14, x11
	cmp	x12, x11
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x12, w15, sxtw
	mov	x11, x14
	mov	x12, x16
	b.lt	LBB0_1
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LIN_MAX,4,2                    ; @LIN_MAX
	.comm	_context,4,2                    ; @context
	.no_dead_strip	_find_hunk
.subsections_via_symbols
