	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_alloc_part
_mmc_blk_alloc_part:                    ## @mmc_blk_alloc_part
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	16(%rbp), %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %rdi
	callq	_disk_to_dev
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	callq	_mmc_blk_alloc_req
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	addq	$16, %r15
	movq	%r15, %rsi
	callq	_list_add
	movq	8(%rbx), %rdi
	callq	_get_capacity
	movq	_STRING_UNITS_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-58(%rbp), %r15
	movl	%eax, %edi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r15, %rcx
	movl	$10, %r8d
	callq	_string_get_size
	movq	8(%rbx), %rax
	movl	(%rax), %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mmc_card_id
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mmc_card_name
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r15, %r9
	callq	_pr_info
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_UNITS_2,4,2             ## @STRING_UNITS_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s %s partition %u %s\n"

	.no_dead_strip	_mmc_blk_alloc_part
.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_part
_mmc_blk_alloc_part:                    ; @mmc_blk_alloc_part
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [x1, #8]
	bl	_disk_to_dev
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x20
	bl	_mmc_blk_alloc_req
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_3:
	str	w22, [x20]
	add	x0, x20, #16
	add	x1, x21, #16
	bl	_list_add
	ldr	x0, [x20, #8]
	bl	_get_capacity
Lloh6:
	adrp	x8, _STRING_UNITS_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRING_UNITS_2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #14
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #512
	mov	w4, #10
	bl	_string_get_size
	ldr	x8, [x20, #8]
	ldr	w21, [x8]
	mov	x0, x19
	bl	_mmc_card_id
	mov	x22, x0
	mov	x0, x19
	bl	_mmc_card_name
	mov	x3, x0
	ldr	w4, [x20]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x5, sp, #14
	mov	x1, x21
	mov	x2, x22
	bl	_pr_info
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_UNITS_2,4,2             ; @STRING_UNITS_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s %s partition %u %s\n"

	.no_dead_strip	_mmc_blk_alloc_part
.subsections_via_symbols
