	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_codec
_probe_codec:                           ## @probe_codec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rsi)
	jle	LBB0_16
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	movq	8(%rbx), %r8
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	decq	8(%rbx)
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movl	(%r15), %esi
	addl	32(%rbx), %esi
	movq	40(%rbx), %rdi
	movq	_AVPROBE_PADDING_SIZE@GOTPCREL(%rip), %r12
	addl	(%r12), %esi
	callq	_av_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 40(%rbx)
	movslq	32(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_memcpy
	movslq	(%r15), %rax
	movslq	32(%rbx), %rdi
	addq	%rax, %rdi
	movl	%edi, 32(%rbx)
	shlq	$2, %rdi
	addq	40(%rbx), %rdi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_7
LBB0_4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movq	$0, 8(%rbx)
	cmpl	$0, 32(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	leaq	32(%rbx), %r12
	movq	(%r14), %rax
	movb	$1, %r13b
	cmpq	$0, (%rax)
	jle	LBB0_11
## %bb.8:
	cmpq	$0, 8(%rbx)
	jle	LBB0_11
## %bb.9:
	movl	(%r12), %edi
	callq	_av_log2
	movq	%rax, %r13
	movl	(%r12), %edi
	subl	(%r15), %edi
	callq	_av_log2
	cmpq	%rax, %r13
	je	LBB0_16
## %bb.10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_set_codec_from_probe_data
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_12
## %bb.13:
	testb	%r13b, %r13b
	jne	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movq	_AVPROBE_SCORE_STREAM_RETRY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setg	%al
	orb	%al, %r13b
	je	LBB0_15
LBB0_14:
	movl	$0, 32(%rbx)
	leaq	40(%rbx), %rdi
	callq	_av_freep
	movl	$-1, (%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	cmoveq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	cmoveq	%rax, %rdx
	movl	(%rcx), %esi
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_force_codec_ids
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probing stream %d pp:%d\n"

	.comm	_AVPROBE_PADDING_SIZE,4,2       ## @AVPROBE_PADDING_SIZE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Failed to reallocate probe buffer for stream %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"nothing to probe for stream %d\n"

	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.comm	_AVPROBE_SCORE_STREAM_RETRY,4,2 ## @AVPROBE_SCORE_STREAM_RETRY
L_.str.3:                               ## @.str.3
	.asciz	"probed stream %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"probed stream %d failed\n"

	.no_dead_strip	_probe_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_codec
_probe_codec:                           ; @probe_codec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w3, [x19, #16]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x0, [x19, #40]
	ldr	w8, [x19, #32]
	ldr	w9, [x21]
Lloh4:
	adrp	x22, _AVPROBE_PADDING_SIZE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _AVPROBE_PADDING_SIZE@GOTPAGEOFF]
	ldr	w10, [x22]
	add	w8, w9, w8
	add	w1, w8, w10
	bl	_av_realloc
	cbz	x0, LBB0_4
; %bb.3:
	str	x0, [x19, #40]
	ldrsw	x8, [x19, #32]
	add	x0, x0, x8, lsl #2
	ldp	w2, w1, [x21]
	bl	_memcpy
	ldr	w8, [x21]
	ldr	w9, [x19, #32]
	add	w8, w9, w8
	str	w8, [x19, #32]
	ldr	x9, [x19, #40]
	add	x0, x9, w8, sxtw #2
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_5:
	str	xzr, [x19, #8]
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_7:
	add	x22, x19, #32
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	w0, [x22]
	bl	_av_log2
	mov	x23, x0
	ldr	w8, [x22]
	ldr	w9, [x21]
	sub	w0, w8, w9
	bl	_av_log2
	cmp	x23, x0
	b.eq	LBB0_17
; %bb.10:
	mov	w21, #0
	b	LBB0_12
LBB0_11:
	mov	w21, #1
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_set_codec_from_probe_data
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh16:
	adrp	x22, _AV_CODEC_ID_NONE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _AV_CODEC_ID_NONE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	cbnz	w21, LBB0_15
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x8, _AVPROBE_SCORE_STREAM_RETRY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVPROBE_SCORE_STREAM_RETRY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w8, gt
	orr	w8, w21, w8
	tbz	w8, #0, LBB0_16
LBB0_15:
	str	wzr, [x19, #32]
	add	x0, x19, #40
	bl	_av_freep
	mov	w8, #-1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh21:
	adrp	x10, l_.str.3@PAGE
Lloh22:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh23:
	adrp	x11, l_.str.4@PAGE
Lloh24:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
Lloh25:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
	csel	x8, x8, x24, eq
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
	mov	x0, x20
	bl	_av_log
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_force_codec_ids
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probing stream %d pp:%d\n"

	.comm	_AVPROBE_PADDING_SIZE,4,2       ; @AVPROBE_PADDING_SIZE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Failed to reallocate probe buffer for stream %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"nothing to probe for stream %d\n"

	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.comm	_AVPROBE_SCORE_STREAM_RETRY,4,2 ; @AVPROBE_SCORE_STREAM_RETRY
l_.str.3:                               ; @.str.3
	.asciz	"probed stream %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"probed stream %d failed\n"

	.no_dead_strip	_probe_codec
.subsections_via_symbols
