	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_video
_decode_video:                          ## @decode_video
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %rcx
	movl	$0, -44(%rbp)
	movq	_vctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	callq	_avcodec_decode_video2
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.1:
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_media@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r13d
	movq	%rbx, %rdi
	callq	_av_frame_get_colorspace
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_av_frame_get_color_range
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_set_colorspace
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movq	_media@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	8(%r15), %r9
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_sws_scale
	movl	$1, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vctx,4,2                       ## @vctx
	.comm	_media,8,2                      ## @media
	.no_dead_strip	_decode_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_video
_decode_video:                          ; @decode_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x3, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _vctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vctx@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #12
	bl	_avcodec_decode_video2
	mov	x8, x0
	mov	w0, #0
	tbnz	w8, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x25, _media@GOTPAGE
Lloh4:
	ldr	x25, [x25, _media@GOTPAGEOFF]
	ldp	w23, w22, [x25]
	mov	x0, x21
	bl	_av_frame_get_colorspace
	mov	x24, x0
	mov	x0, x21
	bl	_av_frame_get_color_range
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_set_colorspace
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	ldr	w4, [x25]
	ldr	x5, [x20, #8]
	ldr	w6, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_sws_scale
	mov	w0, #1
LBB0_3:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_vctx,4,2                       ; @vctx
	.comm	_media,8,2                      ; @media
	.no_dead_strip	_decode_video
.subsections_via_symbols
