	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_buffers
_clear_buffers:                         ## @clear_buffers
	.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	%rdi, %r14
	movq	40(%rdi), %rbx
	movq	_NGENE_IO_TSOUT@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rbx
	cmpq	40(%r14), %rbx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	12(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_FillTSBuffer
	jmp	LBB0_3
LBB0_4:
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.5:
	movl	32(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	$0, 24(%r14)
	movq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	12(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%rbx), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_FillTSBuffer
	movq	(%rbx), %rbx
	cmpq	16(%r14), %rbx
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NGENE_IO_TSOUT,4,2             ## @NGENE_IO_TSOUT
	.no_dead_strip	_clear_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_buffers
_clear_buffers:                         ; @clear_buffers
	.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, x0
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x21, _NGENE_IO_TSOUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NGENE_IO_TSOUT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x20]
	ldr	x8, [x19, #40]
	cmp	x20, x8
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	ldp	w2, w1, [x19, #4]
	bl	_FillTSBuffer
	b	LBB0_1
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19, #32]
	str	w8, [x20, #12]
	str	xzr, [x19, #24]
	ldr	x20, [x19, #16]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #8]
	ldp	w2, w1, [x19, #4]
	bl	_FillTSBuffer
	ldr	x20, [x20]
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.ne	LBB0_6
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NGENE_IO_TSOUT,4,2             ; @NGENE_IO_TSOUT
	.no_dead_strip	_clear_buffers
.subsections_via_symbols
