	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_disable_supply
_omap_hsmmc_disable_supply:             ## @omap_hsmmc_disable_supply
	.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
	movq	%rdi, %r12
	callq	_mmc_priv
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	4(%r12), %edi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movl	4(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mmc_regulator_set_ocr
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_10
LBB0_1:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.2:
	movl	(%r12), %edi
	callq	_regulator_disable
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rbx
LBB0_10:
	movq	%r12, %rdi
	callq	_mmc_dev
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_dev_err
LBB0_11:
	movl	%r14d, %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	$0, (%r15)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmmc_aux reg disable failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"vmmc_aux re-enable failed\n"

	.no_dead_strip	_omap_hsmmc_disable_supply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_disable_supply
_omap_hsmmc_disable_supply:             ; @omap_hsmmc_disable_supply
	.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	x19, x0
	bl	_mmc_priv
	mov	x21, x0
	ldr	w0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_3
LBB0_1:
	ldr	w0, [x19, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.2:
	mov	w20, #0
	b	LBB0_11
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	w0, [x19]
	bl	_regulator_disable
	cbz	w0, LBB0_12
; %bb.5:
	mov	x20, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w1, [x19, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_mmc_regulator_set_ocr
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x19]
	bl	_IS_ERR
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	w0, [x19]
	bl	_regulator_enable
	cbz	w0, LBB0_11
; %bb.9:
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_mmc_dev
	mov	x1, x21
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	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_12:
	str	xzr, [x21]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmmc_aux reg disable failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"vmmc_aux re-enable failed\n"

	.no_dead_strip	_omap_hsmmc_disable_supply
.subsections_via_symbols
