	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_switch_opcond
_omap_hsmmc_switch_opcond:              ## @omap_hsmmc_switch_opcond
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_clk_disable_unprepare
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_omap_hsmmc_set_power
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_omap_hsmmc_set_power
	movl	%eax, %r14d
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_clk_prepare_enable
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.11:
	movl	(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	movl	4(%rbx), %r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_HCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_OMAP_HSMMC_READ
	movq	_SDVSCLR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_OMAP_HSMMC_WRITE
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_OMAP_HSMMC_READ
	movl	$1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_MMC_VDD_23_24@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jle	LBB0_8
## %bb.9:
	movq	_SDVS30@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_SDVS18@GOTPCREL(%rip), %rcx
LBB0_10:
	orl	(%rcx), %eax
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_OMAP_HSMMC_WRITE
	movq	%rbx, %rdi
	callq	_set_sd_bus_power
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCTL,4,2                       ## @HCTL
	.comm	_SDVSCLR,4,2                    ## @SDVSCLR
	.comm	_MMC_VDD_23_24,4,2              ## @MMC_VDD_23_24
	.comm	_SDVS18,4,2                     ## @SDVS18
	.comm	_SDVS30,4,2                     ## @SDVS30
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to switch operating voltage\n"

	.no_dead_strip	_omap_hsmmc_switch_opcond
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_switch_opcond
_omap_hsmmc_switch_opcond:              ; @omap_hsmmc_switch_opcond
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_clk_disable_unprepare
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_omap_hsmmc_set_power
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
LBB0_4:
	bl	_clk_prepare_enable
LBB0_5:
	cbz	w20, LBB0_8
; %bb.6:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_omap_hsmmc_set_power
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_8:
	ldr	w22, [x19, #4]
Lloh2:
	adrp	x24, _HCTL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HCTL@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_OMAP_HSMMC_READ
Lloh4:
	adrp	x8, _SDVSCLR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDVSCLR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x22
	mov	x1, x23
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	bl	_OMAP_HSMMC_READ
	mov	w8, #1
Lloh7:
	adrp	x9, _MMC_VDD_23_24@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMC_VDD_23_24@GOTPAGEOFF]
	lsl	w8, w8, w21
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _SDVS30@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SDVS30@GOTPAGEOFF]
Lloh12:
	adrp	x11, _SDVS18@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SDVS18@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, gt
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	bl	_OMAP_HSMMC_WRITE
	mov	x0, x19
	bl	_set_sd_bus_power
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HCTL,4,2                       ; @HCTL
	.comm	_SDVSCLR,4,2                    ; @SDVSCLR
	.comm	_MMC_VDD_23_24,4,2              ; @MMC_VDD_23_24
	.comm	_SDVS18,4,2                     ; @SDVS18
	.comm	_SDVS30,4,2                     ; @SDVS30
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to switch operating voltage\n"

	.no_dead_strip	_omap_hsmmc_switch_opcond
.subsections_via_symbols
