	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_page
_write_page:                            ## @write_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_2:
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	movq	_wbuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_mtdtest_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write_page\n"

	.comm	_mtd,8,3                        ## @mtd
	.comm	_offset,4,2                     ## @offset
	.comm	_wbuffer,4,2                    ## @wbuffer
	.no_dead_strip	_write_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_page
_write_page:                            ; @write_page
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_2:
Lloh2:
	adrp	x8, _mtd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mtd@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _offset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _offset@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _wbuffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wbuffer@GOTPAGEOFF]
	ldr	w2, [x0]
Lloh10:
	ldr	w3, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mtdtest_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write_page\n"

	.comm	_mtd,8,3                        ; @mtd
	.comm	_offset,4,2                     ; @offset
	.comm	_wbuffer,4,2                    ; @wbuffer
	.no_dead_strip	_write_page
.subsections_via_symbols
