	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_pmx_set_one_mux
_uniphier_pmx_set_one_mux:              ## @uniphier_pmx_set_one_mux
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_uniphier_conf_pin_input_enable
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	js	LBB0_9
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	_UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	andl	(%rax), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	sete	%cl
	setne	%dl
	leal	4(,%rdx,4), %eax
	leal	4(,%rcx,4), %esi
	movq	_UNIPHIER_PINCTRL_PINMUX_BASE@GOTPCREL(%rip), %rcx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	imull	%esi, %r14d
	movl	%r14d, %ebx
	shrl	$5, %ebx
	imull	%eax, %ebx
	addl	(%rcx), %ebx
	leal	(%rbx,%rdx,4), %r12d
	addl	$4, %r12d
	cmpl	%r12d, %ebx
	jae	LBB0_6
## %bb.3:
	andl	$28, %r14d
	movl	$-1, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	notl	%r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r13d, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r13d
	addl	$4, %ebx
	cmpl	%r12d, %ebx
	jb	LBB0_4
LBB0_6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	movq	_UNIPHIER_PINCTRL_LOAD_PINMUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE,4,2 ## @UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE
	.comm	_UNIPHIER_PINCTRL_PINMUX_BASE,4,2 ## @UNIPHIER_PINCTRL_PINMUX_BASE
	.comm	_UNIPHIER_PINCTRL_LOAD_PINMUX,4,2 ## @UNIPHIER_PINCTRL_LOAD_PINMUX
	.no_dead_strip	_uniphier_pmx_set_one_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_pmx_set_one_mux
_uniphier_pmx_set_one_mux:              ; @uniphier_pmx_set_one_mux
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	bl	_uniphier_conf_pin_input_enable
	cbnz	w0, LBB0_9
; %bb.1:
	tbnz	w19, #31, LBB0_8
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w23, w9, w8
	mov	w8, #8
	mov	w9, #4
	csel	w10, w9, w8, eq
	csel	w24, w8, w9, eq
Lloh3:
	adrp	x8, _UNIPHIER_PINCTRL_PINMUX_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_PINMUX_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mul	w8, w24, w21
	lsr	w11, w8, #5
	madd	w21, w11, w10, w9
	add	w25, w21, w10
	cmp	w21, w25
	b.hs	LBB0_6
; %bb.3:
	and	w26, w8, #0x1c
	mov	w8, #-1
	lsl	w8, w8, w24
	mvn	w8, w8
	lsl	w22, w8, w26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	lsl	w3, w19, w26
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w19, w19, w24
	add	w21, w21, #4
	cmp	w21, w25
	b.lo	LBB0_4
LBB0_6:
	cbz	w23, LBB0_8
; %bb.7:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _UNIPHIER_PINCTRL_LOAD_PINMUX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_LOAD_PINMUX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_regmap_write
	cbnz	w0, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE,4,2 ; @UNIPHIER_PINCTRL_CAPS_DBGMUX_SEPARATE
	.comm	_UNIPHIER_PINCTRL_PINMUX_BASE,4,2 ; @UNIPHIER_PINCTRL_PINMUX_BASE
	.comm	_UNIPHIER_PINCTRL_LOAD_PINMUX,4,2 ; @UNIPHIER_PINCTRL_LOAD_PINMUX
	.no_dead_strip	_uniphier_pmx_set_one_mux
.subsections_via_symbols
