	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_read
_memory_read:                           ## @memory_read
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_P1_MADDR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$16, %esi
	andl	$-193, %esi
	callq	_cx_writeb
	movq	_P1_MADDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	sarl	$8, %esi
	callq	_cx_writeb
	movq	_P1_MADDR0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_cx_writeb
	movl	(%r12), %edi
	callq	_cx_read
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wait_ready_gpio0_bit1
	movl	%eax, %r15d
	movq	_P1_MDATA3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_cx_writeb
	movl	(%rbx), %edi
	callq	_cx_read
	movq	%rax, %r13
	shll	$24, %r13d
	movq	_P1_MDATA2@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_cx_writeb
	movl	(%r12), %edi
	callq	_cx_read
	movzbl	%al, %ebx
	shll	$16, %ebx
	orl	%r13d, %ebx
	movq	_P1_MDATA1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_cx_writeb
	movl	(%r12), %edi
	callq	_cx_read
	shll	$8, %eax
	movzwl	%ax, %r12d
	orl	%ebx, %r12d
	movq	_P1_MDATA0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_cx_writeb
	movl	(%rbx), %edi
	callq	_cx_read
	movzbl	%al, %eax
	orl	%r12d, %eax
	movl	%eax, (%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P1_MADDR2,4,2                  ## @P1_MADDR2
	.comm	_P1_MADDR1,4,2                  ## @P1_MADDR1
	.comm	_P1_MADDR0,4,2                  ## @P1_MADDR0
	.comm	_P1_MDATA3,4,2                  ## @P1_MDATA3
	.comm	_P1_MDATA2,4,2                  ## @P1_MDATA2
	.comm	_P1_MDATA1,4,2                  ## @P1_MDATA1
	.comm	_P1_MDATA0,4,2                  ## @P1_MDATA0
	.no_dead_strip	_memory_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memory_read
_memory_read:                           ; @memory_read
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _P1_MADDR2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P1_MADDR2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	asr	w8, w1, #16
	and	w1, w8, #0xffffff3f
	bl	_cx_writeb
Lloh3:
	adrp	x8, _P1_MADDR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P1_MADDR1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	asr	w1, w20, #8
	bl	_cx_writeb
Lloh6:
	adrp	x22, _P1_MADDR0@GOTPAGE
Lloh7:
	ldr	x22, [x22, _P1_MADDR0@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_cx_writeb
	ldr	w0, [x22]
	bl	_cx_read
	mov	x0, x21
	mov	w1, #1
	bl	_wait_ready_gpio0_bit1
	mov	x20, x0
Lloh8:
	adrp	x21, _P1_MDATA3@GOTPAGE
Lloh9:
	ldr	x21, [x21, _P1_MDATA3@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_cx_writeb
	ldr	w0, [x21]
	bl	_cx_read
	lsl	w21, w0, #24
Lloh10:
	adrp	x22, _P1_MDATA2@GOTPAGE
Lloh11:
	ldr	x22, [x22, _P1_MDATA2@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_cx_writeb
	ldr	w0, [x22]
	bl	_cx_read
	bfi	w21, w0, #16, #8
Lloh12:
	adrp	x22, _P1_MDATA1@GOTPAGE
Lloh13:
	ldr	x22, [x22, _P1_MDATA1@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_cx_writeb
	ldr	w0, [x22]
	bl	_cx_read
	bfi	w21, w0, #8, #8
Lloh14:
	adrp	x22, _P1_MDATA0@GOTPAGE
Lloh15:
	ldr	x22, [x22, _P1_MDATA0@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_cx_writeb
	ldr	w0, [x22]
	bl	_cx_read
	bfxil	w21, w0, #0, #8
	str	w21, [x19]
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P1_MADDR2,4,2                  ; @P1_MADDR2
	.comm	_P1_MADDR1,4,2                  ; @P1_MADDR1
	.comm	_P1_MADDR0,4,2                  ; @P1_MADDR0
	.comm	_P1_MDATA3,4,2                  ; @P1_MDATA3
	.comm	_P1_MDATA2,4,2                  ; @P1_MDATA2
	.comm	_P1_MDATA1,4,2                  ; @P1_MDATA1
	.comm	_P1_MDATA0,4,2                  ; @P1_MDATA0
	.no_dead_strip	_memory_read
.subsections_via_symbols
