	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decodeFrame
_decodeFrame:                           ## @decodeFrame
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_global_verbosity_level@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpl	$1, (%r14)
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_av_log_get_level
	movl	%eax, %ebx
	movq	_AV_LOG_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_log_set_level
LBB0_2:
	leaq	-80(%rbp), %rdi
	callq	_av_init_packet
	testq	%r15, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.3:
	movq	32(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	24(%r15), %rax
	movq	%rax, -72(%rbp)
	movl	24(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	%eax, -56(%rbp)
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movslq	24(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 24(%r12)
	movq	%rcx, 16(%rax)
	movl	16(%r15), %ecx
	movl	%ecx, 8(%rax)
	movl	12(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%r15), %ecx
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_reordered_hash_add
LBB0_5:
	movq	_HB_FRAME_MASK_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	je	LBB0_7
## %bb.6:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	-80(%rbp), %eax
	movq	_AV_PKT_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	4(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, -80(%rbp)
	cmpq	$0, 16(%r12)
	je	LBB0_11
LBB0_10:
	leaq	16(%r12), %rbx
	movq	_AV_PKT_DATA_PALETTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-80(%rbp), %rdi
	callq	_av_packet_new_side_data
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	(%r13), %esi
	callq	_MIN
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_hb_buffer_close
LBB0_11:
	movl	8(%r12), %edi
	leaq	-80(%rbp), %r15
	movq	%r15, %rsi
	callq	_avcodec_send_packet
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r13
	testl	%ebx, %ebx
	jns	LBB0_13
## %bb.12:
	cmpl	(%r13), %ebx
	je	LBB0_13
## %bb.22:
	incl	(%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_13:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	js	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_compute_frame_duration
	movq	%r12, %rdi
	callq	_filter_video
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_avcodec_receive_frame
	testl	%eax, %eax
	jns	LBB0_20
## %bb.21:
	movl	%eax, %ebx
	movl	$1, %r15d
	jmp	LBB0_15
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	cmpq	$0, 16(%r12)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	movl	%eax, %ebx
	xorl	%r15d, %r15d
LBB0_15:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_18
## %bb.16:
	cmpl	(%r13), %ebx
	je	LBB0_18
## %bb.17:
	incl	(%r12)
LBB0_18:
	cmpl	$1, (%r14)
	jg	LBB0_23
## %bb.19:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_log_set_level
LBB0_23:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_global_verbosity_level,4,2     ## @global_verbosity_level
	.comm	_AV_LOG_QUIET,4,2               ## @AV_LOG_QUIET
	.comm	_HB_FRAME_MASK_KEY,4,2          ## @HB_FRAME_MASK_KEY
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_PKT_FLAG_DISCARD,4,2        ## @AV_PKT_FLAG_DISCARD
	.comm	_AV_PKT_DATA_PALETTE,4,2        ## @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_decodeFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decodeFrame
_decodeFrame:                           ; @decodeFrame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _global_verbosity_level@GOTPAGE
Lloh1:
	ldr	x23, [x23, _global_verbosity_level@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_av_log_get_level
	mov	x20, x0
Lloh2:
	adrp	x8, _AV_LOG_QUIET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_QUIET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_av_log_set_level
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, sp
	bl	_av_init_packet
	cbz	x21, LBB0_7
; %bb.4:
	ldp	x9, x8, [x21, #24]
	stp	x9, x8, [sp, #8]
	ldr	w8, [x19, #24]
	stp	w8, w8, [sp, #24]
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	ldrsw	x8, [x19, #24]
	add	w9, w8, #1
	str	w9, [x19, #24]
	str	x8, [x0, #16]
	ldr	w8, [x21, #16]
	str	w8, [x0, #8]
	ldr	d0, [x21, #8]
	str	d0, [x0]
	mov	x0, x19
	bl	_reordered_hash_add
LBB0_6:
Lloh5:
	adrp	x8, _HB_FRAME_MASK_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_FRAME_MASK_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [sp]
Lloh8:
	adrp	x10, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldp	w11, w12, [x21]
	tst	w8, w11
	csel	w8, wzr, w10, eq
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _AV_PKT_FLAG_DISCARD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_PKT_FLAG_DISCARD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w9, w9, w12
	orr	w8, w8, w9
	str	w8, [sp]
	b	LBB0_8
LBB0_7:
	stp	xzr, xzr, [sp, #8]
LBB0_8:
	mov	x21, x19
	ldr	x8, [x21, #16]!
	cbz	x8, LBB0_10
; %bb.9:
Lloh14:
	adrp	x8, _AV_PKT_DATA_PALETTE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_PKT_DATA_PALETTE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x24, _AVPALETTE_SIZE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _AVPALETTE_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, sp
	bl	_av_packet_new_side_data
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_MIN
	mov	x2, x0
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_memcpy
	mov	x0, x21
	bl	_hb_buffer_close
LBB0_10:
	ldr	w0, [x19, #8]
	mov	x1, sp
	bl	_avcodec_send_packet
	mov	x21, x0
	mov	x0, sp
	bl	_av_packet_unref
Lloh19:
	adrp	x24, _AVERROR_EOF@GOTPAGE
Lloh20:
	ldr	x24, [x24, _AVERROR_EOF@GOTPAGEOFF]
	tbz	w21, #31, LBB0_13
; %bb.11:
	ldr	w8, [x24]
	cmp	w21, w8
	b.eq	LBB0_13
; %bb.12:
	mov	w21, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_21
LBB0_13:
	ldp	w1, w0, [x19, #4]
	bl	_avcodec_receive_frame
	tbnz	w0, #31, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_compute_frame_duration
	mov	x0, x19
	bl	_filter_video
	ldp	w1, w0, [x19, #4]
	bl	_avcodec_receive_frame
	tbz	w0, #31, LBB0_14
; %bb.15:
	mov	x22, x0
	mov	w21, #1
	b	LBB0_17
LBB0_16:
	mov	x22, x0
	mov	w21, #0
LBB0_17:
Lloh21:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_AVERROR
	ldr	w8, [x24]
	cmp	w22, w0
	ccmp	w22, w8, #4, ne
	b.eq	LBB0_19
; %bb.18:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_19:
	ldr	w8, [x23]
	cmp	w8, #1
	b.gt	LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_av_log_set_level
LBB0_21:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_global_verbosity_level,4,2     ; @global_verbosity_level
	.comm	_AV_LOG_QUIET,4,2               ; @AV_LOG_QUIET
	.comm	_HB_FRAME_MASK_KEY,4,2          ; @HB_FRAME_MASK_KEY
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_PKT_FLAG_DISCARD,4,2        ; @AV_PKT_FLAG_DISCARD
	.comm	_AV_PKT_DATA_PALETTE,4,2        ; @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_decodeFrame
.subsections_via_symbols
