	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmic_mpp_write_mode_ctl
_pmic_mpp_write_mode_ctl:               ## @pmic_mpp_write_mode_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_2
## %bb.3:
	cmpl	$0, 24(%rsi)
	je	LBB0_4
## %bb.5:
	cmpl	$0, 28(%rsi)
	je	LBB0_7
## %bb.6:
	movq	_PMIC_MPP_MODE_ANALOG_BIDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	cmpl	$0, 24(%rsi)
	je	LBB0_9
## %bb.10:
	cmpl	$0, 28(%rsi)
	je	LBB0_12
## %bb.11:
	movq	_PMIC_MPP_MODE_DIGITAL_BIDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_PMIC_MPP_MODE_CURRENT_SINK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_PMIC_MPP_MODE_ANALOG_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_PMIC_MPP_MODE_DIGITAL_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_PMIC_MPP_MODE_ANALOG_INPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_PMIC_MPP_MODE_DIGITAL_INPUT@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r8d
	movl	4(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_PMIC_MPP_SELECTOR_DTEST_FIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	jmp	LBB0_19
LBB0_15:
	cmpq	$0, 16(%rsi)
	je	LBB0_17
## %bb.16:
	movq	_PMIC_MPP_SELECTOR_PAIRED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_PMIC_MPP_SELECTOR_NORMAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	xorl	%edx, %edx
	cmpl	$0, 8(%rsi)
	setne	%dl
	movq	_PMIC_MPP_REG_MODE_DIR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	_PMIC_MPP_REG_MODE_FUNCTION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %r8d
	orl	%r8d, %eax
	movq	_PMIC_MPP_REG_MODE_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	popq	%rbp
	jmp	_pmic_mpp_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMIC_MPP_MODE_ANALOG_BIDIR,4,2 ## @PMIC_MPP_MODE_ANALOG_BIDIR
	.comm	_PMIC_MPP_MODE_ANALOG_INPUT,4,2 ## @PMIC_MPP_MODE_ANALOG_INPUT
	.comm	_PMIC_MPP_MODE_ANALOG_OUTPUT,4,2 ## @PMIC_MPP_MODE_ANALOG_OUTPUT
	.comm	_PMIC_MPP_MODE_DIGITAL_BIDIR,4,2 ## @PMIC_MPP_MODE_DIGITAL_BIDIR
	.comm	_PMIC_MPP_MODE_DIGITAL_INPUT,4,2 ## @PMIC_MPP_MODE_DIGITAL_INPUT
	.comm	_PMIC_MPP_MODE_DIGITAL_OUTPUT,4,2 ## @PMIC_MPP_MODE_DIGITAL_OUTPUT
	.comm	_PMIC_MPP_MODE_CURRENT_SINK,4,2 ## @PMIC_MPP_MODE_CURRENT_SINK
	.comm	_PMIC_MPP_SELECTOR_DTEST_FIRST,4,2 ## @PMIC_MPP_SELECTOR_DTEST_FIRST
	.comm	_PMIC_MPP_SELECTOR_PAIRED,4,2   ## @PMIC_MPP_SELECTOR_PAIRED
	.comm	_PMIC_MPP_SELECTOR_NORMAL,4,2   ## @PMIC_MPP_SELECTOR_NORMAL
	.comm	_PMIC_MPP_REG_MODE_DIR_SHIFT,4,2 ## @PMIC_MPP_REG_MODE_DIR_SHIFT
	.comm	_PMIC_MPP_REG_MODE_FUNCTION_SHIFT,4,2 ## @PMIC_MPP_REG_MODE_FUNCTION_SHIFT
	.comm	_PMIC_MPP_REG_MODE_CTL,4,2      ## @PMIC_MPP_REG_MODE_CTL
	.no_dead_strip	_pmic_mpp_write_mode_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmic_mpp_write_mode_ctl
_pmic_mpp_write_mode_ctl:               ; @pmic_mpp_write_mode_ctl
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	w8, [x1, #28]
	cbz	w8, LBB0_11
; %bb.4:
Lloh0:
	adrp	x8, _PMIC_MPP_MODE_ANALOG_BIDIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMIC_MPP_MODE_ANALOG_BIDIR@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	w8, [x1, #28]
	cbz	w8, LBB0_12
; %bb.7:
Lloh2:
	adrp	x8, _PMIC_MPP_MODE_DIGITAL_BIDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PMIC_MPP_MODE_DIGITAL_BIDIR@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh4:
	adrp	x8, _PMIC_MPP_MODE_CURRENT_SINK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PMIC_MPP_MODE_CURRENT_SINK@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _PMIC_MPP_MODE_ANALOG_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMIC_MPP_MODE_ANALOG_OUTPUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _PMIC_MPP_MODE_DIGITAL_OUTPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMIC_MPP_MODE_DIGITAL_OUTPUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, _PMIC_MPP_MODE_ANALOG_INPUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PMIC_MPP_MODE_ANALOG_INPUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _PMIC_MPP_MODE_DIGITAL_INPUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMIC_MPP_MODE_DIGITAL_INPUT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	ldr	w9, [x1, #4]
	cbz	w9, LBB0_15
; %bb.14:
Lloh14:
	adrp	x10, _PMIC_MPP_SELECTOR_DTEST_FIRST@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PMIC_MPP_SELECTOR_DTEST_FIRST@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w9, w9, w10
	sub	w9, w9, #1
	b	LBB0_19
LBB0_15:
	ldr	x9, [x1, #16]
	cbz	x9, LBB0_17
; %bb.16:
Lloh17:
	adrp	x9, _PMIC_MPP_SELECTOR_PAIRED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PMIC_MPP_SELECTOR_PAIRED@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh19:
	adrp	x9, _PMIC_MPP_SELECTOR_NORMAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PMIC_MPP_SELECTOR_NORMAL@GOTPAGEOFF]
LBB0_18:
	ldr	w9, [x9]
LBB0_19:
	ldr	w10, [x1, #8]
	cmp	w10, #0
Lloh21:
	adrp	x10, _PMIC_MPP_REG_MODE_DIR_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PMIC_MPP_REG_MODE_DIR_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w8, w8, w10
Lloh24:
	adrp	x10, _PMIC_MPP_REG_MODE_FUNCTION_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PMIC_MPP_REG_MODE_FUNCTION_SHIFT@GOTPAGEOFF]
	cset	w11, ne
Lloh26:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w11
Lloh27:
	adrp	x10, _PMIC_MPP_REG_MODE_CTL@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PMIC_MPP_REG_MODE_CTL@GOTPAGEOFF]
	orr	w3, w8, w9
Lloh29:
	ldr	w2, [x10]
	b	_pmic_mpp_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PMIC_MPP_MODE_ANALOG_BIDIR,4,2 ; @PMIC_MPP_MODE_ANALOG_BIDIR
	.comm	_PMIC_MPP_MODE_ANALOG_INPUT,4,2 ; @PMIC_MPP_MODE_ANALOG_INPUT
	.comm	_PMIC_MPP_MODE_ANALOG_OUTPUT,4,2 ; @PMIC_MPP_MODE_ANALOG_OUTPUT
	.comm	_PMIC_MPP_MODE_DIGITAL_BIDIR,4,2 ; @PMIC_MPP_MODE_DIGITAL_BIDIR
	.comm	_PMIC_MPP_MODE_DIGITAL_INPUT,4,2 ; @PMIC_MPP_MODE_DIGITAL_INPUT
	.comm	_PMIC_MPP_MODE_DIGITAL_OUTPUT,4,2 ; @PMIC_MPP_MODE_DIGITAL_OUTPUT
	.comm	_PMIC_MPP_MODE_CURRENT_SINK,4,2 ; @PMIC_MPP_MODE_CURRENT_SINK
	.comm	_PMIC_MPP_SELECTOR_DTEST_FIRST,4,2 ; @PMIC_MPP_SELECTOR_DTEST_FIRST
	.comm	_PMIC_MPP_SELECTOR_PAIRED,4,2   ; @PMIC_MPP_SELECTOR_PAIRED
	.comm	_PMIC_MPP_SELECTOR_NORMAL,4,2   ; @PMIC_MPP_SELECTOR_NORMAL
	.comm	_PMIC_MPP_REG_MODE_DIR_SHIFT,4,2 ; @PMIC_MPP_REG_MODE_DIR_SHIFT
	.comm	_PMIC_MPP_REG_MODE_FUNCTION_SHIFT,4,2 ; @PMIC_MPP_REG_MODE_FUNCTION_SHIFT
	.comm	_PMIC_MPP_REG_MODE_CTL,4,2      ; @PMIC_MPP_REG_MODE_CTL
	.no_dead_strip	_pmic_mpp_write_mode_ctl
.subsections_via_symbols
