	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btsdio_interrupt
_btsdio_interrupt:                      ## @btsdio_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_sdio_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	_REG_INTRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sdio_readb
	testb	$1, %al
	je	LBB0_2
## %bb.1:
	movq	_REG_CL_INTRD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_sdio_writeb
	movq	%r14, %rdi
	callq	_btsdio_rx_packet
	testq	%rax, %rax
	js	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r14), %rax
	incl	(%rax)
	movq	(%r14), %rdi
	movq	_REG_PC_RRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdio_writeb                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_REG_INTRD,4,2                  ## @REG_INTRD
	.comm	_REG_CL_INTRD,4,2               ## @REG_CL_INTRD
	.comm	_REG_PC_RRT,4,2                 ## @REG_PC_RRT
	.no_dead_strip	_btsdio_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btsdio_interrupt
_btsdio_interrupt:                      ; @btsdio_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_sdio_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w1, [x8, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x8, _REG_INTRD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_INTRD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_sdio_readb
	tbz	w0, #0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _REG_CL_INTRD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_CL_INTRD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	mov	x3, #0
	bl	_sdio_writeb
	mov	x0, x19
	bl	_btsdio_rx_packet
	tbnz	x0, #63, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldp	x0, x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
Lloh8:
	adrp	x10, _REG_PC_RRT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _REG_PC_RRT@GOTPAGEOFF]
	str	w9, [x8]
Lloh10:
	ldr	w2, [x10]
	mov	w1, #1
	mov	x3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdio_writeb
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_REG_INTRD,4,2                  ; @REG_INTRD
	.comm	_REG_CL_INTRD,4,2               ; @REG_CL_INTRD
	.comm	_REG_PC_RRT,4,2                 ; @REG_PC_RRT
	.no_dead_strip	_btsdio_interrupt
.subsections_via_symbols
