	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pconf_get
_sunxi_pconf_get:                       ## @sunxi_pconf_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%r15), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r14d
	movq	8(%r12), %rax
	subl	(%rax), %ebx
	leaq	-44(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_sunxi_pconf_reg
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	-44(%rbp), %edi
	addl	(%r12), %edi
	callq	_readl
	movl	%eax, %ebx
	movb	-40(%rbp), %cl
	sarl	%cl, %ebx
	andl	-36(%rbp), %ebx
	movq	(%r15), %rdi
	callq	_pinconf_to_config_param
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	leal	(%rbx,%rbx,4), %eax
	leal	(%rax,%rax), %esi
	addl	$10, %esi
	jmp	LBB0_12
LBB0_10:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movq	_SUN4I_PINCTRL_PULL_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_SUN4I_PINCTRL_PULL_DOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	$1, %esi
	cmpl	(%rax), %ebx
	jne	LBB0_6
LBB0_12:
	movl	%r14d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	_SUN4I_PINCTRL_NO_PULL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	(%rax), %ebx
	je	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_SUN4I_PINCTRL_PULL_UP,4,2      ## @SUN4I_PINCTRL_PULL_UP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SUN4I_PINCTRL_PULL_DOWN,4,2    ## @SUN4I_PINCTRL_PULL_DOWN
	.comm	_SUN4I_PINCTRL_NO_PULL,4,2      ## @SUN4I_PINCTRL_NO_PULL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_sunxi_pconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pconf_get
_sunxi_pconf_get:                       ; @sunxi_pconf_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, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	sub	w0, w22, w8
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x1, x20
	bl	_sunxi_pconf_reg
	tbnz	w0, #31, LBB0_14
; %bb.1:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	add	w0, w9, w8
	bl	_readl
	mov	x21, x0
	ldp	w23, w22, [sp, #4]
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	sub	w9, w0, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.2:
	asr	w8, w21, w22
	and	w8, w8, w23
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	mov	w9, #10
	mul	w8, w8, w9
	add	w1, w8, #10
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x9, _SUN4I_PINCTRL_PULL_DOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SUN4I_PINCTRL_PULL_DOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x9, _SUN4I_PINCTRL_NO_PULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SUN4I_PINCTRL_NO_PULL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.6:
	mov	w1, #0
	b	LBB0_11
LBB0_7:
	mov	w0, #1
	bl	_WARN_ON
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x9, _SUN4I_PINCTRL_PULL_UP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUN4I_PINCTRL_PULL_UP@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.10:
	mov	w1, #1
LBB0_11:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_SUN4I_PINCTRL_PULL_UP,4,2      ; @SUN4I_PINCTRL_PULL_UP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SUN4I_PINCTRL_PULL_DOWN,4,2    ; @SUN4I_PINCTRL_PULL_DOWN
	.comm	_SUN4I_PINCTRL_NO_PULL,4,2      ; @SUN4I_PINCTRL_NO_PULL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_sunxi_pconf_get
.subsections_via_symbols
