	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_alloc_host                 ## -- Begin function mmc_alloc_host
	.p2align	4, 0x90
_mmc_alloc_host:                        ## @mmc_alloc_host
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_mmc_host_idr@GOTPCREL(%rip), %rdi
	callq	_idr_pre_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	addl	$80, %ebx
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	_mmc_host_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	72(%rbx), %rdx
	movq	_mmc_host_idr@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_idr_get_new
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	48(%rbx), %r15
	movl	72(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movq	%r14, 64(%rbx)
	movq	%r14, 56(%rbx)
	movq	_mmc_host_class@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	%r15, %rdi
	callq	_device_initialize
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	leaq	36(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	32(%rbx), %rdi
	movq	_mmc_rescan@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	_mmc_host_deeper_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK_DEFERRABLE
	movq	_mmc_pm_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	_PAGE_CACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	movl	$512, 16(%rbx)                  ## imm = 0x200
	leal	511(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$9, %ecx
	movl	%ecx, 20(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_mmc_host_idr,4,2               ## @mmc_host_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mmc_host_lock,4,2              ## @mmc_host_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmc%d"

	.comm	_mmc_host_class,4,2             ## @mmc_host_class
	.comm	_mmc_rescan,4,2                 ## @mmc_rescan
	.comm	_mmc_host_deeper_disable,4,2    ## @mmc_host_deeper_disable
	.comm	_mmc_pm_notify,4,2              ## @mmc_pm_notify
	.comm	_PAGE_CACHE_SIZE,4,2            ## @PAGE_CACHE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_alloc_host                 ; -- Begin function mmc_alloc_host
	.p2align	2
_mmc_alloc_host:                        ; @mmc_alloc_host
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x0, _mmc_host_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mmc_host_idr@GOTPAGEOFF]
	bl	_idr_pre_get
	cbz	w0, LBB0_4
; %bb.1:
	add	w0, w19, #80
	ldr	w1, [x21]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x21, _mmc_host_lock@GOTPAGE
Lloh5:
	ldr	x21, [x21, _mmc_host_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	add	x2, x19, #72
Lloh6:
	adrp	x0, _mmc_host_idr@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mmc_host_idr@GOTPAGEOFF]
	mov	x1, x19
	bl	_idr_get_new
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbz	w22, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_kfree
LBB0_4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	add	x21, x19, #48
	ldr	w2, [x19, #72]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
	str	x20, [x19, #64]
Lloh10:
	adrp	x8, _mmc_host_class@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmc_host_class@GOTPAGEOFF]
	stp	x8, x20, [x19, #48]
	mov	x0, x21
	bl	_device_initialize
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_init_waitqueue_head
	add	x0, x19, #32
Lloh12:
	adrp	x8, _mmc_rescan@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mmc_rescan@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #28
Lloh15:
	adrp	x8, _mmc_host_deeper_disable@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mmc_host_deeper_disable@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK_DEFERRABLE
Lloh18:
	adrp	x8, _mmc_pm_notify@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmc_pm_notify@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	movi.2s	v0, #1
	str	d0, [x19]
Lloh21:
	adrp	x8, _PAGE_CACHE_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PAGE_CACHE_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #8]
	add	w9, w8, #511
	cmp	w8, #0
	csel	w8, w9, w8, lt
	mov	w9, #512
	asr	w8, w8, #9
	stp	w9, w8, [x19, #16]
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mmc_host_idr,4,2               ; @mmc_host_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mmc_host_lock,4,2              ; @mmc_host_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmc%d"

	.comm	_mmc_host_class,4,2             ; @mmc_host_class
	.comm	_mmc_rescan,4,2                 ; @mmc_rescan
	.comm	_mmc_host_deeper_disable,4,2    ; @mmc_host_deeper_disable
	.comm	_mmc_pm_notify,4,2              ; @mmc_pm_notify
	.comm	_PAGE_CACHE_SIZE,4,2            ; @PAGE_CACHE_SIZE
.subsections_via_symbols
