	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_set_deblock_coef
_rv34_set_deblock_coef:                 ## @rv34_set_deblock_coef
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	24(%rdi), %eax
	imull	20(%rdi), %eax
	addl	16(%rdi), %eax
	addl	%eax, %eax
	movq	40(%rdi), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	(%rcx), %rbx
	movq	_motion_val@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_int16_t
	movq	%rbx, 16(%rax)
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_is_mv_diff_gt_3
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movl	$17, %r13d
	cmovel	%ebx, %r13d
	cmpl	$0, 20(%r12)
	movl	$0, %r14d
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	movl	24(%r12), %esi
	callq	_is_mv_diff_gt_3
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %r14d
LBB0_2:
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_is_mv_diff_gt_3
	testq	%rax, %rax
	movl	$68, %eax
	cmovel	%ebx, %eax
	orl	%eax, %r13d
	cmpl	$0, 20(%r12)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	24(%r12), %esi
	callq	_is_mv_diff_gt_3
	movl	%r14d, %ecx
	orl	$12, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %r14d
LBB0_4:
	movslq	24(%r12), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	%rdi, (%r15)
	movl	$1, %esi
	callq	_is_mv_diff_gt_3
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	%r15, %rax
	movl	$4352, %r15d                    ## imm = 0x1100
	cmovel	%ecx, %r15d
	orl	%r13d, %r15d
	movq	(%rax), %rdi
	movq	%rax, %r13
	movl	24(%r12), %esi
	callq	_is_mv_diff_gt_3
	movl	%r14d, %ebx
	orl	$768, %ebx                      ## imm = 0x300
	testq	%rax, %rax
	cmovel	%r14d, %ebx
	movq	(%r13), %rdi
	addq	$4, %rdi
	movl	$1, %esi
	callq	_is_mv_diff_gt_3
	testq	%rax, %rax
	movl	$17408, %r14d                   ## imm = 0x4400
	movl	$0, %eax
	cmovel	%eax, %r14d
	movq	(%r13), %rdi
	addq	$4, %rdi
	movl	24(%r12), %esi
	callq	_is_mv_diff_gt_3
	movl	%ebx, %ecx
	orl	$3072, %ecx                     ## imm = 0xC00
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movslq	24(%r12), %rax
	shlq	$2, %rax
	addq	%rax, (%r13)
	movq	32(%r12), %rsi
	movl	%ecx, %edx
	andl	$-16, %edx
	testq	%rsi, %rsi
	cmovel	%ecx, %edx
	movl	16(%r12), %edi
	testl	%edi, %edi
	cmovel	-44(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%r15d, %r14d
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.6:
	movl	%r14d, %eax
	shrl	%eax
	andl	$8738, %eax                     ## imm = 0x2222
	movl	%edx, %ecx
	shrl	$4, %ecx
	andl	$240, %ecx
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:
	shll	$3, %r15d
	andl	$34952, %r15d                   ## imm = 0x8888
	movq	(%r12), %r8
	movl	28(%r12), %ebx
	imull	20(%r12), %ebx
	addl	%ebx, %edi
	decl	%edi
	movslq	%edi, %rdi
	orl	%r15d, (%r8,%rdi,4)
LBB0_8:
	orl	%r14d, %eax
	orl	%edx, %ecx
	testq	%rsi, %rsi
	jne	LBB0_10
## %bb.9:
	shll	$12, %edx
	movzwl	%dx, %r8d
	movq	(%r12), %rsi
	movslq	16(%r12), %rdi
	movslq	20(%r12), %rbx
	decq	%rbx
	movslq	28(%r12), %rdx
	imulq	%rbx, %rdx
	addq	%rdi, %rdx
	orl	%r8d, (%rsi,%rdx,4)
	jmp	LBB0_10
LBB0_5:
	movl	%r14d, %eax
	movl	%edx, %ecx
LBB0_10:
	orl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_motion_val,8,3                 ## @motion_val
	.no_dead_strip	_rv34_set_deblock_coef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv34_set_deblock_coef
_rv34_set_deblock_coef:                 ; @rv34_set_deblock_coef
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	w8, w9, [x0, #16]
	ldr	w10, [x0, #24]
	madd	w8, w10, w9, w8
	lsl	w8, w8, #1
	ldr	x9, [x0, #40]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x21, x9, w8, sxtw #2
Lloh0:
	adrp	x20, _motion_val@GOTPAGE
Lloh1:
	ldr	x20, [x20, _motion_val@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_int16_t
	str	x21, [x0, #16]
	ldr	x0, [x20]
	mov	w1, #1
	bl	_is_mv_diff_gt_3
	cmp	x0, #0
	mov	w8, #17
	csel	w23, wzr, w8, eq
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x19, #24]
	bl	_is_mv_diff_gt_3
	cmp	x0, #0
	mov	w8, #3
	csel	w22, wzr, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	x8, [x20]
	add	x0, x8, #4
	mov	w1, #1
	bl	_is_mv_diff_gt_3
	cmp	x0, #0
	mov	w8, #68
	csel	w21, wzr, w8, eq
	orr	w23, w21, w23
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	add	x0, x8, #4
	ldr	w1, [x19, #24]
	bl	_is_mv_diff_gt_3
	orr	w8, w22, #0xc
	cmp	x0, #0
	csel	w22, w22, w8, eq
LBB0_5:
	ldrsw	x8, [x19, #24]
	ldr	x9, [x20]
	add	x0, x9, x8, lsl #2
	str	x0, [x20]
	mov	w1, #1
	bl	_is_mv_diff_gt_3
	cmp	x0, #0
	mov	w8, #4352
	csel	w8, wzr, w8, eq
	orr	w23, w8, w23
	ldr	x0, [x20]
	ldr	w1, [x19, #24]
	bl	_is_mv_diff_gt_3
	orr	w8, w22, #0x300
	cmp	x0, #0
	csel	w22, w22, w8, eq
	ldr	x8, [x20]
	add	x0, x8, #4
	mov	w1, #1
	bl	_is_mv_diff_gt_3
	cmp	x0, #0
	mov	w8, #17408
	csel	w24, wzr, w8, eq
	ldr	x8, [x20]
	add	x0, x8, #4
	ldr	w1, [x19, #24]
	bl	_is_mv_diff_gt_3
	orr	w8, w22, #0xc00
	cmp	x0, #0
	csel	w8, w22, w8, eq
	ldrsw	x9, [x19, #24]
	ldr	x10, [x20]
	add	x9, x10, x9, lsl #2
	str	x9, [x20]
	ldr	x11, [x19, #32]
	and	w9, w8, #0xf00
	cmp	x11, #0
	csel	w10, w8, w9, eq
	ldr	w12, [x19, #16]
	cmp	w12, #0
	csel	w13, w21, w23, eq
	orr	w8, w24, w13
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.6:
	lsr	w9, w8, #1
	and	w9, w9, #0x22222222
	orr	w8, w9, w8
	lsr	w9, w10, #4
	and	w9, w9, #0xf0
	orr	w9, w9, w10
	cbz	w12, LBB0_8
; %bb.7:
	lsl	w13, w13, #3
	and	w13, w13, #0x88888888
	ldr	x14, [x19]
	ldr	w15, [x19, #20]
	ldr	w16, [x19, #28]
	madd	w12, w16, w15, w12
	sub	w12, w12, #1
	sbfiz	x12, x12, #2, #32
	ldr	w15, [x14, x12]
	orr	w13, w15, w13
	str	w13, [x14, x12]
LBB0_8:
	cbnz	x11, LBB0_11
; %bb.9:
	ubfiz	w10, w10, #12, #4
	ldr	x11, [x19]
	ldp	w12, w13, [x19, #16]
	sub	w13, w13, #1
	ldr	w14, [x19, #28]
	madd	w12, w13, w14, w12
	sbfiz	x12, x12, #2, #32
	ldr	w13, [x11, x12]
	orr	w10, w13, w10
	str	w10, [x11, x12]
	b	LBB0_11
LBB0_10:
	mov	x9, x10
LBB0_11:
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_motion_val,8,3                 ; @motion_val
	.no_dead_strip	_rv34_set_deblock_coef
.subsections_via_symbols
