	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_reg_get
_omap_hsmmc_reg_get:                    ## @omap_hsmmc_reg_get
	.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, %r14
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_mmc_regulator_get_supply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get_optional
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %r12
	addl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r12)
	jne	LBB0_12
LBB0_5:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_regulator_get_optional
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %r15
	addl	%ebx, %eax
	je	LBB0_10
## %bb.8:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_11:
	movq	%r14, %rdi
	callq	_mmc_pdata
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_13
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_disable_boot_regulators ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmmc_aux"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"unable to get vmmc_aux regulator %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"pbias"

L_.str.3:                               ## @.str.3
	.asciz	"SD card detect fail? enable CONFIG_REGULATOR_PBIAS\n"

L_.str.4:                               ## @.str.4
	.asciz	"unable to get pbias regulator %ld\n"

	.no_dead_strip	_omap_hsmmc_reg_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_reg_get
_omap_hsmmc_reg_get:                    ; @omap_hsmmc_reg_get
	.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
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_mmc_regulator_get_supply
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get_optional
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20]
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x22, [x19, #8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x21, x0
	ldr	x8, [x22]
	cbnz	x8, LBB0_13
LBB0_5:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_6:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_devm_regulator_get_optional
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x19]
	bl	_PTR_ERR
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x20, [x19, #8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
LBB0_10:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_11:
	mov	x0, x19
	bl	_mmc_pdata
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.12:
	mov	w21, #0
LBB0_13:
	mov	x0, 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
	ret
LBB0_14:
	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_disable_boot_regulators
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmmc_aux"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"unable to get vmmc_aux regulator %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"pbias"

l_.str.3:                               ; @.str.3
	.asciz	"SD card detect fail? enable CONFIG_REGULATOR_PBIAS\n"

l_.str.4:                               ; @.str.4
	.asciz	"unable to get pbias regulator %ld\n"

	.no_dead_strip	_omap_hsmmc_reg_get
.subsections_via_symbols
