	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_clean_h263_qscales          ## -- Begin function ff_clean_h263_qscales
	.p2align	4, 0x90
_ff_clean_h263_qscales:                 ## @ff_clean_h263_qscales
	.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
	movq	32(%rdi), %rbx
	callq	_ff_init_qscale_tab
	movl	(%r14), %r9d
	cmpl	$2, %r9d
	jl	LBB0_17
## %bb.1:
	movq	8(%r14), %r8
	movq	(%r8), %rcx
	movl	(%rbx,%rcx,4), %esi
	movl	$1, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%r9d, %rcx
	movl	%eax, %esi
	cmpq	%rcx, %rdx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rdx,8), %rcx
	movl	(%rbx,%rcx,4), %eax
	movl	%eax, %edi
	subl	%esi, %edi
	cmpl	$3, %edi
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %esi
	movl	%esi, (%rbx,%rcx,4)
	movl	(%r14), %r9d
	movl	%esi, %eax
	jmp	LBB0_4
LBB0_5:
	cmpl	$2, %r9d
	jl	LBB0_17
## %bb.6:
	addl	$-2, %r9d
	movq	8(%r14), %rcx
	movq	%r9, %rdx
	testb	$1, %r9b
	jne	LBB0_10
## %bb.7:
	movq	(%rcx,%r9,8), %rdx
	movq	8(%rcx,%r9,8), %rax
	movl	(%rbx,%rdx,4), %edi
	movl	(%rbx,%rax,4), %esi
	subl	%esi, %edi
	cmpl	$3, %edi
	jl	LBB0_9
## %bb.8:
	addl	$2, %esi
	movl	%esi, (%rbx,%rdx,4)
LBB0_9:
	leaq	-1(%r9), %rdx
LBB0_10:
	testq	%r9, %r9
	je	LBB0_17
## %bb.11:
	addq	$2, %rdx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$-2, %rdx
	cmpq	$1, %rdx
	jle	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rcx,%rdx,8), %rax
	movq	-8(%rcx,%rdx,8), %rsi
	movl	(%rbx,%rax,4), %edi
	movl	(%rbx,%rsi,4), %esi
	subl	%esi, %edi
	cmpl	$3, %edi
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$2, %esi
	movl	%esi, (%rbx,%rax,4)
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-24(%rcx,%rdx,8), %rax
	movq	-16(%rcx,%rdx,8), %rsi
	movl	(%rbx,%rax,4), %edi
	movl	(%rbx,%rsi,4), %esi
	subl	%esi, %edi
	cmpl	$3, %edi
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$2, %esi
	movl	%esi, (%rbx,%rax,4)
	jmp	LBB0_16
LBB0_17:
	movq	16(%r14), %rax
	movq	_AV_CODEC_ID_H263P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.18:
	movl	(%r14), %r11d
	cmpl	$2, %r11d
	jl	LBB0_24
## %bb.19:
	movq	8(%r14), %r10
	movq	(%r10), %rdi
	movl	$1, %edx
	movq	_CANDIDATE_MB_TYPE_INTER4V@GOTPCREL(%rip), %r9
	movq	_CANDIDATE_MB_TYPE_INTER@GOTPCREL(%rip), %r8
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rdx
	movslq	%r11d, %rax
	cmpq	%rax, %rdx
	jge	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	movq	(%r10,%rdx,8), %rdi
	movslq	%edi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	cmpl	(%rbx,%rax,4), %ecx
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	24(%r14), %rcx
	movl	(%rcx,%rsi,4), %eax
	testl	%eax, (%r9)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	orl	(%r8), %eax
	movl	%eax, (%rcx,%rsi,4)
	movl	(%r14), %r11d
	jmp	LBB0_23
LBB0_24:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H263P,8,3          ## @AV_CODEC_ID_H263P
	.comm	_CANDIDATE_MB_TYPE_INTER4V,4,2  ## @CANDIDATE_MB_TYPE_INTER4V
	.comm	_CANDIDATE_MB_TYPE_INTER,4,2    ## @CANDIDATE_MB_TYPE_INTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_clean_h263_qscales          ; -- Begin function ff_clean_h263_qscales
	.p2align	2
_ff_clean_h263_qscales:                 ; @ff_clean_h263_qscales
	.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
	ldr	x20, [x0, #32]
	bl	_ff_init_qscale_tab
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x10, [x9]
	ldr	w11, [x20, x10, lsl #2]
	mov	w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w8, sxtw
	mov	x11, x12
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, x10, lsl #3]
	ldr	w12, [x20, x13, lsl #2]
	sub	w14, w12, w11
	cmp	w14, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w12, w11, #2
	str	w12, [x20, x13, lsl #2]
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	subs	w8, w8, #2
	b.lt	LBB0_10
; %bb.6:
	ldr	x9, [x19, #8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	x10, x8, #1
	cmp	x8, #0
	mov	x8, x10
	b.le	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x9, x8, lsl #3
	ldp	x10, x11, [x11]
	ldr	w12, [x20, x10, lsl #2]
	ldr	w11, [x20, x11, lsl #2]
	sub	w12, w12, w11
	cmp	w12, #3
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w11, w11, #2
	str	w11, [x20, x10, lsl #2]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _AV_CODEC_ID_H263P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_H263P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.12:
	ldr	x9, [x19, #8]
	ldr	x13, [x9]
	mov	w10, #1
Lloh3:
	adrp	x11, _CANDIDATE_MB_TYPE_INTER4V@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CANDIDATE_MB_TYPE_INTER4V@GOTPAGEOFF]
Lloh5:
	adrp	x12, _CANDIDATE_MB_TYPE_INTER@GOTPAGE
Lloh6:
	ldr	x12, [x12, _CANDIDATE_MB_TYPE_INTER@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	cmp	x10, w8, sxtw
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x20, x13, lsl #2]
	ldr	x13, [x9, x10, lsl #3]
	sbfiz	x15, x13, #2, #32
	ldr	w15, [x20, x15]
	cmp	w15, w14
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	sxtw	x14, w13
	ldr	x15, [x19, #24]
	ldr	w16, [x15, x14, lsl #2]
	ldr	w17, [x11]
	tst	w17, w16
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x12]
	orr	w8, w8, w16
	str	w8, [x15, x14, lsl #2]
	ldr	w8, [x19]
	b	LBB0_13
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H263P,8,3          ; @AV_CODEC_ID_H263P
	.comm	_CANDIDATE_MB_TYPE_INTER4V,4,2  ; @CANDIDATE_MB_TYPE_INTER4V
	.comm	_CANDIDATE_MB_TYPE_INTER,4,2    ; @CANDIDATE_MB_TYPE_INTER
.subsections_via_symbols
