	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consume_hunk
_consume_hunk:                          ## @consume_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, (%rdi)
	movq	%rdx, 8(%rdi)
	movq	%rcx, 16(%rdi)
	movq	%r8, 24(%rdi)
	movq	%rcx, 32(%rdi)
	movq	48(%rdi), %rax
	testq	%r8, %r8
	je	LBB0_1
## %bb.3:
	leaq	(%rax,%rcx,8), %rdx
	addq	$-8, %rdx
	movq	%rdx, 64(%rbx)
	jmp	LBB0_4
LBB0_1:
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 64(%rbx)
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.2:
	movq	$1, 16(%rbx)
	movl	$1, %ecx
LBB0_4:
	movq	-8(%rax,%rcx,8), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	56(%rbx), %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	16(%rbx), %rcx
	movq	48(%rbx), %rdx
	movq	%rax, -8(%rdx,%rcx,8)
	movq	(%rbx), %rsi
LBB0_6:
	movq	40(%rbx), %rcx
	movq	%rsi, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_consume_hunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consume_hunk
_consume_hunk:                          ; @consume_hunk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	x1, x2, [x0]
	stp	x3, x4, [x0, #16]
	str	x3, [x0, #32]
	ldr	x8, [x0, #48]
	add	x9, x8, x3, lsl #3
	cbz	x4, LBB0_2
; %bb.1:
	sub	x9, x9, #8
	str	x9, [x19, #64]
	b	LBB0_4
LBB0_2:
	str	x9, [x19, #64]
	cbnz	x3, LBB0_4
; %bb.3:
	mov	w3, #1
	str	x3, [x19, #16]
LBB0_4:
	add	x8, x8, x3, lsl #3
	ldur	x0, [x8, #-8]
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #56]
	mov	w1, #8
	bl	_xcalloc
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #16]
	add	x8, x8, x9, lsl #3
	stur	x0, [x8, #-8]
	ldr	x1, [x19]
LBB0_6:
	ldr	x8, [x19, #40]
	str	x1, [x0, x8, lsl #3]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_consume_hunk
.subsections_via_symbols
