	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_guess_level            ## -- Begin function ff_h264_guess_level
	.p2align	4, 0x90
_ff_h264_guess_level:                   ## @ff_h264_guess_level
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	leal	-66(%rdi), %eax
	cmpl	$23, %eax
	setae	%r15b
	movl	$4192254, %ecx                  ## imm = 0x3FF7FE
	btl	%eax, %ecx
	setb	%r12b
	movq	_h264_levels@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	orb	%r12b, %r15b
	leal	15(%r13), %eax
	leal	30(%r13), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	leal	15(%rbx), %eax
	leal	30(%rbx), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$4, %edx
	movl	%ecx, %eax
	imull	%edx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	imull	%edx, %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	imull	%ecx, %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	decl	%ebx
	cmpl	$-31, %ebx
	setb	%al
	decl	%r13d
	cmpl	$-31, %r13d
	setb	%cl
	andb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$32, %r13
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	cmpq	$0, 24(%rcx,%r13)
	setne	%al
	testb	%al, %r15b
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %ebx
	movq	%r14, %r15
	movl	16(%rcx,%r13), %r14d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_h264_get_br_factor
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	imull	%r14d, %eax
	movq	%r15, %r14
	movl	%ebx, %r15d
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx,%r13), %eax
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	shll	$3, %eax
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rcx,%r13), %eax
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %edi
	movl	$16, %esi
	callq	_FFMIN
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rcx,%r13), %eax
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_2
## %bb.11:
	shlq	$5, %r12
	addq	%r12, %rcx
	jmp	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movq	%rcx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	addq	%r13, %rcx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_h264_levels,8,3                ## @h264_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_guess_level            ; -- Begin function ff_h264_guess_level
	.p2align	2
_ff_h264_guess_level:                   ; @ff_h264_guess_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w5, [sp, #8]                    ; 4-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	str	w2, [sp]                        ; 4-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
	sub	w19, w0, #66
	cmp	w19, #22
	cset	w20, hi
Lloh0:
	adrp	x25, _h264_levels@GOTPAGE
Lloh1:
	ldr	x25, [x25, _h264_levels@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x26, #0
	mov	x27, #0
	mov	w8, #63486
	movk	w8, #63, lsl #16
	lsr	w8, w8, w19
	orr	w28, w20, w8
	add	w8, w23, #15
	add	w9, w23, #30
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w9, w24, #15
	add	w10, w24, #30
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w8, w8, #4
	asr	w9, w9, #4
	sub	w10, w24, #1
	sub	w11, w23, #1
	cmn	w10, #31
	mov	w10, #-31
	ccmp	w11, w10, #2, lo
	mul	w23, w8, w9
	mul	w9, w9, w9
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	mul	w20, w8, w8
	cset	w8, lo
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldr	x0, [x25]
	bl	_FF_ARRAY_ELEMS
	add	x26, x26, #32
	cmp	x27, w0, sxtw
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x25]
	add	x8, x19, x26
	ldr	x9, [x8, #24]
	cmp	x9, #0
	cset	w9, ne
	and	w9, w28, w9
	tbnz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x8, #16]
	mov	x0, x22
	bl	_h264_get_br_factor
	mul	w8, w0, w24
	cmp	w8, w21
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, x26]
	cmp	w23, w8
	lsl	w8, w8, #3
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w9, w8, #0, le
	ccmp	w20, w8, #0, le
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x19, x26
	ldr	w8, [x24, #4]
	sdiv	w0, w8, w23
	mov	w1, #16
	bl	_FFMIN
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24, #8]
	sdiv	w8, w8, w23
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.9:
	add	x0, x19, x27, lsl #5
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	add	x0, x19, x26
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_h264_levels,8,3                ; @h264_levels
.subsections_via_symbols
