	.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
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	4(%rdi), %r14d
	movzwl	%r12w, %r8d
	movzwl	%r14w, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r13d
	sarl	$16, %r13d
	sarl	$16, %r14d
	movl	%r12d, %ebx
	shll	$16, %ebx
	movq	_CX18_REG_GPIO_DIR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	notl	%ecx
	movl	%ebx, %esi
	callq	_cx18_write_reg_expect
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, %ebx
	movq	_CX18_REG_GPIO_OUT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_cx18_write_reg_expect
	andl	$-65536, %r12d                  ## imm = 0xFFFF0000
	movq	_CX18_REG_GPIO_DIR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %ecx
	notl	%ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %r8d
	callq	_cx18_write_reg_expect
	orl	%r14d, %r12d
	movq	_CX18_REG_GPIO_OUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx18_write_reg_expect          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_REG_GPIO_DIR1,4,2         ## @CX18_REG_GPIO_DIR1
	.comm	_CX18_REG_GPIO_OUT1,4,2         ## @CX18_REG_GPIO_OUT1
	.comm	_CX18_REG_GPIO_DIR2,4,2         ## @CX18_REG_GPIO_DIR2
	.comm	_CX18_REG_GPIO_OUT2,4,2         ## @CX18_REG_GPIO_OUT2
	.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	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, x0
	ldp	w25, w26, [x0]
	and	w20, w25, #0xffff
	and	w21, w26, #0xffff
	asr	w22, w25, #16
	asr	w23, w26, #16
	lsl	w24, w25, #16
Lloh0:
	adrp	x8, _CX18_REG_GPIO_DIR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_REG_GPIO_DIR1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mvn	w3, w20
	mov	x1, x24
	mov	x4, x20
	bl	_cx18_write_reg_expect
	bfxil	w24, w26, #0, #16
Lloh3:
	adrp	x8, _CX18_REG_GPIO_OUT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CX18_REG_GPIO_OUT1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x21
	mov	x4, x20
	bl	_cx18_write_reg_expect
	and	w20, w25, #0xffff0000
Lloh6:
	adrp	x8, _CX18_REG_GPIO_DIR2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX18_REG_GPIO_DIR2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mvn	w3, w22
	mov	x0, x19
	mov	x1, x20
	mov	x4, x22
	bl	_cx18_write_reg_expect
	orr	w1, w23, w20
Lloh9:
	adrp	x8, _CX18_REG_GPIO_OUT2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX18_REG_GPIO_OUT2@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x23
	mov	x4, x22
	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
	b	_cx18_write_reg_expect
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_REG_GPIO_DIR1,4,2         ; @CX18_REG_GPIO_DIR1
	.comm	_CX18_REG_GPIO_OUT1,4,2         ; @CX18_REG_GPIO_OUT1
	.comm	_CX18_REG_GPIO_DIR2,4,2         ; @CX18_REG_GPIO_DIR2
	.comm	_CX18_REG_GPIO_OUT2,4,2         ; @CX18_REG_GPIO_OUT2
	.no_dead_strip	_gpio_write
.subsections_via_symbols
