	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_set_block_size            ## -- Begin function sdio_set_block_size
	.p2align	4, 0x90
_sdio_set_block_size:                   ## @sdio_set_block_size
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	16(%rdi), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	cmpl	%ecx, %esi
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r14
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_min
	movl	%eax, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_min
	movl	%eax, %ecx
	movq	16(%r14), %rbx
LBB0_4:
	movl	8(%r14), %edi
	movl	%ecx, %r13d
	callq	_SDIO_FBR_BASE
	movq	_SDIO_FBR_BLKSIZE@GOTPCREL(%rip), %r15
	addq	(%r15), %rax
	movl	%r13d, %r12d
	movzbl	%r13b, %r8d
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	16(%r14), %rbx
	movl	8(%r14), %edi
	callq	_SDIO_FBR_BASE
	movq	(%r15), %rcx
	addq	%rax, %rcx
	incq	%rcx
	movl	%r12d, %eax
	movzbl	%ah, %eax
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	%r12d, 4(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDIO_FBR_BLKSIZE,8,3           ## @SDIO_FBR_BLKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_set_block_size            ; -- Begin function sdio_set_block_size
	.p2align	2
_sdio_set_block_size:                   ; @sdio_set_block_size
	.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	x20, x1
	ldr	x21, [x0, #16]
	ldr	x8, [x21]
	ldr	w1, [x8]
	cmp	w1, w20
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	cbnz	w20, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_min
	mov	w1, #512
	bl	_min
	mov	x20, x0
	ldr	x21, [x19, #16]
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_SDIO_FBR_BASE
Lloh3:
	adrp	x22, _SDIO_FBR_BLKSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SDIO_FBR_BLKSIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x3, x8, x0
	and	w4, w20, #0xff
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x21, [x19, #16]
	ldr	w0, [x19, #8]
	bl	_SDIO_FBR_BASE
	ldr	x8, [x22]
	add	x8, x0, x8
	add	x3, x8, #1
	ubfx	w4, w20, #8, #8
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_7
; %bb.6:
	str	w20, [x19, #4]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDIO_FBR_BLKSIZE,8,3           ; @SDIO_FBR_BLKSIZE
.subsections_via_symbols
