	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_page
_read_page:                             ## @read_page
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_7
## %bb.1:
	movq	8(%rbx), %rsi
	movq	40(%rbx), %rax
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_2
## %bb.4:
	movl	20(%rbx), %edx
	addl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_NS_DBG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_do_read_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movl	32(%rbx), %eax
	imull	8(%rbx), %eax
	addl	16(%rbx), %eax
	addl	20(%rbx), %eax
	movl	%eax, -28(%rbp)
	movq	24(%rbx), %rsi
	movl	(%rbx), %edx
	leaq	-28(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_read_file
	cmpl	%r14d, %eax
	jne	LBB0_6
## %bb.11:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_do_bit_flips
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	callq	_NS_GET_PAGE
	cmpq	$0, (%rax)
	movq	8(%rbx), %rsi
	je	LBB0_8
## %bb.9:
	movl	20(%rbx), %edx
	addl	16(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_NS_DBG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_do_read_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_NS_PAGE_BYTE_OFF
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_bit_flips                   ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_NS_DBG
	movl	(%rbx), %edi
	movl	$255, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_6:
	movq	8(%rbx), %rsi
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_NS_ERR
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read_page: page %d not written\n"

L_.str.1:                               ## @.str.1
	.asciz	"read_page: page %d written, reading from %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"read_page: read error for page %d ret %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"read_page: page %d not allocated\n"

L_.str.4:                               ## @.str.4
	.asciz	"read_page: page %d allocated, reading from %d\n"

	.no_dead_strip	_read_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_page
_read_page:                             ; @read_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #40]
	ldr	x1, [x20, #8]
	ldr	w8, [x8, x1, lsl #2]
	cbz	w8, LBB0_8
; %bb.2:
	ldp	w8, w9, [x20, #16]
	add	w8, w9, w8
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NS_DBG
	mov	x0, x20
	mov	x1, x19
	bl	_do_read_error
	cbnz	x0, LBB0_12
; %bb.3:
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #32]
	ldp	w10, w11, [x20, #16]
	madd	w8, w9, w8, w10
	add	w8, w8, w11
	str	w8, [sp, #12]
	ldr	x1, [x20, #24]
	ldr	w2, [x20]
	add	x4, sp, #12
	mov	x0, x20
	mov	x3, x19
	bl	_read_file
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w19
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_do_bit_flips
	b	LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_NS_GET_PAGE
	ldr	x8, [x0]
	ldr	x1, [x20, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldp	w8, w9, [x20, #16]
	add	w8, w9, w8
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NS_DBG
	mov	x0, x20
	mov	x1, x19
	bl	_do_read_error
	cbnz	x0, LBB0_12
; %bb.7:
	ldr	w21, [x20]
	mov	x0, x20
	bl	_NS_PAGE_BYTE_OFF
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_do_bit_flips
LBB0_8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_NS_DBG
	ldr	w0, [x20]
	mov	w1, #255
	mov	x2, x19
	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
	add	sp, sp, #64
	b	_memset
LBB0_11:
	ldr	x1, [x20, #8]
	sxtw	x2, w0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NS_ERR
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read_page: page %d not written\n"

l_.str.1:                               ; @.str.1
	.asciz	"read_page: page %d written, reading from %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"read_page: read error for page %d ret %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"read_page: page %d not allocated\n"

l_.str.4:                               ; @.str.4
	.asciz	"read_page: page %d allocated, reading from %d\n"

	.no_dead_strip	_read_page
.subsections_via_symbols
