	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_read
_register_read:                         ## @register_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_RADDR0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cx_writeb
	movq	_P1_RADDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$8, %ebx
	movl	%ebx, %esi
	callq	_cx_writeb
	movq	_P1_RRDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %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_RDATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movzbl	%al, %r12d
	movq	_P1_RDATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	shll	$8, %eax
	movzwl	%ax, %r13d
	orl	%r12d, %r13d
	movq	_P1_RDATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movzbl	%al, %ebx
	shll	$16, %ebx
	orl	%r13d, %ebx
	movq	_P1_RDATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	shll	$24, %eax
	orl	%ebx, %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_RADDR0,4,2                  ## @P1_RADDR0
	.comm	_P1_RADDR1,4,2                  ## @P1_RADDR1
	.comm	_P1_RRDWR,4,2                   ## @P1_RRDWR
	.comm	_P1_RDATA0,4,2                  ## @P1_RDATA0
	.comm	_P1_RDATA1,4,2                  ## @P1_RDATA1
	.comm	_P1_RDATA2,4,2                  ## @P1_RDATA2
	.comm	_P1_RDATA3,4,2                  ## @P1_RDATA3
	.no_dead_strip	_register_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_read
_register_read:                         ; @register_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	x22, _P1_RADDR0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _P1_RADDR0@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cx_writeb
Lloh2:
	adrp	x8, _P1_RADDR1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P1_RADDR1@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	asr	w1, w20, #8
	bl	_cx_writeb
Lloh5:
	adrp	x8, _P1_RRDWR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P1_RRDWR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	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	x8, _P1_RDATA0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _P1_RDATA0@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x21, x0
Lloh11:
	adrp	x8, _P1_RDATA1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P1_RDATA1@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cx_read
	bfi	w21, w0, #8, #8
Lloh14:
	adrp	x8, _P1_RDATA2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P1_RDATA2@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cx_read
	bfi	w21, w0, #16, #8
Lloh17:
	adrp	x8, _P1_RDATA3@GOTPAGE
Lloh18:
	ldr	x8, [x8, _P1_RDATA3@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cx_read
	bfi	w21, w0, #24, #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 AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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_RADDR0,4,2                  ; @P1_RADDR0
	.comm	_P1_RADDR1,4,2                  ; @P1_RADDR1
	.comm	_P1_RRDWR,4,2                   ; @P1_RRDWR
	.comm	_P1_RDATA0,4,2                  ; @P1_RDATA0
	.comm	_P1_RDATA1,4,2                  ; @P1_RDATA1
	.comm	_P1_RDATA2,4,2                  ; @P1_RDATA2
	.comm	_P1_RDATA3,4,2                  ; @P1_RDATA3
	.no_dead_strip	_register_read
.subsections_via_symbols
