	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_interrupt
_if_sdio_interrupt:                     ## @if_sdio_interrupt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_sdio_get_drvdata
	movq	%rax, %r14
	movl	8(%rax), %edi
	movq	_IF_SDIO_H_INT_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_sdio_readb
	cmpl	$0, -28(%rbp)
	jne	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_lbs_deb_sdio
	movl	8(%r14), %edi
	movl	%ebx, %esi
	notl	%esi
	movl	(%r15), %edx
	leaq	-28(%rbp), %rcx
	callq	_sdio_writeb
	cmpl	$0, -28(%rbp)
	jne	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	movl	$1, (%rdi)
	movq	_IF_SDIO_H_INT_DNLD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	callq	_lbs_host_to_card_done
LBB0_5:
	movq	_IF_SDIO_H_INT_UPLD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_if_sdio_card_to_host
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_SDIO_H_INT_STATUS,4,2       ## @IF_SDIO_H_INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt: 0x%X\n"

	.comm	_IF_SDIO_H_INT_DNLD,4,2         ## @IF_SDIO_H_INT_DNLD
	.comm	_IF_SDIO_H_INT_UPLD,4,2         ## @IF_SDIO_H_INT_UPLD
	.no_dead_strip	_if_sdio_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_interrupt
_if_sdio_interrupt:                     ; @if_sdio_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_sdio_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x21, _IF_SDIO_H_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IF_SDIO_H_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_sdio_readb
	ldr	w8, [sp, #12]
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_lbs_deb_sdio
	ldr	w0, [x19, #8]
	mvn	w1, w20
	ldr	w2, [x21]
	add	x3, sp, #12
	bl	_sdio_writeb
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_6
; %bb.2:
	ldr	x0, [x19]
	mov	w8, #1
	str	w8, [x0]
Lloh4:
	adrp	x8, _IF_SDIO_H_INT_DNLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IF_SDIO_H_INT_DNLD@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	bl	_lbs_host_to_card_done
LBB0_4:
Lloh7:
	adrp	x8, _IF_SDIO_H_INT_UPLD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IF_SDIO_H_INT_UPLD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_if_sdio_card_to_host
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_SDIO_H_INT_STATUS,4,2       ; @IF_SDIO_H_INT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt: 0x%X\n"

	.comm	_IF_SDIO_H_INT_DNLD,4,2         ; @IF_SDIO_H_INT_DNLD
	.comm	_IF_SDIO_H_INT_UPLD,4,2         ; @IF_SDIO_H_INT_UPLD
	.no_dead_strip	_if_sdio_interrupt
.subsections_via_symbols
