	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_conf_pin_bias_get
_uniphier_conf_pin_bias_get:            ## @uniphier_conf_pin_bias_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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pin_desc_get
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_uniphier_pin_get_pull_dir
	cmpl	$128, %r12d
	je	LBB0_7
## %bb.1:
	cmpl	$129, %r12d
	je	LBB0_10
## %bb.2:
	cmpl	$130, %r12d
	jne	LBB0_12
## %bb.3:
	movq	_UNIPHIER_PIN_PULL_NONE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_15
## %bb.4:
	movq	_UNIPHIER_PIN_PULL_UP_FIXED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	movq	_UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
	jmp	LBB0_6
LBB0_7:
	movq	_UNIPHIER_PIN_PULL_UP_FIXED@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_15
## %bb.8:
	movq	_UNIPHIER_PIN_PULL_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_10:
	movq	_UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_15
## %bb.11:
	movq	_UNIPHIER_PIN_PULL_DOWN@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	$1, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	callq	_BUG
	movl	$1, %r12d
LBB0_13:
	movl	(%r15), %edi
	callq	_uniphier_pin_get_pupdctrl
	movl	%eax, %ebx
	movq	_UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	shrl	$3, %esi
	andl	$-4, %esi
	addl	(%rax), %esi
	movl	(%r14), %edi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	-36(%rbp), %eax
	xorl	%edx, %edx
	btl	%ebx, %eax
	setb	%dl
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%r12d, %edx
	cmovel	%eax, %ecx
LBB0_15:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_PIN_PULL_NONE,4,2     ## @UNIPHIER_PIN_PULL_NONE
	.comm	_UNIPHIER_PIN_PULL_UP_FIXED,4,2 ## @UNIPHIER_PIN_PULL_UP_FIXED
	.comm	_UNIPHIER_PIN_PULL_DOWN_FIXED,4,2 ## @UNIPHIER_PIN_PULL_DOWN_FIXED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UNIPHIER_PIN_PULL_UP,4,2       ## @UNIPHIER_PIN_PULL_UP
	.comm	_UNIPHIER_PIN_PULL_DOWN,4,2     ## @UNIPHIER_PIN_PULL_DOWN
	.comm	_UNIPHIER_PINCTRL_PUPDCTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_PUPDCTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_bias_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_conf_pin_bias_get
_uniphier_conf_pin_bias_get:            ; @uniphier_conf_pin_bias_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	x0, x22
	mov	x1, x20
	bl	_pin_desc_get
	mov	x20, x0
	ldr	w0, [x0]
	bl	_uniphier_pin_get_pull_dir
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w21, #130
	b.ne	LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_16
; %bb.5:
	mov	w21, #0
	b	LBB0_14
LBB0_6:
Lloh9:
	adrp	x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _UNIPHIER_PIN_PULL_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_17
LBB0_10:
	bl	_BUG
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x8, _UNIPHIER_PIN_PULL_DOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_DOWN@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
LBB0_13:
	mov	w21, #1
LBB0_14:
	ldr	w0, [x20]
	bl	_uniphier_pin_get_pupdctrl
	mov	x20, x0
Lloh19:
	adrp	x8, _UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	lsr	w9, w0, #3
	and	w9, w9, #0x1ffffffc
	add	w1, w9, w8
	ldr	w0, [x19]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	w8, [sp, #12]
	lsr	w8, w8, w20
	and	w8, w8, #0x1
Lloh22:
	adrp	x9, _EINVAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w21
	csneg	w0, wzr, w9, eq
	b	LBB0_17
LBB0_16:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_PIN_PULL_NONE,4,2     ; @UNIPHIER_PIN_PULL_NONE
	.comm	_UNIPHIER_PIN_PULL_UP_FIXED,4,2 ; @UNIPHIER_PIN_PULL_UP_FIXED
	.comm	_UNIPHIER_PIN_PULL_DOWN_FIXED,4,2 ; @UNIPHIER_PIN_PULL_DOWN_FIXED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UNIPHIER_PIN_PULL_UP,4,2       ; @UNIPHIER_PIN_PULL_UP
	.comm	_UNIPHIER_PIN_PULL_DOWN,4,2     ; @UNIPHIER_PIN_PULL_DOWN
	.comm	_UNIPHIER_PINCTRL_PUPDCTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_PUPDCTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_bias_get
.subsections_via_symbols
