	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_update_mv_step             ## -- Begin function tpg_update_mv_step
	.p2align	4, 0x90
_tpg_update_mv_step:                    ## @tpg_update_mv_step
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	24(%rdi), %r8
	leal	-128(%rax), %esi
	cmpl	$6, %esi
	ja	LBB0_7
## %bb.1:
	movl	$2, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_2:
	movl	$319, %ecx                      ## imm = 0x13F
	addl	8(%rdi), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$39, %rdx
	jmp	LBB0_3
LBB0_4:
	movl	$639, %ecx                      ## imm = 0x27F
	addl	8(%rdi), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$40, %rdx
LBB0_3:
	addl	%ecx, %edx
	shll	$2, %edx
	jmp	LBB0_6
LBB0_5:
	xorl	%edx, %edx
LBB0_6:
	movl	%edx, 4(%rdi)
LBB0_7:
	testq	%r8, %r8
	setne	%cl
	cmpl	$132, %eax
	setge	%al
	cmpb	%cl, %al
	je	LBB0_9
## %bb.8:
	movl	8(%rdi), %eax
	subl	4(%rdi), %eax
	movl	%eax, 4(%rdi)
LBB0_9:
	movl	12(%rdi), %eax
	leal	-128(%rax), %edx
	cmpl	$6, %edx
	ja	LBB0_16
## %bb.10:
	movl	$1, %ecx
	leaq	LJTI0_1(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_11:
	movl	$319, %ecx                      ## imm = 0x13F
	addl	8(%rdi), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$39, %rcx
	jmp	LBB0_12
LBB0_13:
	movl	$639, %ecx                      ## imm = 0x27F
	addl	8(%rdi), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$40, %rcx
LBB0_12:
	addl	%edx, %ecx
	shll	$2, %ecx
	jmp	LBB0_15
LBB0_14:
	xorl	%ecx, %ecx
LBB0_15:
	movl	%ecx, 16(%rdi)
LBB0_16:
	cmpl	$132, %eax
	jl	LBB0_18
## %bb.17:
	movl	20(%rdi), %eax
	subl	16(%rdi), %eax
	movl	%eax, 16(%rdi)
LBB0_18:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_11
	.long	L0_1_set_13
	.long	L0_1_set_14
	.long	L0_1_set_15
	.long	L0_1_set_11
	.long	L0_1_set_13
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_update_mv_step             ; -- Begin function tpg_update_mv_step
	.p2align	2
_tpg_update_mv_step:                    ; @tpg_update_mv_step
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	ldr	x9, [x0, #24]
	sub	w11, w8, #128
	cmp	w11, #6
	b.hi	LBB0_7
; %bb.1:
	mov	w10, #2
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
	ldr	w10, [x0, #8]
	add	w10, w10, #319
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #39
	b	LBB0_4
LBB0_3:
	ldr	w10, [x0, #8]
	add	w10, w10, #639
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #40
LBB0_4:
	add	w10, w10, w11
	lsl	w10, w10, #2
	b	LBB0_6
LBB0_5:
	mov	w10, #0
LBB0_6:
	str	w10, [x0, #4]
LBB0_7:
	cmp	x9, #0
	cset	w9, ne
	cmp	w8, #131
	cset	w8, gt
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldp	w9, w8, [x0, #4]
	sub	w8, w8, w9
	str	w8, [x0, #4]
LBB0_9:
	ldr	w8, [x0, #12]
	sub	w10, w8, #128
	cmp	w10, #6
	b.hi	LBB0_16
; %bb.10:
	mov	w9, #1
Lloh2:
	adrp	x11, lJTI0_1@PAGE
Lloh3:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_11
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_11:
	ldr	w9, [x0, #8]
	add	w9, w9, #319
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #39
	b	LBB0_13
LBB0_12:
	ldr	w9, [x0, #8]
	add	w9, w9, #639
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #40
LBB0_13:
	add	w9, w9, w10
	lsl	w9, w9, #2
	b	LBB0_15
LBB0_14:
	mov	w9, #0
LBB0_15:
	str	w9, [x0, #16]
LBB0_16:
	cmp	w8, #132
	b.lt	LBB0_18
; %bb.17:
	ldp	w9, w8, [x0, #16]
	sub	w8, w8, w9
	str	w8, [x0, #16]
LBB0_18:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
                                        ; -- End function
.subsections_via_symbols
