	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt3c_send
_bt3c_send:                             ## @bt3c_send
	.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
	movl	%ecx, %ebx
	callq	_NG_NODE_PRIVATE
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movslq	%eax, %r14
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	_BT3C_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_2:
	movl	(%r14), %eax
LBB0_4:
	movq	_BT3C_XMIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movl	$28800, %esi                    ## imm = 0x7080
	callq	_bt3c_set_address
	movq	_BT3C_FIFO_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.7:
	addq	$12, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IF_DEQUEUE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT3C_XMIT,4,2                  ## @BT3C_XMIT
	.comm	_BT3C_FIFO_SIZE,4,2             ## @BT3C_FIFO_SIZE
	.no_dead_strip	_bt3c_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt3c_send
_bt3c_send:                             ; @bt3c_send
	.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, x3
	bl	_NG_NODE_PRIVATE
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.1:
	sxtw	x19, w0
Lloh0:
	adrp	x8, _BT3C_XMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT3C_XMIT@GOTPAGEOFF]
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w9, [x8]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x19]
LBB0_4:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #28800
	bl	_bt3c_set_address
Lloh2:
	adrp	x8, _BT3C_FIFO_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT3C_FIFO_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:
	add	x0, x19, #12
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IF_DEQUEUE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BT3C_XMIT,4,2                  ; @BT3C_XMIT
	.comm	_BT3C_FIFO_SIZE,4,2             ; @BT3C_FIFO_SIZE
	.no_dead_strip	_bt3c_send
.subsections_via_symbols
