	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_bitmap
_fetch_bitmap:                          ## @fetch_bitmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_malloc
	movq	8(%rbx), %rcx
	movslq	%r14d, %r14
	movq	%rax, (%rcx,%r14,8)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%r14,8), %rsi
	movl	(%rcx,%r14,4), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	___get_page
	movq	%rax, %rcx
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	%rax, %rdi
	callq	_free
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fetch_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_bitmap
_fetch_bitmap:                          ; @fetch_bitmap
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_malloc
	ldr	x8, [x19, #8]
	str	x0, [x8, w20, sxtw #3]
	cbz	x0, LBB0_5
; %bb.2:
	sxtw	x8, w20
	lsl	x20, x8, #3
	ldp	x9, x10, [x19, #8]
	ldr	x1, [x9, x20]
	ldr	w2, [x10, x8, lsl #2]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	bl	___get_page
	mov	x8, x0
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x20]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_free
LBB0_4:
	mov	x0, #0
LBB0_5:
	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	_fetch_bitmap
.subsections_via_symbols
