	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_frame
_get_frame:                             ## @get_frame
	.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
	movq	8(%rdi), %r13
	movl	(%r13), %eax
	leal	2(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	leal	-2(%rax), %edx
	cmpl	$2, %eax
	cmovgel	%edx, %ecx
	movq	(%rdi), %rdx
	movq	(%rdx), %rdi
	movq	144(%r13), %rdx
	testl	%eax, %eax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	js	LBB0_1
LBB0_4:
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	sete	%r15b
LBB0_6:
	cmpl	$2, %eax
	setge	%r12b
	cmpl	$-2, %eax
	sete	%r14b
	testl	%esi, %esi
	setne	%bl
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_ff_get_video_buffer
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	orb	%r14b, %r12b
	andb	%r12b, %bl
	movzbl	%bl, %ecx
	xorl	%ecx, %r15d
	movq	%rax, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movq	56(%r13), %rax
	movq	$0, 16(%rax)
	cmpl	$0, 4(%r13)
	jle	LBB0_19
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	56(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	(%rax,%rbx,4), %ecx
	movl	%r12d, %r9d
	callq	_av_image_copy_plane
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rax,%rbx,4), %r12d
	movl	(%rcx,%rbx,4), %r8d
	movl	24(%r13), %eax
	btl	%ebx, %eax
	jae	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$64, %r8d
	movq	64(%r13), %rax
	movl	%r8d, (%rax,%rbx,4)
	leal	12(%r12), %ecx
	movq	72(%r13), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	movl	(%rax,%rbx,4), %edi
	addl	$10, %edi
	movl	$16, %esi
	callq	_modnpf
	movq	136(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	128(%r13), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	72(%r13), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_av_malloc_array
	movq	128(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	56(%r13), %rax
	movq	120(%r13), %rcx
	movq	8(%rax), %rdx
	movl	(%rdx,%rbx,4), %edx
	movl	%edx, (%rcx,%rbx,4)
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movq	112(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	104(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	shll	$6, %r12d
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %edi
	movl	$64, %esi
	callq	_av_calloc
	movq	104(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	80(%r13), %rax
	movl	%r15d, (%rax,%rbx,4)
	jmp	LBB0_18
LBB0_19:
	cmpq	$0, 96(%r13)
	jne	LBB0_21
## %bb.20:
	movl	$2048, %edi                     ## imm = 0x800
	callq	_av_malloc
	movq	%rax, 96(%r13)
	testq	%rax, %rax
	je	LBB0_15
LBB0_21:
	cmpq	$0, 88(%r13)
	jne	LBB0_23
## %bb.22:
	movq	64(%r13), %rax
	movl	(%rax), %edi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_FFMAX
	movq	%rax, %rdi
	callq	_av_malloc
	movq	%rax, 88(%r13)
	testq	%rax, %rax
	je	LBB0_15
LBB0_23:
	leaq	64(%r13), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	*48(%r13)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*40(%r13)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	*32(%r13)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	cmpq	$0, 24(%rdx)
	je	LBB0_4
## %bb.2:
	movl	(%rdx), %r15d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_4
## %bb.5:
	movl	$1, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_frame
_get_frame:                             ; @get_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x8, x19, [x0]
	ldr	x0, [x8]
	ldr	x20, [x19, #144]
	ldr	w8, [x19]
	sub	w9, w8, #2
	add	w10, w8, #2
	cmp	w8, #0
	csel	w10, w10, w8, lt
	cmp	w8, #1
	csel	w9, w9, w10, gt
	tbnz	w8, #31, LBB0_20
LBB0_1:
	cmp	w9, #0
	cset	w21, eq
LBB0_2:
	cmp	w8, #1
	mov	w9, #-2
	ccmp	w8, w9, #4, le
	ccmp	w1, #0, #4, eq
	cset	w22, ne
	ldp	w2, w1, [x0]
	bl	_ff_get_video_buffer
	str	x0, [x19, #56]
	cbz	x0, LBB0_19
; %bb.3:
	eor	w21, w21, w22
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x8, [x19, #56]
	str	xzr, [x8, #16]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x23, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #56]
	ldp	x8, x9, [x8]
	ldr	w0, [x9, x24]
	ldr	w1, [x8, x24]
	ldp	x9, x8, [x20, #8]
	ldr	w2, [x8, x24]
	ldr	w3, [x9, x24]
	mov	x5, x22
	bl	_av_image_copy_plane
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x23, #2
	ldp	x8, x9, [x19, #8]
	ldr	w22, [x8, x24]
	ldr	w4, [x9, x24]
	ldr	w8, [x19, #24]
	lsr	w8, w8, w23
	tbz	w8, #0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w4, #64
	ldp	x9, x10, [x19, #64]
	str	w8, [x9, x24]
	add	w8, w22, #12
	str	w8, [x10, x24]
	ldr	w8, [x9, x24]
	add	w0, w8, #10
	mov	w1, #16
	bl	_modnpf
	ldp	x9, x8, [x19, #128]
	str	w0, [x8, x24]
	ldr	x8, [x9, x23, lsl #3]
	cbnz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #72]
	ldr	w1, [x8, x23, lsl #2]
	bl	_av_malloc_array
	ldr	x8, [x19, #128]
	str	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #56]
	ldp	x8, x9, [x8]
	ldr	w9, [x9, x24]
	ldr	x10, [x19, #120]
	str	w9, [x10, x24]
	ldr	w8, [x8, x24]
	ldp	x10, x9, [x19, #104]
	str	w8, [x9, x24]
	ldr	w0, [x10, x24]
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	lsl	w2, w22, #6
	mov	w1, #0
	bl	_memset
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #64
	bl	_av_calloc
	ldr	x8, [x19, #104]
	str	w0, [x8, x23, lsl #2]
	cbz	w0, LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #80]
	str	w21, [x8, x23, lsl #2]
	b	LBB0_6
LBB0_14:
	ldr	x8, [x19, #96]
	cbnz	x8, LBB0_16
; %bb.15:
	mov	w0, #2048
	bl	_av_malloc
	str	x0, [x19, #96]
	cbz	x0, LBB0_19
LBB0_16:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x19, #64]
	ldr	w0, [x8]
	mov	w1, #2048
	bl	_FFMAX
	bl	_av_malloc
	str	x0, [x19, #88]
	cbz	x0, LBB0_19
LBB0_18:
	add	x22, x19, #64
	ldr	x8, [x19, #48]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_20:
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_1
; %bb.21:
	ldr	w21, [x20]
	cbz	w21, LBB0_2
; %bb.22:
	cmp	w21, #1
	b.eq	LBB0_2
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_frame
.subsections_via_symbols
