	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt3c_interrupt
_bt3c_interrupt:                        ## @bt3c_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	cmpq	$0, 8(%rsi)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r13), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_CONTROL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_inb
	movl	%eax, %r15d
	testb	$-128, %r15b
	je	LBB0_12
## %bb.1:
	movq	%r12, %rbx
	movl	%r14d, %edi
	movl	$28673, %esi                    ## imm = 0x7001
	callq	_bt3c_read
	movl	%eax, %r12d
	cmpb	$-1, %r12b
	je	LBB0_11
## %bb.2:
	cmpb	$127, %r12b
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_BT_ERR
	jmp	LBB0_11
LBB0_4:
	testb	$32, %r12b
	jne	LBB0_5
## %bb.6:
	testb	$1, %r12b
	jne	LBB0_7
LBB0_8:
	testb	$2, %r12b
	je	LBB0_10
LBB0_9:
	movq	_XMIT_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	callq	_clear_bit
	movq	%r13, %rdi
	callq	_bt3c_write_wakeup
LBB0_10:
	movl	%r14d, %edi
	movl	$28673, %esi                    ## imm = 0x7001
	xorl	%edx, %edx
	callq	_bt3c_io_write
	addq	(%rbx), %r14
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_outb
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movq	%r13, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, %edi
	movl	$28674, %esi                    ## imm = 0x7002
	callq	_bt3c_read
	movq	8(%r13), %rcx
	movl	(%rcx), %esi
	testb	$16, %al
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_INFO
	testb	$1, %r12b
	je	LBB0_8
LBB0_7:
	movq	%r13, %rdi
	callq	_bt3c_receive
	testb	$2, %r12b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CONTROL,8,3                    ## @CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Very strange (stat=0x%04x)"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Antenna %s"

L_.str.2:                               ## @.str.2
	.asciz	"out"

L_.str.3:                               ## @.str.3
	.asciz	"in"

	.comm	_XMIT_SENDING,4,2               ## @XMIT_SENDING
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bt3c_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt3c_interrupt
_bt3c_interrupt:                        ; @bt3c_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_spin_lock
Lloh3:
	adrp	x23, _CONTROL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x20
	bl	_inb
	tbz	w0, #7, LBB0_10
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #28673
	bl	_bt3c_read
	and	w8, w0, #0xff
	cmp	w8, #255
	b.eq	LBB0_9
; %bb.2:
	mov	x22, x0
	cmp	w8, #127
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_BT_ERR
	b	LBB0_9
LBB0_4:
	tbnz	w22, #5, LBB0_11
; %bb.5:
	tbnz	w22, #0, LBB0_12
LBB0_6:
	tbz	w22, #1, LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _XMIT_SENDING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XMIT_SENDING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
	mov	x0, x19
	bl	_bt3c_write_wakeup
LBB0_8:
	mov	x0, x20
	mov	w1, #28673
	mov	w2, #0
	bl	_bt3c_io_write
	ldr	x8, [x23]
	add	x1, x8, x20
	mov	x0, x21
	bl	_outb
LBB0_9:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	mov	w1, #28674
	bl	_bt3c_read
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	tst	w0, #0x10
	csel	x2, x9, x8, eq
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_INFO
	tbz	w22, #0, LBB0_6
LBB0_12:
	mov	x0, x19
	bl	_bt3c_receive
	tbnz	w22, #1, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CONTROL,8,3                    ; @CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Very strange (stat=0x%04x)"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Antenna %s"

l_.str.2:                               ; @.str.2
	.asciz	"out"

l_.str.3:                               ; @.str.3
	.asciz	"in"

	.comm	_XMIT_SENDING,4,2               ; @XMIT_SENDING
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bt3c_interrupt
.subsections_via_symbols
