	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_frame
_draw_frame:                            ## @draw_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	%rdx, %rbx
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.1:
	movl	(%rsi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.2:
	movq	8(%rbx), %r8
	movq	24(%rbx), %rcx
	movq	(%rcx), %r9
	movq	24(%rsi), %rcx
	movq	(%rcx), %r10
	movq	8(%rsi), %r11
	movq	(%rax), %r14
	movq	_A@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	16(%rsi), %ebx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	cmpl	%r12d, %edi
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r11), %rax
	movslq	%edi, %rdx
	imulq	%rdx, %rax
	leaq	(%r10,%rax,4), %rax
	movslq	(%r14,%r15,4), %rcx
	imull	(%r8), %edx
	leaq	(%rax,%rcx,4), %rcx
	movslq	%edx, %rax
	leaq	(%r9,%rax,4), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rax,4), %ebx
	movl	%ebx, (%rcx)
	addq	$16, %rcx
	movl	16(%rsi), %ebx
	incq	%rax
	cmpl	%ebx, %eax
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rsi), %rcx
	movq	24(%rsi), %rdx
	movl	(%rcx,%rax,4), %r14d
	movq	_Y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rdi
	movl	(%rsi,%rcx,4), %r15d
	movq	(%rdx,%rax,8), %r12
	movq	(%rdi,%rcx,8), %r13
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_FFMIN
	movl	(%rbx), %r9d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_image_copy_plane            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_A,8,3                          ## @A
	.comm	_Y,8,3                          ## @Y
	.no_dead_strip	_draw_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_frame
_draw_frame:                            ; @draw_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
	mov	x19, x2
	ldr	x14, [x0]
	ldr	x8, [x14, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w9, #0
	ldr	x10, [x19, #24]
	ldr	x10, [x10]
	ldr	x11, [x19, #8]
	ldr	x12, [x1, #24]
	ldr	x12, [x12]
	ldr	x13, [x1, #8]
	ldr	x14, [x14]
Lloh0:
	adrp	x15, _A@GOTPAGE
Lloh1:
	ldr	x15, [x15, _A@GOTPAGEOFF]
Lloh2:
	ldr	x15, [x15]
	ldr	w16, [x1, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	cmp	w9, w8
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w16, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x17, #0
	ldr	w16, [x13]
	mul	w16, w16, w9
	add	x16, x12, w16, sxtw #2
	ldrsw	x0, [x14, x15, lsl #2]
	add	x0, x16, x0, lsl #2
	ldr	w16, [x11]
	mul	w16, w16, w9
	add	x2, x10, w16, sxtw #2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x2, x17, lsl #2]
	str	w16, [x0], #16
	ldr	w16, [x1, #16]
	add	x17, x17, #1
	cmp	w17, w16
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	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_8:
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _A@GOTPAGE
Lloh4:
	ldr	x9, [x9, _A@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x10, _Y@GOTPAGE
Lloh7:
	ldr	x10, [x10, _Y@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	w21, [x8, x10, lsl #2]
	ldr	x8, [x1, #24]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x8, [x19, #24]
	ldr	x23, [x8, x10, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_FFMIN
	mov	x4, x0
	ldr	w5, [x19]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	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	_av_image_copy_plane
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_A,8,3                          ; @A
	.comm	_Y,8,3                          ; @Y
	.no_dead_strip	_draw_frame
.subsections_via_symbols
