	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_set_blocklen               ## -- Begin function mmc_set_blocklen
	.p2align	4, 0x90
_mmc_set_blocklen:                      ## @mmc_set_blocklen
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_mmc_card_blockaddr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mmc_card_ddr52
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_card_hs400
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_mmc_card_hs400es
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_MMC_SET_BLOCKLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%r15d, -40(%rbp)
	movq	_MMC_RSP_SPI_R1@GOTPCREL(%rip), %rax
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MMC_CMD_AC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rbx), %edi
	leaq	-40(%rbp), %rsi
	movl	$5, %edx
	callq	_mmc_wait_for_cmd
	movl	%eax, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SET_BLOCKLEN,4,2           ## @MMC_SET_BLOCKLEN
	.comm	_MMC_RSP_SPI_R1,4,2             ## @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ## @MMC_CMD_AC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_set_blocklen               ; -- Begin function mmc_set_blocklen
	.p2align	2
_mmc_set_blocklen:                      ; @mmc_set_blocklen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_mmc_card_blockaddr
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mmc_card_ddr52
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mmc_card_hs400
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mmc_card_hs400es
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh0:
	adrp	x8, _MMC_SET_BLOCKLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_SET_BLOCKLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _MMC_RSP_SPI_R1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_RSP_SPI_R1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MMC_CMD_AC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MMC_CMD_AC@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
	stp	w20, w8, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #5
	bl	_mmc_wait_for_cmd
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_SET_BLOCKLEN,4,2           ; @MMC_SET_BLOCKLEN
	.comm	_MMC_RSP_SPI_R1,4,2             ; @MMC_RSP_SPI_R1
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ; @MMC_CMD_AC
.subsections_via_symbols
