	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pinctrl_gpio_get
_sunxi_pinctrl_gpio_get:                ## @sunxi_pinctrl_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_sunxi_data_reg
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_sunxi_data_offset
	movq	8(%r14), %rcx
	cmpq	$0, (%rcx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_gpiochip_line_is_irq
	addl	(%rbx), %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	4(%r14), %edi
	movq	_SUN4I_FUNC_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_sunxi_pmx_set
	movb	$1, %r15b
	jmp	LBB0_5
LBB0_3:
	addl	(%rbx), %r13d
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	addl	(%r14), %r12d
	movl	%r12d, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_DATA_PINS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testb	%r15b, %r15b
	je	LBB0_7
## %bb.6:
	movl	4(%r14), %edi
	movq	_SUN4I_FUNC_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_sunxi_pmx_set
LBB0_7:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	xorl	%eax, %eax
	testl	%r12d, %ebx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_FUNC_INPUT,4,2           ## @SUN4I_FUNC_INPUT
	.comm	_DATA_PINS_MASK,4,2             ## @DATA_PINS_MASK
	.comm	_SUN4I_FUNC_IRQ,4,2             ## @SUN4I_FUNC_IRQ
	.no_dead_strip	_sunxi_pinctrl_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pinctrl_gpio_get
_sunxi_pinctrl_gpio_get:                ; @sunxi_pinctrl_gpio_get
	.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	x22, x1
	mov	x23, x0
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x22
	bl	_sunxi_data_reg
	mov	x21, x0
	mov	x0, x22
	bl	_sunxi_data_offset
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_gpiochip_line_is_irq
	ldr	w8, [x23]
	add	w22, w8, w22
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _SUN4I_FUNC_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN4I_FUNC_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_sunxi_pmx_set
	mov	w24, #1
	b	LBB0_5
LBB0_3:
	mov	w24, #0
	ldr	w8, [x23]
	add	w22, w8, w22
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
	ldr	w8, [x19]
	add	w0, w8, w21
	bl	_readl
	mov	x21, x0
Lloh3:
	adrp	x8, _DATA_PINS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DATA_PINS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	cbz	w24, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _SUN4I_FUNC_IRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUN4I_FUNC_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_sunxi_pmx_set
LBB0_7:
	asr	w8, w21, w20
	tst	w8, w23
	cset	w0, ne
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_FUNC_INPUT,4,2           ; @SUN4I_FUNC_INPUT
	.comm	_DATA_PINS_MASK,4,2             ; @DATA_PINS_MASK
	.comm	_SUN4I_FUNC_IRQ,4,2             ; @SUN4I_FUNC_IRQ
	.no_dead_strip	_sunxi_pinctrl_gpio_get
.subsections_via_symbols
