	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comp_threshold_set
_comp_threshold_set:                    ## @comp_threshold_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tps_comparators@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r9
	movl	(%r8,%r9,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r10d
	movq	8(%r8,%r9,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	cmpl	%r10d, %esi
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpl	%ecx, %esi
	jl	LBB0_3
LBB0_5:
	cmpl	%ecx, %esi
	jle	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpl	%ecx, %esi
	jg	LBB0_6
LBB0_7:
	movl	16(%r8,%r9,8), %esi
	addq	%rdx, %rdx
	popq	%rbp
	jmp	_tps65910_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tps_comparators,8,3            ## @tps_comparators
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_comp_threshold_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comp_threshold_set
_comp_threshold_set:                    ; @comp_threshold_set
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tps_comparators@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tps_comparators@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	smaddl	x8, w1, w9, x8
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x10, #0
	ldr	x12, [x8, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x12, x10, lsl #2]
	cmp	w11, w2
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	w11, w9
	b.lt	LBB0_2
LBB0_4:
	cmp	w11, w9
	b.le	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	x10, #0
	mov	w11, #0
	cmp	w11, w9
	b.gt	LBB0_5
LBB0_7:
	ldr	w1, [x8, #16]
	lsl	x2, x10, #1
	b	_tps65910_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tps_comparators,8,3            ; @tps_comparators
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_comp_threshold_set
.subsections_via_symbols
