	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_write
_gpio_write:                            ## @gpio_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	%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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	_SAA7134_GPIO_GPMODE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$255, %esi
	callq	_saa_writeb
	movq	_SAA7134_GPIO_GPSTATUS0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_saa_writeb
	movq	_SAA7134_GPIO_GPSTATUS2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GPIO_COMMAND_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movq	_GPIO_COMMAND_IDLE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_saa_writeb
	movl	(%r15), %edi
	movzbl	%bl, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movq	_GPIO_COMMAND_WRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	(%r12), %esi
	callq	_saa_writeb
	movl	(%r15), %edi
	sarl	$8, %ebx
	movl	%ebx, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	(%r13), %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	(%r12), %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_WRITE,4,2         ## @GPIO_COMMAND_WRITE
	.no_dead_strip	_gpio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_write
_gpio_write:                            ; @gpio_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _SAA7134_GPIO_GPMODE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_GPIO_GPMODE0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #255
	bl	_saa_writeb
Lloh3:
	adrp	x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SAA7134_GPIO_GPSTATUS0@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_saa_writeb
Lloh5:
	adrp	x20, _SAA7134_GPIO_GPSTATUS2@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SAA7134_GPIO_GPSTATUS2@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _GPIO_COMMAND_ADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GPIO_COMMAND_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_saa_writeb
	ldr	w0, [x20]
Lloh10:
	adrp	x22, _GPIO_COMMAND_IDLE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _GPIO_COMMAND_IDLE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_saa_writeb
	ldr	w0, [x21]
	and	w1, w19, #0xff
	bl	_saa_writeb
	ldr	w0, [x20]
Lloh12:
	adrp	x23, _GPIO_COMMAND_WRITE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _GPIO_COMMAND_WRITE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_saa_writeb
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_saa_writeb
	ldr	w0, [x21]
	asr	w1, w19, #8
	bl	_saa_writeb
	ldr	w0, [x20]
	ldr	w1, [x23]
	bl	_saa_writeb
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_saa_writeb
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_WRITE,4,2         ; @GPIO_COMMAND_WRITE
	.no_dead_strip	_gpio_write
.subsections_via_symbols
