	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0297_set_carrieroffset
_stv0297_set_carrieroffset:             ## @stv0297_set_carrieroffset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	imull	$26844, %esi, %eax              ## imm = 0x68DC
	leal	268435456(%rax), %ebx
	testq	%rsi, %rsi
	cmovnsl	%eax, %ebx
	movzbl	%bl, %edx
	movl	$102, %esi
	callq	_stv0297_writereg
	movzbl	%bh, %edx
	movq	%r14, %rdi
	movl	$103, %esi
	callq	_stv0297_writereg
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$104, %esi
	callq	_stv0297_writereg
	shrl	$24, %ebx
	andl	$15, %ebx
	movq	%r14, %rdi
	movl	$105, %esi
	movl	$15, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stv0297_writereg_mask          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stv0297_set_carrieroffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0297_set_carrieroffset
_stv0297_set_carrieroffset:             ; @stv0297_set_carrieroffset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #26844
	mul	x8, x1, x8
	mov	w9, #268435456
	add	x9, x8, x9
	cmp	x1, #0
	csel	x20, x9, x8, lt
	and	w2, w20, #0xfc
	mov	w1, #102
	bl	_stv0297_writereg
	ubfx	w2, w20, #8, #8
	mov	x0, x19
	mov	w1, #103
	bl	_stv0297_writereg
	ubfx	w2, w20, #16, #8
	mov	x0, x19
	mov	w1, #104
	bl	_stv0297_writereg
	ubfx	x3, x20, #24, #4
	mov	x0, x19
	mov	w1, #105
	mov	w2, #15
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stv0297_writereg_mask
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stv0297_set_carrieroffset
.subsections_via_symbols
