	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_alloc_parts
_mmc_blk_alloc_parts:                   ## @mmc_blk_alloc_parts
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_mmc_card_mmc
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.2:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	movq	_MMC_BLK_DATA_AREA_RPMB@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%rbx), %edx
	movl	-12(%rax,%rbx), %ecx
	movl	-8(%rax,%rbx), %r8d
	sarl	$9, %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_blk_alloc_rpmb_part
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-16(%rax,%rbx), %esi
	testl	%esi, (%r13)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-12(%rax,%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%rbx), %edx
	sarl	$9, %ecx
	movl	-8(%rax,%rbx), %r9d
	movl	-4(%rax,%rbx), %r8d
	movl	%esi, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_blk_alloc_part
	testl	%eax, %eax
	jne	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$20, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
## %bb.9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BLK_DATA_AREA_RPMB,4,2     ## @MMC_BLK_DATA_AREA_RPMB
	.no_dead_strip	_mmc_blk_alloc_parts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_alloc_parts
_mmc_blk_alloc_parts:                   ; @mmc_blk_alloc_parts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_mmc_card_mmc
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _MMC_BLK_DATA_AREA_RPMB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMC_BLK_DATA_AREA_RPMB@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x8, #16]
	ldp	w9, w4, [x8, #4]
	asr	w3, w9, #9
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_blk_alloc_rpmb_part
	cbnz	w0, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #20
	cmp	x22, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w6, [x8, x21]
	ldr	w9, [x23]
	add	x8, x8, x21
	tst	w9, w6
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w4, w2, [x8, #12]
	asr	w3, w9, #9
	ldr	w5, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_blk_alloc_part
	cbz	w0, LBB0_4
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BLK_DATA_AREA_RPMB,4,2     ; @MMC_BLK_DATA_AREA_RPMB
	.no_dead_strip	_mmc_blk_alloc_parts
.subsections_via_symbols
