	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_power_on
_tmio_mmc_power_on:                     ## @tmio_mmc_power_on
	.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	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_2:
	movl	4(%r15), %edi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %esi
	movzwl	%r12w, %edx
	movq	%r15, %rdi
	callq	_mmc_regulator_set_ocr
	movl	%eax, %ebx
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
LBB0_4:
	movl	(%r15), %edi
	callq	_IS_ERR
	orl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_regulator_enable
	movl	%eax, %ebx
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
LBB0_6:
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Regulators failed to power up: %d\n"

	.no_dead_strip	_tmio_mmc_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_power_on
_tmio_mmc_power_on:                     ; @tmio_mmc_power_on
	.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	x21, x1
	mov	x19, x0
	ldp	x8, x20, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	mov	w1, #1
	blr	x8
LBB0_2:
	ldr	w0, [x20, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_4
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20, #4]
	mov	x0, x20
	mov	x2, x21
	bl	_mmc_regulator_set_ocr
	mov	x21, x0
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
LBB0_5:
	ldr	w0, [x20]
	bl	_IS_ERR
	orr	w8, w0, w21
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	bl	_regulator_enable
	mov	x21, x0
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
LBB0_7:
	tbnz	w21, #31, LBB0_9
; %bb.8:
	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
LBB0_9:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	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	_dev_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Regulators failed to power up: %d\n"

	.no_dead_strip	_tmio_mmc_power_on
.subsections_via_symbols
