	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aic3x_get_gpio                 ## -- Begin function aic3x_get_gpio
	.p2align	4, 0x90
_aic3x_get_gpio:                        ## @aic3x_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	sete	%bl
	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), %esi
	leaq	-12(%rbp), %rdx
	callq	_aic3x_read
	movl	-12(%rbp), %ecx
	movb	$2, %al
	subb	%bl, %al
	movzbl	%al, %edx
	xorl	%eax, %eax
	btl	%edx, %ecx
	setb	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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_get_gpio                 ; -- Begin function aic3x_get_gpio
	.p2align	2
_aic3x_get_gpio:                        ; @aic3x_get_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
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]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	w8, #1
	cinc	w19, w8, ne
	add	x2, sp, #12
	bl	_aic3x_read
	ldr	w8, [sp, #12]
	lsr	w8, w8, w19
	and	w0, w8, #0x1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.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
