	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_write
_memory_write:                          ## @memory_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_P1_MDATA0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%edx, %esi
	callq	_cx_writeb
	movq	_P1_MDATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	sarl	$8, %esi
	callq	_cx_writeb
	movq	_P1_MDATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	sarl	$16, %esi
	callq	_cx_writeb
	movq	_P1_MDATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$24, %ebx
	movl	%ebx, %esi
	callq	_cx_writeb
	movq	_P1_MADDR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	sarl	$16, %esi
	orl	$64, %esi
	callq	_cx_writeb
	movq	_P1_MADDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	sarl	$8, %esi
	callq	_cx_writeb
	movq	_P1_MADDR0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_cx_writeb
	movl	(%r12), %edi
	callq	_cx_read
	movl	(%rbx), %edi
	callq	_cx_read
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_ready_gpio0_bit1          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_P1_MDATA0,4,2                  ## @P1_MDATA0
	.comm	_P1_MDATA1,4,2                  ## @P1_MDATA1
	.comm	_P1_MDATA2,4,2                  ## @P1_MDATA2
	.comm	_P1_MDATA3,4,2                  ## @P1_MDATA3
	.comm	_P1_MADDR2,4,2                  ## @P1_MADDR2
	.comm	_P1_MADDR1,4,2                  ## @P1_MADDR1
	.comm	_P1_MADDR0,4,2                  ## @P1_MADDR0
	.no_dead_strip	_memory_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memory_write
_memory_write:                          ; @memory_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _P1_MDATA0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _P1_MDATA0@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x2
	bl	_cx_writeb
Lloh2:
	adrp	x8, _P1_MDATA1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P1_MDATA1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	asr	w1, w20, #8
	bl	_cx_writeb
Lloh5:
	adrp	x8, _P1_MDATA2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P1_MDATA2@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	asr	w1, w20, #16
	bl	_cx_writeb
Lloh8:
	adrp	x8, _P1_MDATA3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P1_MDATA3@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	asr	w1, w20, #24
	bl	_cx_writeb
Lloh11:
	adrp	x8, _P1_MADDR2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P1_MADDR2@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	asr	w8, w21, #16
	orr	w1, w8, #0x40
	bl	_cx_writeb
Lloh14:
	adrp	x8, _P1_MADDR1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P1_MADDR1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	asr	w1, w21, #8
	bl	_cx_writeb
Lloh17:
	adrp	x20, _P1_MADDR0@GOTPAGE
Lloh18:
	ldr	x20, [x20, _P1_MADDR0@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_cx_writeb
	ldr	w0, [x22]
	bl	_cx_read
	ldr	w0, [x20]
	bl	_cx_read
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wait_ready_gpio0_bit1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_P1_MDATA0,4,2                  ; @P1_MDATA0
	.comm	_P1_MDATA1,4,2                  ; @P1_MDATA1
	.comm	_P1_MDATA2,4,2                  ; @P1_MDATA2
	.comm	_P1_MDATA3,4,2                  ; @P1_MDATA3
	.comm	_P1_MADDR2,4,2                  ; @P1_MADDR2
	.comm	_P1_MADDR1,4,2                  ; @P1_MADDR1
	.comm	_P1_MADDR0,4,2                  ; @P1_MADDR0
	.no_dead_strip	_memory_write
.subsections_via_symbols
