	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_conf_pin_input_enable
_uniphier_conf_pin_input_enable:        ## @uniphier_conf_pin_input_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_pin_desc_get
	movl	(%rax), %edi
	callq	_uniphier_pin_get_iectrl
	movq	8(%r15), %rdx
	movq	_UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdx), %ecx
	testq	%r14, %r14
	jne	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	movq	_UNIPHIER_PIN_IECTRL_NONE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testq	%r14, %r14
	cmovnel	%ecx, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%ecx, %ecx
	cmovnel	%r12d, %eax
	movq	_UNIPHIER_PINCTRL_IECTRL_BASE@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	shrl	$3, %ebx
	andl	$-4, %ebx
	addl	(%rcx), %ebx
	andl	$31, %eax
	movl	%eax, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testq	%r14, %r14
	movl	(%r15), %edi
	cmovnel	%eax, %ecx
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL,4,2 ## @UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UNIPHIER_PIN_IECTRL_NONE,4,2   ## @UNIPHIER_PIN_IECTRL_NONE
	.comm	_UNIPHIER_PINCTRL_IECTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_IECTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_input_enable
.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_input_enable
_uniphier_conf_pin_input_enable:        ; @uniphier_conf_pin_input_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_pin_desc_get
	ldr	w0, [x0]
	bl	_uniphier_pin_get_iectrl
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbnz	x19, LBB0_3
; %bb.1:
	cbnz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x9, _UNIPHIER_PIN_IECTRL_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UNIPHIER_PIN_IECTRL_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w9
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x19, #0
	csneg	w0, wzr, w8, ne
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x9, _UNIPHIER_PINCTRL_IECTRL_BASE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UNIPHIER_PINCTRL_IECTRL_BASE@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w21, w0, ne
Lloh14:
	ldr	w9, [x9]
	lsr	w10, w8, #3
	and	w10, w10, #0x1ffffffc
	add	w21, w9, w10
	and	w0, w8, #0x1f
	bl	_BIT
	mov	x2, x0
	ldr	w0, [x20]
	cmp	x19, #0
	csel	w3, w2, wzr, ne
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL,4,2 ; @UNIPHIER_PINCTRL_CAPS_PERPIN_IECTRL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UNIPHIER_PIN_IECTRL_NONE,4,2   ; @UNIPHIER_PIN_IECTRL_NONE
	.comm	_UNIPHIER_PINCTRL_IECTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_IECTRL_BASE
	.no_dead_strip	_uniphier_conf_pin_input_enable
.subsections_via_symbols
