	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb710_mmc_set_transfer_size
_cb710_mmc_set_transfer_size:           ## @cb710_mmc_set_transfer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CB710_MMC_S2_BUSY_20@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cb710_wait_while_busy
	movq	_CB710_MMC_TRANSFER_SIZE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rax
	shlq	$16, %rax
	addq	$-65536, %rax                   ## imm = 0xFFFF0000
	leaq	-1(%r14), %rdx
	orq	%rax, %rdx
	movq	%rbx, %rdi
	callq	_cb710_write_port_32
	movq	%rbx, %rdi
	callq	_cb710_slot_dev
	cmpq	$1, %r15
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rdx, %rcx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_vdbg                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CB710_MMC_S2_BUSY_20,4,2       ## @CB710_MMC_S2_BUSY_20
	.comm	_CB710_MMC_TRANSFER_SIZE_PORT,4,2 ## @CB710_MMC_TRANSFER_SIZE_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set up for %zu block%s of %zu bytes\n"

L_.str.1:                               ## @.str.1
	.space	1

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

	.no_dead_strip	_cb710_mmc_set_transfer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb710_mmc_set_transfer_size
_cb710_mmc_set_transfer_size:           ; @cb710_mmc_set_transfer_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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CB710_MMC_S2_BUSY_20@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CB710_MMC_S2_BUSY_20@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cb710_wait_while_busy
Lloh3:
	adrp	x8, _CB710_MMC_TRANSFER_SIZE_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CB710_MMC_TRANSFER_SIZE_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	lsl	x8, x20, #16
	sub	x8, x8, #16, lsl #12            ; =65536
	sub	x9, x19, #1
	orr	x2, x8, x9
	mov	x0, x21
	bl	_cb710_write_port_32
	mov	x0, x21
	bl	_cb710_slot_dev
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	cmp	x20, #1
	csel	x3, x9, x8, eq
	mov	x2, x20
	mov	x4, 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	_dev_vdbg
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CB710_MMC_S2_BUSY_20,4,2       ; @CB710_MMC_S2_BUSY_20
	.comm	_CB710_MMC_TRANSFER_SIZE_PORT,4,2 ; @CB710_MMC_TRANSFER_SIZE_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set up for %zu block%s of %zu bytes\n"

l_.str.1:                               ; @.str.1
	.space	1

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

	.no_dead_strip	_cb710_mmc_set_transfer_size
.subsections_via_symbols
