	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_tiger_bc
_send_tiger_bc:                         ## @send_tiger_bc
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	(%rsi), %ecx
	movl	%ecx, (%rsi)
	cmpl	%eax, %ecx
	jl	LBB0_4
## %bb.1:
	movl	4(%rbx), %ecx
	movq	_TX_UNDERRUN@GOTPCREL(%rip), %r15
	movq	_TX_INIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%r15), %edx
	testl	%ecx, %edx
	jne	LBB0_3
## %bb.2:
	movl	8(%r14), %esi
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	(%r15), %eax
	orl	%eax, 4(%rbx)
	movl	(%r14), %eax
LBB0_3:
	movl	%eax, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_bc_next_frame
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FLG_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fill_hdlc_flag                 ## TAILCALL
LBB0_6:
	movl	4(%r14), %r9d
	movl	8(%r14), %esi
	movl	12(%rbx), %edx
	movl	(%rbx), %ecx
	movl	8(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	_TX_IDLE@GOTPCREL(%rip), %r15
	movq	_TX_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_9
## %bb.7:
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	$255, %ecx
	callq	_fill_mem
	movl	(%rbx), %eax
	cmpl	(%r14), %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_UNDERRUN,4,2                ## @TX_UNDERRUN
	.comm	_TX_INIT,4,2                    ## @TX_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: B%1d TX underrun state %x\n"

	.comm	_FLG_HDLC,4,2                   ## @FLG_HDLC
L_.str.1:                               ## @.str.1
	.asciz	"%s: B%1d TX no data free %d idx %d/%d\n"

	.comm	_TX_IDLE,4,2                    ## @TX_IDLE
	.no_dead_strip	_send_tiger_bc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_tiger_bc
_send_tiger_bc:                         ; @send_tiger_bc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w9, w8, lt
	ldr	w10, [x1]
	add	w9, w10, w9, asr #1
	str	w9, [x1]
	cmp	w9, w8
	b.lt	LBB0_4
; %bb.1:
	ldr	w3, [x19, #4]
Lloh0:
	adrp	x21, _TX_UNDERRUN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_UNDERRUN@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _TX_INIT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TX_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w3
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x20, #8]
	ldr	w2, [x19, #12]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w8, [x20]
LBB0_3:
	str	w8, [x19]
LBB0_4:
	mov	x0, x19
	bl	_bc_next_frame
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x8, _FLG_HDLC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLG_HDLC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fill_hdlc_flag
LBB0_8:
	ldr	w3, [x19]
	ldp	w4, w2, [x19, #8]
	ldp	w5, w1, [x20, #4]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x21, _TX_IDLE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _TX_IDLE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh14:
	adrp	x10, _TX_INIT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TX_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_5
; %bb.9:
	ldr	w1, [x19, #8]
	ldr	w2, [x19]
	mov	x0, x19
	mov	w3, #255
	bl	_fill_mem
	ldr	w8, [x19]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.10:
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_UNDERRUN,4,2                ; @TX_UNDERRUN
	.comm	_TX_INIT,4,2                    ; @TX_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: B%1d TX underrun state %x\n"

	.comm	_FLG_HDLC,4,2                   ; @FLG_HDLC
l_.str.1:                               ; @.str.1
	.asciz	"%s: B%1d TX no data free %d idx %d/%d\n"

	.comm	_TX_IDLE,4,2                    ; @TX_IDLE
	.no_dead_strip	_send_tiger_bc
.subsections_via_symbols
