	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fill_tst
___fill_tst:                            ## @__fill_tst
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %r15
	addq	$-2, %r15
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.1:
	movl	%ecx, %r12d
	movq	%rsi, %r13
	movq	24(%rdi), %rax
	cmpq	$2, %r15
	movl	$1, %ecx
	cmovaeq	%r15, %rcx
	addq	$8, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$16, %rax
	cmpq	%rbx, %rcx
	jne	LBB0_2
LBB0_4:
	movl	36(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	$-1, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	36(%rdi), %esi
	testq	%r13, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	je	LBB0_6
## %bb.7:
	movl	(%r13), %edx
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %edx
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %ecx
	callq	_NPRINTK
	movq	_TSTE_OPC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%r13, %r13
	je	LBB0_9
## %bb.10:
	movq	_TSTE_OPC_NULL@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	%r14d, %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	orl	(%r13), %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_12:
	testl	%edx, %edx
	jle	LBB0_13
LBB0_14:
	movq	8(%rsi), %rax
	movslq	16(%rsi), %rcx
	xorq	$1, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpq	$1, %r13
	sbbq	%rax, %rax
	orq	%r13, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	32(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %ecx
	movq	%r15, %r13
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rcx), %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	24(%rsi), %rcx
	orl	%eax, (%rcx,%r12)
	movslq	(%rsi), %rax
	subq	%rax, %r13
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	decl	%edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	cmpl	%r15d, %ebx
	cmovel	%eax, %ebx
	addq	%rcx, %r13
	testl	%edx, %edx
	jle	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r13
	jb	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rsi), %rax
	movslq	%ebx, %r14
	movq	%r14, %r12
	shlq	$4, %r12
	cmpq	$0, 8(%rax,%r12)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	leaq	(%rax,%r12), %rcx
	addq	$8, %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r12)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_timer_pending
	movq	_TSTE_PUSH_ACTIVE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_write_sram
	movq	_TSTE_PUSH_IDLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_9:
	movl	%r14d, %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testl	%edx, %edx
	jg	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: No free TST entries found\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: conn %d: first TST entry at %d.\n"

	.comm	_TSTE_OPC_MASK,4,2              ## @TSTE_OPC_MASK
	.comm	_TSTE_OPC_NULL,4,2              ## @TSTE_OPC_NULL
	.comm	_TSTE_PUSH_ACTIVE,4,2           ## @TSTE_PUSH_ACTIVE
	.comm	_TSTE_PUSH_IDLE,4,2             ## @TSTE_PUSH_IDLE
	.no_dead_strip	___fill_tst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fill_tst
___fill_tst:                            ; @__fill_tst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldrsw	x8, [x0]
	sub	x28, x8, #2
	cbz	w28, LBB0_4
; %bb.1:
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, #0
	ldr	x9, [x20, #24]
	cmp	x28, #1
	csinc	x8, x28, xzr, hi
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	add	x9, x9, #16
	cmp	x8, x22
	b.ne	LBB0_2
LBB0_4:
	ldr	w1, [x20, #36]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w0, #-1
	b	LBB0_20
LBB0_5:
	ldr	w1, [x20, #36]
	cbz	x23, LBB0_7
; %bb.6:
	ldr	w2, [x23]
	b	LBB0_8
LBB0_7:
	mov	w2, #-1
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_NPRINTK
Lloh4:
	adrp	x8, _TSTE_OPC_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TSTE_OPC_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w21, w8, w24
	cbz	x23, LBB0_11
; %bb.9:
Lloh7:
	adrp	x8, _TSTE_OPC_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TSTE_OPC_NULL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w24
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x23]
	orr	w21, w8, w24
LBB0_11:
	cmp	w19, #1
	b.lt	LBB0_19
; %bb.12:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #16]
	eor	x9, x9, #0x1
	ldr	x10, [x8, x9, lsl #3]
	cmp	x23, #0
	csinv	x8, x23, xzr, ne
	stp	x10, x8, [sp]                   ; 16-byte Folded Spill
	add	x23, x20, #32
	mov	w27, w19
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	mov	x25, x28
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	ldr	w10, [x9, x24]
	orr	w8, w10, w8
	str	w8, [x9, x24]
	ldrsw	x8, [x20]
	sub	x25, x25, x8
	sub	w19, w19, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w8, w22, #1
	cmp	w8, w28
	csinc	w22, wzr, w22, eq
	add	x25, x25, x27
	cmp	w19, #0
	b.le	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x28
	b.lo	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #24]
	add	x9, x8, w22, sxtw #4
	ldr	x10, [x9, #8]!
	cbnz	x10, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sxtw	x26, w22
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	str	x10, [x9]
	lsl	x24, x26, #4
	str	w21, [x8, x24]
	mov	x0, x23
	bl	_timer_pending
Lloh10:
	adrp	x8, _TSTE_PUSH_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TSTE_PUSH_ACTIVE@GOTPAGEOFF]
	cbnz	x0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x1, x8, x26
	mov	x0, x20
	mov	x2, x21
	bl	_write_sram
Lloh12:
	adrp	x8, _TSTE_PUSH_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TSTE_PUSH_IDLE@GOTPAGEOFF]
	b	LBB0_13
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: No free TST entries found\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: conn %d: first TST entry at %d.\n"

	.comm	_TSTE_OPC_MASK,4,2              ; @TSTE_OPC_MASK
	.comm	_TSTE_OPC_NULL,4,2              ; @TSTE_OPC_NULL
	.comm	_TSTE_PUSH_ACTIVE,4,2           ; @TSTE_PUSH_ACTIVE
	.comm	_TSTE_PUSH_IDLE,4,2             ; @TSTE_PUSH_IDLE
	.no_dead_strip	___fill_tst
.subsections_via_symbols
