	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aic3x_set_gpio                 ## -- Begin function aic3x_set_gpio
	.p2align	4, 0x90
_aic3x_set_gpio:                        ## @aic3x_set_gpio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_AIC3X_GPIO1_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AIC3X_GPIO2_REG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	setne	%bl
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_aic3x_read_reg_cache
	movzbl	%bl, %ecx
	leal	(%rcx,%rcx,2), %ecx
	btrl	%ecx, %eax
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aic3x_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AIC3X_GPIO2_REG,4,2            ## @AIC3X_GPIO2_REG
	.comm	_AIC3X_GPIO1_REG,4,2            ## @AIC3X_GPIO1_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aic3x_set_gpio                 ; -- Begin function aic3x_set_gpio
	.p2align	2
_aic3x_set_gpio:                        ; @aic3x_set_gpio
	.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, x0
Lloh0:
	adrp	x8, _AIC3X_GPIO2_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AIC3X_GPIO2_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AIC3X_GPIO1_REG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AIC3X_GPIO1_REG@GOTPAGEOFF]
	mov	w10, #3
	cmp	w1, #0
	csel	w22, wzr, w10, eq
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	mov	x1, x21
	bl	_aic3x_read_reg_cache
	mov	w8, #1
	lsl	w8, w8, w22
	bic	w8, w0, w8
	cmp	w19, #0
	cset	w9, ne
	lsl	w9, w9, w22
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	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
	b	_aic3x_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AIC3X_GPIO2_REG,4,2            ; @AIC3X_GPIO2_REG
	.comm	_AIC3X_GPIO1_REG,4,2            ; @AIC3X_GPIO1_REG
.subsections_via_symbols
