	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbsd_tasklet_card
_wbsd_tasklet_card:                     ## @wbsd_tasklet_card
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_WBSD_FIGNORE_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	movq	_WBSD_CSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_inb
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$255, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_WBSD_CARDPRESENT@GOTPCREL(%rip), %rcx
	movq	_WBSD_FCARD_PRESENT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%rbx), %eax
	testl	%r15d, (%rcx)
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movl	$500, %r15d                     ## imm = 0x1F4
	jmp	LBB0_8
LBB0_4:
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DBG
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.7:
	movl	4(%rbx), %edi
	callq	_mmc_hostname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_wbsd_reset
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	leaq	12(%rbx), %rdi
	callq	_tasklet_schedule
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	4(%rbx), %ebx
	movl	%r15d, %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_detect_change              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WBSD_FIGNORE_DETECT,4,2        ## @WBSD_FIGNORE_DETECT
	.comm	_WBSD_CSR,8,3                   ## @WBSD_CSR
	.comm	_WBSD_CARDPRESENT,4,2           ## @WBSD_CARDPRESENT
	.comm	_WBSD_FCARD_PRESENT,4,2         ## @WBSD_FCARD_PRESENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Card inserted\n"

L_.str.1:                               ## @.str.1
	.asciz	"Card removed\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Card removed during transfer!\n"

	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.no_dead_strip	_wbsd_tasklet_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbsd_tasklet_card
_wbsd_tasklet_card:                     ; @wbsd_tasklet_card
	.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	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _WBSD_FIGNORE_DETECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WBSD_FIGNORE_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x20
	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
	b	_spin_unlock
LBB0_2:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _WBSD_CSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WBSD_CSR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
	cmp	w0, #255
	cset	w0, eq
	bl	_WARN_ON
Lloh6:
	adrp	x8, _WBSD_CARDPRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WBSD_CARDPRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	w8, [x19]
Lloh9:
	adrp	x22, _WBSD_FCARD_PRESENT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _WBSD_FCARD_PRESENT@GOTPAGEOFF]
	ldr	w10, [x22]
	and	w8, w10, w8
	tst	w9, w21
	b.eq	LBB0_5
; %bb.3:
	cbnz	w8, LBB0_1
; %bb.4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w21, #500
	b	LBB0_9
LBB0_5:
	cbz	w8, LBB0_1
; %bb.6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_mmc_hostname
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_wbsd_reset
Lloh17:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	str	w8, [x9]
	add	x0, x19, #12
	bl	_tasklet_schedule
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock
	ldr	w19, [x19, #4]
	mov	x0, x21
	bl	_msecs_to_jiffies
	mov	x1, x0
	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
	b	_mmc_detect_change
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WBSD_FIGNORE_DETECT,4,2        ; @WBSD_FIGNORE_DETECT
	.comm	_WBSD_CSR,8,3                   ; @WBSD_CSR
	.comm	_WBSD_CARDPRESENT,4,2           ; @WBSD_CARDPRESENT
	.comm	_WBSD_FCARD_PRESENT,4,2         ; @WBSD_FCARD_PRESENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Card inserted\n"

l_.str.1:                               ; @.str.1
	.asciz	"Card removed\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Card removed during transfer!\n"

	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.no_dead_strip	_wbsd_tasklet_card
.subsections_via_symbols
