	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$0, %r13d
	cmoveq	%rsi, %r13
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DECLARE_WAITQUEUE
	xorl	%eax, %eax
	callq	_might_sleep
	leaq	8(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_add_wait_queue
	leaq	12(%r12), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_9
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_mmc_ctx_matches
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_1
LBB0_6:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movl	$1, (%r12)
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_mmc_ctx_set_claimer
	movl	4(%r12), %r14d
	leal	1(%r14), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_mmc_dev
	movl	%eax, %edi
	callq	_pm_runtime_get_sync
	jmp	LBB0_8
LBB0_9:
	movl	%eax, %r15d
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_wake_up
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_remove_wait_queue
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_wait,4,2                       ## @wait
	.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	x24, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	cmp	x21, #0
	csel	x23, x1, xzr, eq
Lloh3:
	adrp	x22, _wait@GOTPAGE
Lloh4:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_DECLARE_WAITQUEUE
	bl	_might_sleep
	add	x20, x19, #8
	mov	x0, x20
	mov	x1, x22
	bl	_add_wait_queue
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x26, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_set_current_state
	cbz	x24, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_atomic_read
	cbnz	w0, LBB0_9
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
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mmc_ctx_matches
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	bl	_schedule
	mov	x0, x22
	bl	_spin_lock_irqsave
	b	LBB0_1
LBB0_6:
Lloh7:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mmc_ctx_set_claimer
	ldr	w21, [x19, #4]
	add	w8, w21, #1
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x1, _wait@GOTPAGE
Lloh11:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_remove_wait_queue
	cbnz	w21, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mmc_dev
	bl	_pm_runtime_get_sync
LBB0_8:
	mov	w25, #0
	b	LBB0_10
LBB0_9:
	mov	x25, x0
Lloh12:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x20
	bl	_wake_up
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x1, _wait@GOTPAGE
Lloh16:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x20
	bl	_remove_wait_queue
LBB0_10:
	mov	x0, x25
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_wait,4,2                       ; @wait
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
.subsections_via_symbols
