	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_set_ios
_omap_hsmmc_set_ios:                    ## @omap_hsmmc_set_ios
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	8(%r14), %rax
	xorl	%r15d, %r15d
	cmpq	16(%rbx), %rax
	je	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	cmpq	$128, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$129, %rax
	je	LBB0_6
## %bb.3:
	cmpq	$130, %rax
	jne	LBB0_7
## %bb.4:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_omap_hsmmc_set_power
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_omap_hsmmc_set_power
	jmp	LBB0_7
LBB0_6:
	movl	$1, %r15d
LBB0_7:
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_omap_hsmmc_set_bus_width
	movq	8(%rbx), %rax
	movq	_OMAP_HSMMC_SUPPORTS_DUAL_VOLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.9:
	movl	4(%rbx), %edi
	movq	_HCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movq	_SDVSDET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	movl	(%r14), %esi
	movq	_DUAL_VOLT_OCR_BIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_omap_hsmmc_switch_opcond
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
LBB0_13:
	movq	%rbx, %rdi
	callq	_omap_hsmmc_set_clock
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_send_init_stream
LBB0_15:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_set_bus_mode        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_HSMMC_SUPPORTS_DUAL_VOLT,4,2 ## @OMAP_HSMMC_SUPPORTS_DUAL_VOLT
	.comm	_HCTL,4,2                       ## @HCTL
	.comm	_SDVSDET,4,2                    ## @SDVSDET
	.comm	_DUAL_VOLT_OCR_BIT,4,2          ## @DUAL_VOLT_OCR_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switch operation failed\n"

	.no_dead_strip	_omap_hsmmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_set_ios
_omap_hsmmc_set_ios:                    ; @omap_hsmmc_set_ios
	.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, x1
	bl	_mmc_priv
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x0, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_11
LBB0_2:
	cmp	x8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	x8, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	x8, #130
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #1
LBB0_7:
	bl	_omap_hsmmc_set_power
LBB0_8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:
	mov	w21, #1
LBB0_10:
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
LBB0_11:
	mov	x0, x19
	bl	_omap_hsmmc_set_bus_width
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _OMAP_HSMMC_SUPPORTS_DUAL_VOLT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP_HSMMC_SUPPORTS_DUAL_VOLT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.12:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _HCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
Lloh6:
	adrp	x8, _SDVSDET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDVSDET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.13:
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _DUAL_VOLT_OCR_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DUAL_VOLT_OCR_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_omap_hsmmc_switch_opcond
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_16:
	mov	x0, x19
	bl	_omap_hsmmc_set_clock
	cbz	w21, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_send_init_stream
LBB0_18:
	mov	x0, x19
	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	_omap_hsmmc_set_bus_mode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_HSMMC_SUPPORTS_DUAL_VOLT,4,2 ; @OMAP_HSMMC_SUPPORTS_DUAL_VOLT
	.comm	_HCTL,4,2                       ; @HCTL
	.comm	_SDVSDET,4,2                    ; @SDVSDET
	.comm	_DUAL_VOLT_OCR_BIT,4,2          ; @DUAL_VOLT_OCR_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switch operation failed\n"

	.no_dead_strip	_omap_hsmmc_set_ios
.subsections_via_symbols
