	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h261_probe
_h261_probe:                            ## @h261_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%rbx, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r14), %rax
	movq	%r13, %rbx
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rdi
	addq	8(%r14), %rdi
	callq	_AV_RB16
	decl	%eax
	cmpl	$255, %eax
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	leaq	1(%rbx), %r13
	movl	4(%rax,%rbx,4), %edi
	callq	_av_log2_16bit
	movl	%eax, %r15d
	movq	8(%r14), %r12
	decl	%ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	leaq	(%r12,%rax,4), %rdi
	callq	_AV_RB64
	addb	$24, %r15b
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movl	%eax, %ecx
	andl	$-65536, %ecx                   ## imm = 0xFFFF0000
	cmpl	$65536, %ecx                    ## imm = 0x10000
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	shrl	$12, %ecx
	andl	$15, %ecx
	andl	$8, %eax
	testl	%ecx, %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	cmovel	%eax, %edi
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	sete	%al
	setne	%dl
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	%edx, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	testl	%edi, %edi
	leaq	_h261_probe.lut(%rip), %rax
	leaq	_h261_probe.lut.1(%rip), %rdx
	cmoveq	%rdx, %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rdx), %eax
	addl	$6, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	jle	LBB0_10
## %bb.9:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_10:
	addl	%edx, %edx
	addl	$2, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jle	LBB0_12
## %bb.11:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @h261_probe.lut
_h261_probe.lut:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	8                               ## 0x8
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10

	.p2align	4                               ## @h261_probe.lut.1
_h261_probe.lut.1:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	16                              ## 0x10
	.long	5                               ## 0x5
	.long	16                              ## 0x10
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10

	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_h261_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h261_probe
_h261_probe:                            ; @h261_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x28, #0
	mov	w21, #0
	mov	w23, #0
	mov	w27, #0
	mov	w22, #0
Lloh0:
	adrp	x26, _h261_probe.lut.1@PAGE
Lloh1:
	add	x26, x26, _h261_probe.lut.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x28, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	mov	x28, x24
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x28, lsl #2
	bl	_AV_RB16
	sub	w8, w0, #1
	cmp	w8, #255
	b.hs	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x24, x28, #1
	ldr	w0, [x8, x24, lsl #2]
	bl	_av_log2_16bit
	mov	x20, x0
	ldr	x25, [x19, #8]
	sub	w0, w28, #1
	mov	w1, #0
	bl	_FFMAX
	add	x0, x25, x0, lsl #2
	bl	_AV_RB64
	add	w8, w20, #24
	asr	w8, w0, w8
	and	w9, w8, #0xffff0000
	cmp	w9, #16, lsl #12                ; =65536
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w9, w8, #0x8
	mov	w10, #15
	ands	w8, w10, w8, lsr #12
	csel	w23, w9, w23, eq
	cmp	w8, w27
	cinc	w22, w22, ne
	cinc	w21, w21, eq
	cmp	w23, #0
Lloh2:
	adrp	x9, _h261_probe.lut@PAGE
Lloh3:
	add	x9, x9, _h261_probe.lut@PAGEOFF
	csel	x9, x26, x9, eq
	ldr	w27, [x9, w8, uxtw #2]
	b	LBB0_3
LBB0_7:
	mov	w22, #0
	mov	w21, #0
LBB0_8:
	lsl	w8, w22, #1
	add	w9, w8, #6
	cmp	w21, w9
	b.le	LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_10:
	add	w8, w8, #2
	cmp	w21, w8
	b.le	LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @h261_probe.lut
_h261_probe.lut:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	8                               ; 0x8
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10

	.p2align	2                               ; @h261_probe.lut.1
_h261_probe.lut.1:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	16                              ; 0x10
	.long	5                               ; 0x5
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10

	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_h261_probe
.subsections_via_symbols
