	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_limits
_get_limits:                            ## @get_limits
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %rax
	movl	(%rax), %r8d
	movq	_FLAG_QPEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	32(%rdi), %eax
	cmpl	$1, %eax
	movb	$2, %cl
	sbbb	$0, %cl
	sarl	%cl, %r8d
	movq	_MAX_MV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%cl, %eax
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movl	$-16, %ecx
	movl	$-16, %edi
	subl	%esi, %edi
	movl	%edi, 36(%r14)
	subl	%edx, %ecx
	movl	%ecx, 40(%r14)
	movl	(%r14), %ebx
	movl	4(%r14), %ecx
	subl	%esi, %ebx
	movl	%ebx, 44(%r14)
	subl	%edx, %ecx
	jmp	LBB0_5
LBB0_2:
	movq	8(%r14), %rcx
	movq	_FMT_H261@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	cmpl	$16, %esi
	movl	$-15, %ebx
	movl	$0, %edi
	cmovgel	%ebx, %edi
	movl	%edi, 36(%r14)
	cmpl	$16, %edx
	cmovll	%ecx, %ebx
	movl	%ebx, 40(%r14)
	movl	16(%r14), %ebx
	movl	20(%r14), %r9d
	shll	$4, %ebx
	addl	$-16, %ebx
	cmpl	%esi, %ebx
	movl	$15, %esi
	movl	$0, %ebx
	cmovgl	%esi, %ebx
	movl	%ebx, 44(%r14)
	shll	$4, %r9d
	addl	$-16, %r9d
	cmpl	%edx, %r9d
	cmovgl	%esi, %ecx
	jmp	LBB0_5
LBB0_4:
	movl	%edx, %ecx
	negl	%ecx
	movl	%esi, %edi
	negl	%edi
	movl	%edi, 36(%r14)
	movl	%ecx, 40(%r14)
	movl	16(%r14), %ebx
	movl	20(%r14), %ecx
	shll	$4, %ebx
	subl	%esi, %ebx
	addl	$-16, %ebx
	movl	%ebx, 44(%r14)
	shll	$4, %ecx
	subl	%edx, %ecx
	addl	$-16, %ecx
LBB0_5:
	movl	%ecx, 48(%r14)
	cmpl	%eax, %r8d
	movl	%r8d, %ebx
	cmovgl	%eax, %ebx
	testl	%r8d, %r8d
	cmovel	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movl	%ebx, %r15d
	negl	%r15d
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, 36(%r14)
	movl	44(%r14), %edi
	movl	%ebx, %esi
	callq	_FFMIN
	movl	%eax, 44(%r14)
	movl	40(%r14), %edi
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, 40(%r14)
	movl	48(%r14), %edi
	movl	%ebx, %esi
	callq	_FFMIN
	movl	%eax, 48(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_QPEL,4,2                  ## @FLAG_QPEL
	.comm	_MAX_MV,4,2                     ## @MAX_MV
	.comm	_FMT_H261,8,3                   ## @FMT_H261
	.no_dead_strip	_get_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_limits
_get_limits:                            ; @get_limits
	.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	x19, x0
	ldr	x8, [x0, #56]
	ldr	w8, [x8]
	ldr	w9, [x0, #32]
Lloh0:
	adrp	x10, _FLAG_QPEL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAG_QPEL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #1
	cinc	w9, w9, ne
	asr	w8, w8, w9
Lloh3:
	adrp	x10, _MAX_MV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_MV@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w9, w10, w9
	ldr	x10, [x0, #24]
	cbz	x10, LBB0_2
; %bb.1:
	mov	w10, #-16
	sub	w0, w10, w1
	sub	w10, w10, w2
	stp	w0, w10, [x19, #36]
	ldp	w10, w11, [x19]
	sub	w10, w10, w1
	str	w10, [x19, #44]
	sub	w10, w11, w2
	b	LBB0_5
LBB0_2:
	ldr	x10, [x19, #8]
Lloh6:
	adrp	x11, _FMT_H261@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FMT_H261@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #-15
	cmp	w1, #15
	csel	w0, w10, wzr, gt
	cmp	w2, #15
	csel	w10, w10, wzr, gt
	stp	w0, w10, [x19, #36]
	ldp	w10, w11, [x19, #16]
	lsl	w10, w10, #4
	sub	w10, w10, #16
	mov	w12, #15
	cmp	w10, w1
	csel	w10, w12, wzr, gt
	str	w10, [x19, #44]
	lsl	w10, w11, #4
	sub	w10, w10, #16
	cmp	w10, w2
	csel	w10, w12, wzr, gt
	b	LBB0_5
LBB0_4:
	neg	w10, w2
	neg	w0, w1
	stp	w0, w10, [x19, #36]
	ldp	w10, w11, [x19, #16]
	lsl	w10, w10, #4
	sub	w10, w10, w1
	sub	w10, w10, #16
	str	w10, [x19, #44]
	lsl	w10, w11, #4
	sub	w10, w10, w2
	sub	w10, w10, #16
LBB0_5:
	str	w10, [x19, #48]
	cmp	w8, w9
	ccmp	w8, #0, #4, le
	csel	w20, w9, w8, eq
	cbz	w20, LBB0_7
; %bb.6:
	neg	w21, w20
	mov	x1, x21
	bl	_FFMAX
	str	w0, [x19, #36]
	ldr	w0, [x19, #44]
	mov	x1, x20
	bl	_FFMIN
	str	w0, [x19, #44]
	ldr	w0, [x19, #40]
	mov	x1, x21
	bl	_FFMAX
	str	w0, [x19, #40]
	ldr	w0, [x19, #48]
	mov	x1, x20
	bl	_FFMIN
	str	w0, [x19, #48]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_QPEL,4,2                  ; @FLAG_QPEL
	.comm	_MAX_MV,4,2                     ; @MAX_MV
	.comm	_FMT_H261,8,3                   ; @FMT_H261
	.no_dead_strip	_get_limits
.subsections_via_symbols
