	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usdhi6_cd
_usdhi6_cd:                             ## @usdhi6_cd
	.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	%rsi, %r15
	movq	8(%rsi), %r14
	movq	_USDHI6_SD_INFO1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_usdhi6_read
	movl	(%r15), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_USDHI6_SD_INFO1_CARD@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	movl	%ebx, %edx
	notl	%edx
	movq	%r15, %rdi
	callq	_usdhi6_write
	leaq	8(%r14), %rdi
	callq	_work_pending
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_USDHI6_SD_INFO1_CARD_INSERT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_7
LBB0_5:
	movq	_USDHI6_SD_INFO1_CARD_EJECT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_7:
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mmc_detect_change
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USDHI6_SD_INFO1,4,2            ## @USDHI6_SD_INFO1
	.comm	_USDHI6_SD_INFO1_CARD,4,2       ## @USDHI6_SD_INFO1_CARD
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_USDHI6_SD_INFO1_CARD_INSERT,4,2 ## @USDHI6_SD_INFO1_CARD_INSERT
	.comm	_USDHI6_SD_INFO1_CARD_EJECT,4,2 ## @USDHI6_SD_INFO1_CARD_EJECT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_usdhi6_cd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usdhi6_cd
_usdhi6_cd:                             ; @usdhi6_cd
	.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
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x22, _USDHI6_SD_INFO1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USDHI6_SD_INFO1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_usdhi6_read
	ldr	w8, [x20]
	bic	w8, w0, w8
Lloh2:
	adrp	x9, _USDHI6_SD_INFO1_CARD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USDHI6_SD_INFO1_CARD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ands	w21, w8, w9
	b.eq	LBB0_8
; %bb.1:
	ldr	w1, [x22]
	mvn	w2, w21
	mov	x0, x20
	bl	_usdhi6_write
	add	x0, x19, #8
	bl	_work_pending
	cbnz	w0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _USDHI6_SD_INFO1_CARD_INSERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USDHI6_SD_INFO1_CARD_INSERT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _USDHI6_SD_INFO1_CARD_EJECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USDHI6_SD_INFO1_CARD_EJECT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_6:
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_mmc_detect_change
LBB0_7:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USDHI6_SD_INFO1,4,2            ; @USDHI6_SD_INFO1
	.comm	_USDHI6_SD_INFO1_CARD,4,2       ; @USDHI6_SD_INFO1_CARD
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_USDHI6_SD_INFO1_CARD_INSERT,4,2 ; @USDHI6_SD_INFO1_CARD_INSERT
	.comm	_USDHI6_SD_INFO1_CARD_EJECT,4,2 ; @USDHI6_SD_INFO1_CARD_EJECT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_usdhi6_cd
.subsections_via_symbols
