	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_read
_gpio_read:                             ## @gpio_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	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$255, %esi
	callq	_saa_writeb
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_saa_writeb
	movq	_SAA7134_GPIO_GPSTATUS2@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GPIO_COMMAND_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	movl	(%r13), %edi
	movq	_GPIO_COMMAND_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movl	(%r13), %edi
	movq	_GPIO_COMMAND_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_saa_writeb
	movq	_SAA7134_GPIO_GPMODE3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SAA7134_GPIO_GPRESCAN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_saa_clearb
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_saa_setb
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_readb
	movl	%eax, (%r14)
	movl	(%r13), %edi
	movq	_GPIO_COMMAND_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	movl	(%r13), %edi
	movl	(%r12), %esi
	callq	_saa_writeb
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_saa_clearb
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_saa_setb
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_saa_readb
	shll	$8, %eax
	orl	%eax, (%r14)
	movl	(%r13), %edi
	movq	_GPIO_COMMAND_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ## @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ## @SAA7134_GPIO_GPSTATUS0
	.comm	_SAA7134_GPIO_GPSTATUS2,4,2     ## @SAA7134_GPIO_GPSTATUS2
	.comm	_GPIO_COMMAND_ADDR,4,2          ## @GPIO_COMMAND_ADDR
	.comm	_GPIO_COMMAND_IDLE,4,2          ## @GPIO_COMMAND_IDLE
	.comm	_GPIO_COMMAND_READ,4,2          ## @GPIO_COMMAND_READ
	.comm	_SAA7134_GPIO_GPMODE3,4,2       ## @SAA7134_GPIO_GPMODE3
	.comm	_SAA7134_GPIO_GPRESCAN,4,2      ## @SAA7134_GPIO_GPRESCAN
	.no_dead_strip	_gpio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_read
_gpio_read:                             ; @gpio_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #255
	bl	_saa_writeb
Lloh2:
	adrp	x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_saa_writeb
Lloh4:
	adrp	x20, _SAA7134_GPIO_GPSTATUS2@GOTPAGE
Lloh5:
	ldr	x20, [x20, _SAA7134_GPIO_GPSTATUS2@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _GPIO_COMMAND_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_COMMAND_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_saa_writeb
	ldr	w0, [x20]
Lloh9:
	adrp	x22, _GPIO_COMMAND_IDLE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _GPIO_COMMAND_IDLE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_saa_writeb
	ldr	w0, [x23]
	mov	w1, #0
	bl	_saa_writeb
	ldr	w0, [x20]
Lloh11:
	adrp	x23, _GPIO_COMMAND_READ@GOTPAGE
Lloh12:
	ldr	x23, [x23, _GPIO_COMMAND_READ@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_saa_writeb
Lloh13:
	adrp	x24, _SAA7134_GPIO_GPMODE3@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SAA7134_GPIO_GPMODE3@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh15:
	adrp	x25, _SAA7134_GPIO_GPRESCAN@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SAA7134_GPIO_GPRESCAN@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_saa_clearb
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_saa_setb
	ldr	w0, [x21]
	bl	_saa_readb
	str	w0, [x19]
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_saa_writeb
	ldr	w0, [x20]
	ldr	w1, [x23]
	bl	_saa_writeb
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_saa_clearb
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_saa_setb
	ldr	w0, [x21]
	bl	_saa_readb
	ldr	w8, [x19]
	orr	w8, w8, w0, lsl #8
	str	w8, [x19]
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_saa_writeb
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_GPIO_GPMODE0,4,2       ; @SAA7134_GPIO_GPMODE0
	.comm	_SAA7134_GPIO_GPSTATUS0,4,2     ; @SAA7134_GPIO_GPSTATUS0
	.comm	_SAA7134_GPIO_GPSTATUS2,4,2     ; @SAA7134_GPIO_GPSTATUS2
	.comm	_GPIO_COMMAND_ADDR,4,2          ; @GPIO_COMMAND_ADDR
	.comm	_GPIO_COMMAND_IDLE,4,2          ; @GPIO_COMMAND_IDLE
	.comm	_GPIO_COMMAND_READ,4,2          ; @GPIO_COMMAND_READ
	.comm	_SAA7134_GPIO_GPMODE3,4,2       ; @SAA7134_GPIO_GPMODE3
	.comm	_SAA7134_GPIO_GPRESCAN,4,2      ; @SAA7134_GPIO_GPRESCAN
	.no_dead_strip	_gpio_read
.subsections_via_symbols
