	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	addl	$80, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movl	(%r15), %ecx
	movq	_mmc_host_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%eax, 4(%rbx)
	leaq	56(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_set_name
	movq	%r14, 72(%rbx)
	movq	%r14, 64(%rbx)
	movq	_mmc_host_class@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	%r15, %rdi
	callq	_device_initialize
	movq	%r15, %rdi
	callq	_device_enable_async_suspend
	movq	%rbx, %rdi
	callq	_mmc_gpio_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_put_device
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	leaq	52(%rbx), %rdi
	callq	_spin_lock_init
	leaq	48(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	44(%rbx), %rdi
	movq	_mmc_rescan@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	40(%rbx), %rdi
	movq	_sdio_irq_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	addq	$36, %rdi
	movq	_mmc_retune_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_timer_setup
	movl	$1, 8(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	%eax, 16(%rbx)
	leal	511(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	$512, 20(%rbx)                  ## imm = 0x200
	sarl	$9, %ecx
	movl	%ecx, 24(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, 32(%rbx)
	movl	$10, 28(%rbx)
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mmc_host_ida,4,2               ## @mmc_host_ida
	.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	_sdio_irq_work,4,2              ## @sdio_irq_work
	.comm	_mmc_retune_timer,4,2           ## @mmc_retune_timer
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
.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
	add	w0, w0, #80
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	w3, [x21]
Lloh2:
	adrp	x0, _mmc_host_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mmc_host_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x2, x0
	str	w0, [x19, #4]
	add	x21, x19, #56
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
	str	x20, [x19, #72]
Lloh6:
	adrp	x8, _mmc_host_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmc_host_class@GOTPAGEOFF]
	stp	x8, x20, [x19, #56]
	mov	x0, x21
	bl	_device_initialize
	mov	x0, x21
	bl	_device_enable_async_suspend
	mov	x0, x19
	bl	_mmc_gpio_alloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_put_device
	mov	x19, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	add	x0, x19, #52
	bl	_spin_lock_init
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x0, x19, #44
Lloh8:
	adrp	x8, _mmc_rescan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmc_rescan@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #40
Lloh11:
	adrp	x8, _sdio_irq_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sdio_irq_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #36
Lloh14:
	adrp	x8, _mmc_retune_timer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmc_retune_timer@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	w8, #1
Lloh17:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	mov	w8, #512
	stp	w9, w8, [x19, #16]
	add	w8, w9, #511
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #9
Lloh20:
	adrp	x9, _EINVAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	neg	w9, w9
	str	w9, [x19, #32]
	mov	w9, #10
	stp	w8, w9, [x19, #24]
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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mmc_host_ida,4,2               ; @mmc_host_ida
	.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	_sdio_irq_work,4,2              ; @sdio_irq_work
	.comm	_mmc_retune_timer,4,2           ; @mmc_retune_timer
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
