	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_3700_soc_pad_voltage_set
_armada_3700_soc_pad_voltage_set:       ## @armada_3700_soc_pad_voltage_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	_SOC_PAD_FIXED_1_8V@GOTPCREL(%rip), %rsi
	movq	_ARMADA_3700_SOC_PAD_1_8V@GOTPCREL(%rip), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_1
LBB0_5:
	movl	(%rcx), %edi
	movl	8(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	movq	_SOC_PAD_SD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.2:
	movq	_MMC_SIGNAL_VOLTAGE_180@GOTPCREL(%rip), %rdx
	cmpb	%bl, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	_MMC_SIGNAL_VOLTAGE_330@GOTPCREL(%rip), %rcx
	cmpb	%bl, (%rcx)
	jne	LBB0_6
## %bb.4:
	movq	_ARMADA_3700_SOC_PAD_3_3V@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOC_PAD_FIXED_1_8V,8,3         ## @SOC_PAD_FIXED_1_8V
	.comm	_ARMADA_3700_SOC_PAD_1_8V,4,2   ## @ARMADA_3700_SOC_PAD_1_8V
	.comm	_SOC_PAD_SD,8,3                 ## @SOC_PAD_SD
	.comm	_MMC_SIGNAL_VOLTAGE_180,1,0     ## @MMC_SIGNAL_VOLTAGE_180
	.comm	_MMC_SIGNAL_VOLTAGE_330,1,0     ## @MMC_SIGNAL_VOLTAGE_330
	.comm	_ARMADA_3700_SOC_PAD_3_3V,4,2   ## @ARMADA_3700_SOC_PAD_3_3V
	.no_dead_strip	_armada_3700_soc_pad_voltage_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_3700_soc_pad_voltage_set
_armada_3700_soc_pad_voltage_set:       ; @armada_3700_soc_pad_voltage_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _SOC_PAD_FIXED_1_8V@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SOC_PAD_FIXED_1_8V@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_1:
Lloh3:
	adrp	x9, _ARMADA_3700_SOC_PAD_1_8V@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARMADA_3700_SOC_PAD_1_8V@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x9]
	ldr	w1, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_3:
Lloh5:
	adrp	x10, _SOC_PAD_SD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SOC_PAD_SD@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_180@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_180@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w19
	b.eq	LBB0_1
; %bb.5:
Lloh10:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _ARMADA_3700_SOC_PAD_3_3V@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARMADA_3700_SOC_PAD_3_3V@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SOC_PAD_FIXED_1_8V,8,3         ; @SOC_PAD_FIXED_1_8V
	.comm	_ARMADA_3700_SOC_PAD_1_8V,4,2   ; @ARMADA_3700_SOC_PAD_1_8V
	.comm	_SOC_PAD_SD,8,3                 ; @SOC_PAD_SD
	.comm	_MMC_SIGNAL_VOLTAGE_180,1,0     ; @MMC_SIGNAL_VOLTAGE_180
	.comm	_MMC_SIGNAL_VOLTAGE_330,1,0     ; @MMC_SIGNAL_VOLTAGE_330
	.comm	_ARMADA_3700_SOC_PAD_3_3V,4,2   ; @ARMADA_3700_SOC_PAD_3_3V
	.no_dead_strip	_armada_3700_soc_pad_voltage_set
.subsections_via_symbols
