	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdmmc_get_dctrl_cfg
_sdmmc_get_dctrl_cfg:                   ## @sdmmc_get_dctrl_cfg
	.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
	callq	_mmci_dctrl_blksz
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	callq	_mmc_card_sdio
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_MCI_DPSM_STM32_MODE_SDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
LBB0_7:
	movq	_MCI_DPSM_STM32_MODE_BLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MCI_DPSM_STM32_MODE_BLOCK_STOP@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %r14d
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_DPSM_STM32_MODE_SDIO,4,2   ## @MCI_DPSM_STM32_MODE_SDIO
	.comm	_MCI_DPSM_STM32_MODE_BLOCK_STOP,4,2 ## @MCI_DPSM_STM32_MODE_BLOCK_STOP
	.comm	_MCI_DPSM_STM32_MODE_BLOCK,4,2  ## @MCI_DPSM_STM32_MODE_BLOCK
	.no_dead_strip	_sdmmc_get_dctrl_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdmmc_get_dctrl_cfg
_sdmmc_get_dctrl_cfg:                   ; @sdmmc_get_dctrl_cfg
	.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	x20, x0
	bl	_mmci_dctrl_blksz
	mov	x19, x0
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_mmc_card_sdio
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MCI_DPSM_STM32_MODE_SDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_DPSM_STM32_MODE_SDIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _MCI_DPSM_STM32_MODE_BLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCI_DPSM_STM32_MODE_BLOCK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _MCI_DPSM_STM32_MODE_BLOCK_STOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MCI_DPSM_STM32_MODE_BLOCK_STOP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w0, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_DPSM_STM32_MODE_SDIO,4,2   ; @MCI_DPSM_STM32_MODE_SDIO
	.comm	_MCI_DPSM_STM32_MODE_BLOCK_STOP,4,2 ; @MCI_DPSM_STM32_MODE_BLOCK_STOP
	.comm	_MCI_DPSM_STM32_MODE_BLOCK,4,2  ; @MCI_DPSM_STM32_MODE_BLOCK
	.no_dead_strip	_sdmmc_get_dctrl_cfg
.subsections_via_symbols
