	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt3c_swi_intr
_bt3c_swi_intr:                         ## @bt3c_swi_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testb	$1, %al
	je	LBB0_3
## %bb.1:
	andl	$-2, %eax
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	movq	_bt3c_forward@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ng_send_fn
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_NG_BT3C_ALERT
LBB0_3:
	movl	(%rbx), %eax
	testb	$2, %al
	je	LBB0_6
## %bb.4:
	andl	$-3, %eax
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	movq	_bt3c_send@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_ng_send_fn
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_NG_BT3C_ALERT
LBB0_6:
	movl	(%rbx), %eax
	testb	$32, %al
	jne	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	andl	$-33, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$28674, %esi                    ## imm = 0x7002
	callq	_bt3c_read
	movq	_BT3C_ANTENNA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_NG_BT3C_INFO                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bt3c_forward,4,2               ## @bt3c_forward
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not forward frames!\n"

	.comm	_bt3c_send,4,2                  ## @bt3c_send
L_.str.1:                               ## @.str.1
	.asciz	"Could not send frames!\n"

	.comm	_BT3C_ANTENNA_OUT,4,2           ## @BT3C_ANTENNA_OUT
L_.str.2:                               ## @.str.2
	.asciz	"Antenna %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"IN"

	.no_dead_strip	_bt3c_swi_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt3c_swi_intr
_bt3c_swi_intr:                         ; @bt3c_swi_intr
	.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	x19, x0
	ldr	w8, [x0]
	tbz	w8, #0, LBB0_3
; %bb.1:
	and	w8, w8, #0xfffffffe
	str	w8, [x19]
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x2, _bt3c_forward@GOTPAGE
Lloh1:
	ldr	x2, [x2, _bt3c_forward@GOTPAGEOFF]
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_ng_send_fn
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_NG_BT3C_ALERT
LBB0_3:
	ldr	w8, [x19]
	tbz	w8, #1, LBB0_6
; %bb.4:
	and	w8, w8, #0xfffffffd
	str	w8, [x19]
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x2, _bt3c_send@GOTPAGE
Lloh5:
	ldr	x2, [x2, _bt3c_send@GOTPAGEOFF]
	mov	x1, #0
	mov	x3, #0
	mov	w4, #1
	bl	_ng_send_fn
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_NG_BT3C_ALERT
LBB0_6:
	ldr	w8, [x19]
	tbnz	w8, #5, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	and	w8, w8, #0xffffffdf
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #28674
	bl	_bt3c_read
Lloh8:
	adrp	x8, _BT3C_ANTENNA_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BT3C_ANTENNA_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #4]
	bic	w8, w9, w8
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	str	w8, [x19, #8]
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_NG_BT3C_INFO
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_bt3c_forward,4,2               ; @bt3c_forward
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not forward frames!\n"

	.comm	_bt3c_send,4,2                  ; @bt3c_send
l_.str.1:                               ; @.str.1
	.asciz	"Could not send frames!\n"

	.comm	_BT3C_ANTENNA_OUT,4,2           ; @BT3C_ANTENNA_OUT
l_.str.2:                               ; @.str.2
	.asciz	"Antenna %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"IN"

	.no_dead_strip	_bt3c_swi_intr
.subsections_via_symbols
