	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_result_alloc
_client_result_alloc:                   ## @client_result_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movl	(%rsi), %ebx
	xorl	%r13d, %r13d
	movl	$0, %edi
	cmpl	$4, %ebx
	jl	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	4(%r15), %ebx
	setle	%dil
LBB0_2:
	callq	_assert
	movq	$0, (%r14)
	cmpl	4(%r15), %ebx
	je	LBB0_9
## %bb.3:
	addl	$-4, %ebx
	movq	_CHUNK_INTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	shll	$2, %r13d
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	movslq	%edx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%r14)
	subl	%edx, %r13d
	jmp	LBB0_9
LBB0_5:
	movq	%rcx, %rbx
	movl	%r12d, %edi
	movl	$16, %esi
	callq	_nbr_alloc
	movq	$0, 8(%rax)
	leaq	8(%r15), %rcx
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.7:
	movq	(%rcx), %rdx
	addq	$8, %rdx
	jmp	LBB0_8
LBB0_6:
	addq	$16, %r15
	movq	%rcx, %rdx
	movq	%r15, %rcx
LBB0_8:
	movq	%rax, (%rdx)
	movq	%rax, (%rcx)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	(%rbx), %r13d
	shll	$2, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNK_INTS,4,2                 ## @CHUNK_INTS
	.no_dead_strip	_client_result_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_result_alloc
_client_result_alloc:                   ; @client_result_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x1]
	subs	w23, w22, #4
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w22, w8
	cset	w0, le
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	str	xzr, [x19]
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
Lloh0:
	adrp	x22, _CHUNK_INTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHUNK_INTS@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #2
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	cbz	w9, LBB0_7
; %bb.6:
	ldr	x10, [x20, #8]
	ldr	x10, [x10]
	add	x10, x10, w9, sxtw
	str	x10, [x19]
	sub	w0, w8, w9
	b	LBB0_11
LBB0_7:
	mov	x0, x21
	mov	w1, #16
	bl	_nbr_alloc
	str	xzr, [x0, #8]
	ldr	x9, [x20, #16]!
	sub	x8, x20, #8
	cbz	x9, LBB0_9
; %bb.8:
	ldr	x9, [x8]
	add	x9, x9, #8
	b	LBB0_10
LBB0_9:
	mov	x9, x8
	mov	x8, x20
LBB0_10:
	str	x0, [x9]
	str	x0, [x8]
	ldr	x8, [x0]
	str	x8, [x19]
	ldr	w8, [x22]
	lsl	w0, w8, #2
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNK_INTS,4,2                 ; @CHUNK_INTS
	.no_dead_strip	_client_result_alloc
.subsections_via_symbols
