	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_rxbuf_data
_put_rxbuf_data:                        ## @put_rxbuf_data
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movl	16(%r15), %edi
	callq	_tty_kref_get
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	(%r14), %ebx
	movl	(%r15), %r13d
	leaq	L_.str.1(%rip), %rdi
	callq	_D1
	subl	%r13d, %ebx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TTY_THROTTLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %esi
	addl	4(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_tty_insert_flip_string
	movl	%eax, %r13d
	addl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_tty_flip_buffer_push
	subl	%r13d, %ebx
	jne	LBB0_6
LBB0_9:
	movl	$0, (%r15)
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hso_urb_to_index
	movq	$0, (%rbx,%rax,8)
	movq	%r12, %rdi
	callq	_tty_kref_put
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_D1
	movl	$-2, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_tty_kref_put
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"serial = NULL"

L_.str.1:                               ## @.str.1
	.asciz	"data to push to tty"

	.comm	_TTY_THROTTLED,4,2              ## @TTY_THROTTLED
	.no_dead_strip	_put_rxbuf_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_rxbuf_data
_put_rxbuf_data:                        ; @put_rxbuf_data
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x19, x0
	ldr	w0, [x20, #16]
	bl	_tty_kref_get
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w22, w8, w9
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D1
	cbz	w22, LBB0_7
; %bb.4:
Lloh2:
	adrp	x23, _TTY_THROTTLED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TTY_THROTTLED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	add	w1, w9, w8
	mov	x0, x21
	mov	x2, x22
	bl	_tty_insert_flip_string
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	sub	w22, w22, w0
	mov	x0, x21
	bl	_tty_flip_buffer_push
	cbnz	w22, LBB0_5
LBB0_7:
	str	wzr, [x20]
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_hso_urb_to_index
	str	xzr, [x22, x0, lsl #3]
	mov	x0, x21
	bl	_tty_kref_put
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D1
	mov	w0, #-2
LBB0_9:
	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_10:
	mov	x0, x21
	bl	_tty_kref_put
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"serial = NULL"

l_.str.1:                               ; @.str.1
	.asciz	"data to push to tty"

	.comm	_TTY_THROTTLED,4,2              ; @TTY_THROTTLED
	.no_dead_strip	_put_rxbuf_data
.subsections_via_symbols
