	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmci_sdmmc_set_pwrreg
_mmci_sdmmc_set_pwrreg:                 ## @mmci_sdmmc_set_pwrreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rdi), %r14d
	movq	_MMC_POWER_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_reset_control_assert
	movl	$2, %edi
	callq	_udelay
	movl	24(%rbx), %edi
	callq	_reset_control_deassert
	movq	_MCI_STM32_PWR_CYC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_MCI_IRQENABLE@GOTPCREL(%rip), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MMCIMASK0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_MCI_PWR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %esi
	movq	%rbx, %rdi
	callq	_mmci_write_pwrreg
	movl	$1, %edi
	callq	_mdelay
	movq	_MCI_PWR_ON@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmci_write_pwrreg              ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_OFF,8,3              ## @MMC_POWER_OFF
	.comm	_MCI_STM32_PWR_CYC,4,2          ## @MCI_STM32_PWR_CYC
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_MCI_IRQENABLE,4,2              ## @MCI_IRQENABLE
	.comm	_MMCIMASK0,8,3                  ## @MMCIMASK0
	.comm	_MCI_PWR_OFF,4,2                ## @MCI_PWR_OFF
	.comm	_MCI_PWR_ON,4,2                 ## @MCI_PWR_ON
	.no_dead_strip	_mmci_sdmmc_set_pwrreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmci_sdmmc_set_pwrreg
_mmci_sdmmc_set_pwrreg:                 ; @mmci_sdmmc_set_pwrreg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w20, [x0]
Lloh0:
	adrp	x9, _MMC_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_reset_control_assert
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x19, #24]
	bl	_reset_control_deassert
Lloh3:
	adrp	x8, _MCI_STM32_PWR_CYC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_STM32_PWR_CYC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _MCI_IRQENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MCI_IRQENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #8]
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x8, _MMCIMASK0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMCIMASK0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x10
	bl	_writel
Lloh14:
	adrp	x8, _MCI_PWR_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MCI_PWR_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w1, w8, w20
	mov	x0, x19
	bl	_mmci_write_pwrreg
	mov	w0, #1
	bl	_mdelay
Lloh17:
	adrp	x8, _MCI_PWR_ON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCI_PWR_ON@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w1, w8, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmci_write_pwrreg
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_OFF,8,3              ; @MMC_POWER_OFF
	.comm	_MCI_STM32_PWR_CYC,4,2          ; @MCI_STM32_PWR_CYC
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_MCI_IRQENABLE,4,2              ; @MCI_IRQENABLE
	.comm	_MMCIMASK0,8,3                  ; @MMCIMASK0
	.comm	_MCI_PWR_OFF,4,2                ; @MCI_PWR_OFF
	.comm	_MCI_PWR_ON,4,2                 ; @MCI_PWR_ON
	.no_dead_strip	_mmci_sdmmc_set_pwrreg
.subsections_via_symbols
