	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t5403_comp_temp
_t5403_comp_temp:                       ## @t5403_comp_temp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_mutex_lock
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_t5403_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_T5403_C_U16
	movl	%r12d, %ecx
	imull	%eax, %ecx
	leal	255(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$8, %ebx
	movl	$2, %edi
	callq	_T5403_C_U16
	shll	$6, %eax
	addl	%ebx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	leal	65535(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, (%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_t5403_comp_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t5403_comp_temp
_t5403_comp_temp:                       ; @t5403_comp_temp
	.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	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #0
	bl	_t5403_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_T5403_C_U16
	mul	w8, w21, w0
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #8
	mov	w0, #2
	bl	_T5403_C_U16
	add	w8, w22, w0, lsl #6
	mov	w9, #1000
	mul	w8, w8, w9
	mov	w9, #65535
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #16
	str	w8, [x20]
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_t5403_comp_temp
.subsections_via_symbols
