	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_set_ios
_tmio_mmc_set_ios:                      ## @tmio_mmc_set_ios
	.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	%rsi, %r13
	callq	_mmc_priv
	movq	%rax, %r12
	movq	16(%rax), %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	32(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_IS_ERR
	movq	%rax, %r14
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %ebx
	callq	_task_pid_nr
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, 8(%r12)
	jmp	LBB0_4
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_tmio_mmc_power_off
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*24(%r12)
	jmp	LBB0_11
LBB0_3:
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r8d
	movl	36(%r12), %r9d
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_14
LBB0_9:
	movl	12(%r13), %esi
	movq	%r12, %rdi
	callq	_tmio_mmc_power_on
LBB0_10:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	*24(%r12)
	movl	8(%r13), %esi
	movq	%r12, %rdi
	callq	_tmio_mmc_set_bus_width
LBB0_11:
	movl	$140, %edi
	movl	$200, %esi
	callq	_usleep_range
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movq	_EINTR@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	movq	16(%r12), %r14
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %r15d
	callq	_task_pid_nr
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_13:
	movq	$0, 8(%r12)
	movl	4(%r13), %eax
	movl	%eax, 4(%r12)
LBB0_14:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%d: concurrent .set_ios(), clk %u, mode %u\n"

	.comm	_current,8,3                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"%s.%d: CMD%u active since %lu, now %lu!\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"%s.%d: IOS interrupted: clk %u, mode %u"

	.no_dead_strip	_tmio_mmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_set_ios
_tmio_mmc_set_ios:                      ; @tmio_mmc_set_ios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	bl	_mmc_priv
	mov	x19, x0
	ldr	x22, [x0, #16]
	bl	_mutex_lock
	add	x21, x19, #32
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_IS_ERR
	mov	x24, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	w23, [x0]
	bl	_task_pid_nr
	mov	x3, x0
	cbz	x24, LBB0_7
; %bb.2:
	ldp	w5, w4, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
Lloh5:
	adrp	x8, _EINTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x19, #8]
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_tmio_mmc_power_off
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w4, [x8]
	ldr	w5, [x19, #36]
Lloh11:
	adrp	x8, _jiffies@GOTPAGE
Lloh12:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_14
LBB0_9:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_tmio_mmc_power_on
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	w1, [x20, #4]
	mov	x0, x19
	blr	x8
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_tmio_mmc_set_bus_width
LBB0_11:
	mov	w0, #140
	mov	w1, #200
	bl	_usleep_range
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
Lloh16:
	adrp	x8, _EINTR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	x21, [x19, #16]
Lloh19:
	adrp	x8, _current@GOTPAGE
Lloh20:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	ldr	w22, [x0]
	bl	_task_pid_nr
	mov	x3, x0
	ldp	w5, w4, [x20]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
LBB0_13:
	str	xzr, [x19, #8]
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
LBB0_14:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%d: concurrent .set_ios(), clk %u, mode %u\n"

	.comm	_current,8,3                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"%s.%d: CMD%u active since %lu, now %lu!\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"%s.%d: IOS interrupted: clk %u, mode %u"

	.no_dead_strip	_tmio_mmc_set_ios
.subsections_via_symbols
