	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetchPayload
_fetchPayload:                          ## @fetchPayload
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	64(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rcx,%rax,8)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	8(%rbx), %rax
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_cursorHoldsMutex
	movl	%eax, %edi
	callq	_assert
	movq	64(%rbx), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rax,%rcx,8), %r13
	movq	(%rdx,%rcx,8), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	24(%rbx), %rdx
	movq	64(%rbx), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rsi
	movq	(%rax,%rcx,8), %rdi
	movq	(%rsi,%rcx,8), %rsi
	callq	_btreeParseCell
LBB0_5:
	movslq	56(%rbx), %r12
	xorl	%eax, %eax
	cmpq	$0, 8(%r13)
	jne	LBB0_7
## %bb.6:
	movl	48(%rbx), %eax
LBB0_7:
	addq	32(%rbx), %r12
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	cltq
	addq	%rax, %r12
	movl	40(%rbx), %ebx
	subl	%eax, %ebx
	jmp	LBB0_10
LBB0_9:
	movl	40(%rbx), %ebx
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_assert
LBB0_10:
	movl	%ebx, (%r14)
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_VALID,8,3               ## @CURSOR_VALID
	.no_dead_strip	_fetchPayload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetchPayload
_fetchPayload:                          ; @fetchPayload
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x20, #64]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	cset	w0, ne
LBB0_2:
	bl	_assert
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _CURSOR_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CURSOR_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_cursorHoldsMutex
	bl	_assert
	ldr	x8, [x20, #64]
	ldr	x9, [x20]
	lsl	x9, x9, #3
	ldr	x23, [x8, x9]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x9]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	mov	x22, x20
	ldr	x8, [x22, #24]!
	cmp	x8, #0
	cset	w0, eq
	bl	_NEVER
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #64]
	ldr	x9, [x20]
	lsl	x9, x9, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x9]
	mov	x2, x22
	bl	_btreeParseCell
LBB0_4:
	ldr	x9, [x20, #32]
	ldrsw	x10, [x20, #56]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	w8, #0
	add	x22, x9, x10
	cbz	w21, LBB0_8
LBB0_6:
	add	x22, x22, w8, sxtw
	ldr	w9, [x20, #40]
	sub	w20, w9, w8
	b	LBB0_9
LBB0_7:
	ldr	w8, [x20, #48]
	add	x22, x9, x10
	cbnz	w21, LBB0_6
LBB0_8:
	ldr	w20, [x20, #40]
	cmp	w20, w8
	cset	w0, le
	bl	_assert
LBB0_9:
	str	w20, [x19]
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_VALID,8,3               ; @CURSOR_VALID
	.no_dead_strip	_fetchPayload
.subsections_via_symbols
