	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_conf_pin_bias_set
_uniphier_conf_pin_bias_set:            ## @uniphier_conf_pin_bias_set
	.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	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pin_desc_get
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_uniphier_pin_get_pull_dir
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_26
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_8:
	movq	%r12, %rbx
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:
	movq	_UNIPHIER_PIN_PULL_UP_FIXED@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_25
LBB0_10:
	movq	_UNIPHIER_PIN_PULL_UP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.12:
	movl	$1, %r12d
	testl	%r13d, %r13d
	jne	LBB0_27
## %bb.13:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_26:
	movq	%r12, %rbx
	xorl	%eax, %eax
	callq	_BUG
	movl	$1, %r12d
	jmp	LBB0_27
LBB0_21:
	movq	_UNIPHIER_PIN_PULL_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.22:
	movl	(%r14), %edi
	movl	4(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	movq	%r12, %rbx
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.16:
	movq	_UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_25
LBB0_17:
	movq	_UNIPHIER_PIN_PULL_DOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.19:
	movl	$1, %r12d
	testl	%r13d, %r13d
	jne	LBB0_27
## %bb.20:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	movq	%r12, %rbx
	movq	_UNIPHIER_PIN_PULL_NONE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_25
## %bb.3:
	movq	_UNIPHIER_PIN_PULL_UP_FIXED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	xorl	%r12d, %r12d
	movq	_UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
LBB0_5:
	movl	(%r14), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_23:
	movq	%r12, %rbx
	movl	$1, %r12d
	testl	%r13d, %r13d
	je	LBB0_24
LBB0_27:
	movl	(%r15), %edi
	callq	_uniphier_pin_get_pupdctrl
	movl	%eax, %ecx
	movq	_UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPCREL(%rip), %rax
	movl	%ecx, %esi
	shrl	$3, %esi
	andl	$-4, %esi
	addl	(%rax), %esi
	movl	$1, %edx
	shll	%cl, %edx
	movl	(%rbx), %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	%r12d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_11:
	movl	(%r14), %edi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_18:
	movl	(%r14), %edi
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%r12d, %r12d
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_21
	.long	L0_0_set_15
	.long	L0_0_set_2
	.end_data_region
                                        ## -- 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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not disable pull register for pin %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UNIPHIER_PIN_PULL_UP,4,2       ## @UNIPHIER_PIN_PULL_UP
L_.str.1:                               ## @.str.1
	.asciz	"pull-up is unsupported for pin %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"pull-up can not be total\n"

	.comm	_UNIPHIER_PIN_PULL_DOWN,4,2     ## @UNIPHIER_PIN_PULL_DOWN
L_.str.3:                               ## @.str.3
	.asciz	"pull-down is unsupported for pin %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"pull-down can not be total\n"

L_.str.5:                               ## @.str.5
	.asciz	"pull-up/down is unsupported for pin %s\n"

	.comm	_UNIPHIER_PINCTRL_PUPDCTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_PUPDCTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_bias_set
.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_set
_uniphier_conf_pin_bias_set:            ; @uniphier_conf_pin_bias_set
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_pin_desc_get
	mov	x20, x0
	ldr	w0, [x0]
	bl	_uniphier_pin_get_pull_dir
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_21
LBB0_4:
Lloh5:
	adrp	x8, _UNIPHIER_PIN_PULL_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.5:
	cbnz	w22, LBB0_19
; %bb.6:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_7:
	bl	_BUG
	b	LBB0_19
LBB0_8:
Lloh10:
	adrp	x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.9:
	ldr	w0, [x21]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_10:
	cbz	w22, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_21
LBB0_12:
Lloh18:
	adrp	x8, _UNIPHIER_PIN_PULL_DOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_DOWN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.13:
	cbnz	w22, LBB0_19
; %bb.14:
	ldr	w0, [x21]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_15:
Lloh23:
	adrp	x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_21
; %bb.16:
Lloh26:
	adrp	x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UNIPHIER_PIN_PULL_UP_FIXED@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _UNIPHIER_PIN_PULL_DOWN_FIXED@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_26
; %bb.17:
	ldr	w0, [x21]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_18:
	cbz	w22, LBB0_21
LBB0_19:
	mov	w21, #1
LBB0_20:
	ldr	w0, [x20]
	bl	_uniphier_pin_get_pupdctrl
Lloh34:
	adrp	x8, _UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_PUPDCTRL_BASE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	lsr	w9, w0, #3
	and	w9, w9, #0x1ffffffc
	add	w1, w9, w8
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w2, w9, w0
	lsl	w3, w21, w0
	mov	x0, x8
	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
	b	_regmap_update_bits
LBB0_21:
	mov	w0, #0
	b	LBB0_25
LBB0_22:
	ldr	w0, [x21]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
	ldr	w0, [x21]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_24:
	bl	_dev_err
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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
LBB0_26:
	mov	w21, #0
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- 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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not disable pull register for pin %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UNIPHIER_PIN_PULL_UP,4,2       ; @UNIPHIER_PIN_PULL_UP
l_.str.1:                               ; @.str.1
	.asciz	"pull-up is unsupported for pin %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"pull-up can not be total\n"

	.comm	_UNIPHIER_PIN_PULL_DOWN,4,2     ; @UNIPHIER_PIN_PULL_DOWN
l_.str.3:                               ; @.str.3
	.asciz	"pull-down is unsupported for pin %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"pull-down can not be total\n"

l_.str.5:                               ; @.str.5
	.asciz	"pull-up/down is unsupported for pin %s\n"

	.comm	_UNIPHIER_PINCTRL_PUPDCTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_PUPDCTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_bias_set
.subsections_via_symbols
