	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h265_guess_level            ## -- Begin function ff_h265_guess_level
	.p2align	4, 0x90
_ff_h265_guess_level:                   ## @ff_h265_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_ff_h265_get_profile
	movq	_h265_profiles@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	$120, %rdx
	testq	%rax, %rax
	cmovneq	%rax, %rdx
	movl	(%rbx), %r15d
	movl	4(%rbx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_h265_profiles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	120(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	$0, 120(%rcx)
	setg	%al
	xorl	%r15d, %r15d
LBB0_3:
	movl	8(%rdx), %ecx
	decl	%ecx
	movl	$1, %esi
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.4:
	cmpq	$0, 32(%rdx)
	je	LBB0_8
## %bb.5:
	cmpq	$0, 24(%rdx)
	je	LBB0_6
## %bb.7:
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	movl	$24, %esi
	subl	%eax, %esi
	jmp	LBB0_9
LBB0_8:
	movl	$2, %esi
	subl	%eax, %esi
	jmp	LBB0_9
LBB0_6:
	movl	$6, %esi
LBB0_9:
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_h265_levels@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_31
## %bb.10:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	imull	%r13d, %r12d
	imull	%r13d, %r13d
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	imull	%r14d, %r14d
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$24, %r13
	cmpq	%rax, %r14
	jge	LBB0_31
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%rdi,%r13)
	je	LBB0_30
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%rdi,%r13), %eax
	cmpl	%eax, %r12d
	jg	LBB0_30
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	(,%rax,8), %ecx
	cmpl	%ecx, -80(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%ecx, -76(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 8(%rdi,%r13)
	jl	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 12(%rdi,%r13)
	jl	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%rbp), %ecx
	cmpl	%ecx, 16(%rdi,%r13)
	jl	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rdi,%r13), %rsi
	testl	%r15d, %r15d
	leaq	20(%rdi,%r13), %rcx
	cmovneq	%rsi, %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	imull	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	imull	16(%rdx), %ecx
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	jl	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%ecx, %r12d
	jle	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %r12d
	jle	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	(%rax,%rax,2), %ecx
	sarl	$2, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	cmpl	%ecx, %r12d
	jg	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	shll	$2, %eax
	cltq
	imulq	$1431655766, %rax, %rdi         ## imm = 0x55555556
	movq	%rdi, %rax
	shrq	$63, %rax
	shrq	$32, %rdi
	addl	%eax, %edi
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	shll	$2, %edi
	jmp	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	addl	%edi, %edi
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$16, %esi
	callq	_FFMIN
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	24(%rbp), %eax
	jge	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rdi
	jmp	LBB0_30
LBB0_31:
	xorl	%esi, %esi
LBB0_32:
	movq	%rsi, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h265_profiles,8,3              ## @h265_profiles
	.comm	_h265_levels,8,3                ## @h265_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h265_guess_level            ; -- Begin function ff_h265_guess_level
	.p2align	2
_ff_h265_guess_level:                   ; @ff_h265_guess_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x7
	stp	w6, w5, [sp, #24]               ; 8-byte Folded Spill
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	cbz	x0, LBB0_2
; %bb.1:
	mov	x26, x0
	bl	_ff_h265_get_profile
Lloh0:
	adrp	x8, _h265_profiles@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h265_profiles@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, #120
	cmp	x0, #0
	csel	x27, x8, x0, eq
	ldp	w28, w8, [x26]
	b	LBB0_3
LBB0_2:
	mov	w28, #0
Lloh3:
	adrp	x8, _h265_profiles@GOTPAGE
Lloh4:
	ldr	x8, [x8, _h265_profiles@GOTPAGEOFF]
Lloh5:
	ldr	x27, [x8]
	ldr	x8, [x27, #120]!
	cmp	x8, #0
	cset	w8, gt
LBB0_3:
	ldr	w9, [x27, #8]
	sub	w9, w9, #1
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.4:
	mov	w23, #1
	b	LBB0_8
LBB0_5:
	ldr	x9, [x27, #32]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x9, [x27, #24]
	mov	w10, #6
	mov	w11, #-12
	orr	w12, wzr, #0x18
	madd	w8, w8, w11, w12
	cmp	x9, #0
	csel	w23, w10, w8, eq
	b	LBB0_8
LBB0_7:
	mov	w9, #2
	sub	w23, w9, w8
LBB0_8:
Lloh6:
	adrp	x19, _h265_levels@GOTPAGE
Lloh7:
	ldr	x19, [x19, _h265_levels@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_28
; %bb.9:
	stp	w23, w21, [sp, #16]             ; 8-byte Folded Spill
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x23, #0
	mov	x26, #0
	mul	w20, w24, w25
	mul	w25, w25, w25
	mul	w21, w24, w24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #1
	mov	x0, x24
	bl	_FF_ARRAY_ELEMS
	add	x23, x23, #24
	cmp	x26, w0, sxtw
	b.ge	LBB0_28
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	cbz	w28, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x24, x23]
	cbz	w8, LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x24, x23
	ldr	w8, [x9, #4]
	cmp	w20, w8
	lsl	w10, w8, #3
	ccmp	w25, w10, #0, le
	ccmp	w21, w10, #0, le
	b.gt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x9, #8]
	cmp	w9, w22
	b.lt	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x24, x23
	ldr	w10, [x9, #12]
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w10, w11
	b.lt	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x9, #16]
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.lt	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x24, x23
	add	x10, x9, #20
	cmp	w28, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	cbz	w9, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x27, #16]
	ldr	w11, [sp, #16]                  ; 4-byte Folded Reload
	mul	w9, w9, w11
	mul	w9, w9, w10
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w9, w10
	b.lt	LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w20, w8, asr #2
	b.le	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w20, w8, asr #1
	b.le	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w8, w8, lsl #1
	ldr	w0, [x27, #12]
	cmp	w20, w8, asr #2
	b.gt	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	w8, w0, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x27, #12]
	lsl	w0, w8, #2
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x27, #12]
	lsl	w0, w8, #1
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #16
	bl	_FFMIN
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.ge	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x24, [x19]
	b	LBB0_10
LBB0_28:
	mov	x0, #0
LBB0_29:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_30:
	add	x0, x24, x23
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_h265_profiles,8,3              ; @h265_profiles
	.comm	_h265_levels,8,3                ; @h265_levels
.subsections_via_symbols
