	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_gpio_get
_as3722_gpio_get:                       ## @as3722_gpio_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	%r14d, %edi
	callq	_AS3722_GPIOn_CONTROL_REG
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_as3722_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-52(%rbp), %r13d
	movq	_AS3722_GPIO_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	jae	LBB0_3
## %bb.4:
	movq	_AS3722_GPIO_INV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cltq
	leaq	l_switch.table.as3722_gpio_get(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_as3722_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	testl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	setne	%r15b
	movl	-48(%rbp), %ebx
	movl	%r14d, %edi
	callq	_AS3722_GPIOn_SIGNAL
	testl	%ebx, %eax
	setne	%al
	xorb	%r15b, %al
	movzbl	%al, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO_CONTROL%d_REG read failed: %d\n"

	.comm	_AS3722_GPIO_INV,4,2            ## @AS3722_GPIO_INV
	.comm	_AS3722_GPIO_MODE_MASK,4,2      ## @AS3722_GPIO_MODE_MASK
	.comm	_AS3722_GPIO_SIGNAL_IN_REG,4,2  ## @AS3722_GPIO_SIGNAL_IN_REG
	.comm	_AS3722_GPIO_SIGNAL_OUT_REG,4,2 ## @AS3722_GPIO_SIGNAL_OUT_REG
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"GPIO_SIGNAL_IN_REG read failed: %d\n"

	.no_dead_strip	_as3722_gpio_get
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.as3722_gpio_get
l_switch.table.as3722_gpio_get:
	.quad	_AS3722_GPIO_SIGNAL_OUT_REG
	.quad	_AS3722_GPIO_SIGNAL_OUT_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_gpio_get
_as3722_gpio_get:                       ; @as3722_gpio_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	x22, [x0, #8]
	mov	x0, x19
	bl	_AS3722_GPIOn_CONTROL_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x22
	bl	_as3722_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w23, [sp, #12]
Lloh0:
	adrp	x8, _AS3722_GPIO_MODE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS3722_GPIO_MODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
	sub	w8, w8, #128
	cmp	w8, #7
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _AS3722_GPIO_INV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AS3722_GPIO_INV@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x9]
Lloh6:
	adrp	x9, l_switch.table.as3722_gpio_get@PAGE
Lloh7:
	add	x9, x9, l_switch.table.as3722_gpio_get@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	bl	_as3722_read
	tbnz	w0, #31, LBB0_6
; %bb.3:
	and	w8, w24, w23
	cmp	w8, #0
	cset	w20, ne
	ldr	w21, [sp, #8]
	mov	x0, x19
	bl	_AS3722_GPIOn_SIGNAL
	tst	w0, w21
	cset	w8, ne
	eor	w21, w8, w20
	b	LBB0_8
LBB0_4:
	mov	x21, x0
	ldr	w0, [x20]
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	mov	x21, x0
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
LBB0_7:
	bl	_dev_err
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO_CONTROL%d_REG read failed: %d\n"

	.comm	_AS3722_GPIO_INV,4,2            ; @AS3722_GPIO_INV
	.comm	_AS3722_GPIO_MODE_MASK,4,2      ; @AS3722_GPIO_MODE_MASK
	.comm	_AS3722_GPIO_SIGNAL_IN_REG,4,2  ; @AS3722_GPIO_SIGNAL_IN_REG
	.comm	_AS3722_GPIO_SIGNAL_OUT_REG,4,2 ; @AS3722_GPIO_SIGNAL_OUT_REG
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"GPIO_SIGNAL_IN_REG read failed: %d\n"

	.no_dead_strip	_as3722_gpio_get
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.as3722_gpio_get
l_switch.table.as3722_gpio_get:
	.quad	_AS3722_GPIO_SIGNAL_OUT_REG
	.quad	_AS3722_GPIO_SIGNAL_OUT_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG
	.quad	_AS3722_GPIO_SIGNAL_IN_REG

.subsections_via_symbols
