	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsi108_read_stat
_tsi108_read_stat:                      ## @tsi108_read_stat
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%edx, %r12d
	cmpl	$176, %esi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jge	LBB0_1
## %bb.2:
	movq	_TSI108_STAT_CARRY1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TSI108_STAT_CARRY2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r13d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_TSI_READ
	movl	%eax, %ebx
	movq	(%r14), %r15
	movl	%r13d, %edi
	callq	_TSI_READ
	andl	%r12d, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, (%r14)
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_TSI_WRITE
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_TSI_READ
	movl	%eax, %ebx
	movq	(%r14), %r15
	movl	%r13d, %edi
	callq	_TSI_READ
	andl	%r12d, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	movslq	%ebx, %rax
	orq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSI108_STAT_CARRY1,4,2         ## @TSI108_STAT_CARRY1
	.comm	_TSI108_STAT_CARRY2,4,2         ## @TSI108_STAT_CARRY2
	.no_dead_strip	_tsi108_read_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsi108_read_stat
_tsi108_read_stat:                      ; @tsi108_read_stat
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _TSI108_STAT_CARRY1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSI108_STAT_CARRY1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TSI108_STAT_CARRY2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TSI108_STAT_CARRY2@GOTPAGEOFF]
	cmp	w1, #176
	csel	x8, x8, x9, lt
	ldr	w22, [x8]
	mov	x0, x1
	bl	_TSI_READ
	mov	x23, x0
	ldr	x25, [x19]
	mov	x0, x22
	bl	_TSI_READ
	and	w0, w0, w20
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	sxtw	x24, w24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x24
	str	x8, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_TSI_WRITE
	mov	x0, x21
	bl	_TSI_READ
	mov	x23, x0
	ldr	x25, [x19]
	mov	x0, x22
	bl	_TSI_READ
	and	w0, w0, w20
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_3:
	sxtw	x8, w23
	orr	x0, x25, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TSI108_STAT_CARRY1,4,2         ; @TSI108_STAT_CARRY1
	.comm	_TSI108_STAT_CARRY2,4,2         ; @TSI108_STAT_CARRY2
	.no_dead_strip	_tsi108_read_stat
.subsections_via_symbols
