	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmic_mpp_set_mux
_pmic_mpp_set_mux:                      ## @pmic_mpp_set_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	%r12
	pushq	%rbx
	.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), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movl	%r15d, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pmic_mpp_write_mode_ctl
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	4(%rbx), %eax
	movq	_PMIC_MPP_REG_MASTER_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_PMIC_MPP_REG_EN_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmic_mpp_write                 ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMIC_MPP_REG_MASTER_EN_SHIFT,4,2 ## @PMIC_MPP_REG_MASTER_EN_SHIFT
	.comm	_PMIC_MPP_REG_EN_CTL,4,2        ## @PMIC_MPP_REG_EN_CTL
	.no_dead_strip	_pmic_mpp_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmic_mpp_set_mux
_pmic_mpp_set_mux:                      ; @pmic_mpp_set_mux
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x20, [x8, w20, uxtw #3]
	str	w21, [x20]
	mov	x1, x20
	bl	_pmic_mpp_write_mode_ctl
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _PMIC_MPP_REG_MASTER_EN_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMIC_MPP_REG_MASTER_EN_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PMIC_MPP_REG_EN_CTL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PMIC_MPP_REG_EN_CTL@GOTPAGEOFF]
	lsl	w3, w8, w9
Lloh5:
	ldr	w2, [x10]
	mov	x0, x19
	mov	x1, x20
	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	_pmic_mpp_write
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PMIC_MPP_REG_MASTER_EN_SHIFT,4,2 ; @PMIC_MPP_REG_MASTER_EN_SHIFT
	.comm	_PMIC_MPP_REG_EN_CTL,4,2        ; @PMIC_MPP_REG_EN_CTL
	.no_dead_strip	_pmic_mpp_set_mux
.subsections_via_symbols
