	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mmc_claim_host               ## -- Begin function __mmc_claim_host
	.p2align	4, 0x90
___mmc_claim_host:                      ## @__mmc_claim_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	%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, %r12
	movq	%rdi, %r15
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_DECLARE_WAITQUEUE
	xorl	%eax, %eax
	callq	_might_sleep
	leaq	20(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_add_wait_queue
	leaq	24(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_set_current_state
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	_current@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_schedule
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_1
LBB0_6:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movl	$1, (%r15)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	incl	16(%r15)
	xorl	%ebx, %ebx
	movb	$1, %r14b
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_wake_up
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_remove_wait_queue
	testb	%r14b, %r14b
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_mmc_host_enable
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,8,3                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___mmc_claim_host               ; -- Begin function __mmc_claim_host
	.p2align	2
___mmc_claim_host:                      ; @__mmc_claim_host
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _wait@GOTPAGE
Lloh1:
	ldr	x21, [x21, _wait@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x24, _current@GOTPAGE
Lloh3:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_DECLARE_WAITQUEUE
	bl	_might_sleep
	add	x20, x19, #20
	mov	x0, x20
	mov	x1, x21
	bl	_add_wait_queue
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh4:
	adrp	x25, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_set_current_state
	cbz	x22, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_atomic_read
	cbnz	w0, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	bl	_schedule
	mov	x0, x21
	bl	_spin_lock_irqsave
	b	LBB0_1
LBB0_6:
Lloh6:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	w23, #0
	mov	w22, #1
	str	w22, [x19]
	ldr	x8, [x24]
	str	x8, [x19, #8]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_7:
	mov	x23, x0
Lloh9:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x20
	bl	_wake_up
	mov	w22, #0
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x1, _wait@GOTPAGE
Lloh13:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_remove_wait_queue
	cbz	w22, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_mmc_host_enable
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,8,3                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
.subsections_via_symbols
