	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RenderSSAFrame
_RenderSSAFrame:                        ## @RenderSSAFrame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %edi
	shrl	$8, %edi
	callq	_hb_rgb2yuv
	movl	%eax, %ebx
	movq	_AV_PIX_FMT_YUVA420P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	movl	8(%r12), %edx
	callq	_hb_frame_buffer_init
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movzbl	%bh, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movzbl	%bl, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	24(%rdi), %rcx
	movq	48(%rcx), %r15
	movq	32(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r14
	movq	16(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	xorl	%r13d, %r13d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%rdx,4), %r14
	movslq	56(%rcx), %rdx
	leaq	(%r15,%rdx,4), %r15
	incl	%r13d
	movl	8(%r12), %edx
	cmpl	%edx, %r13d
	jge	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_ssaAlpha
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14,%rbx,4)
	testb	$1, %r13b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %eax
	andl	$-2, %eax
	addq	%rax, %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax)
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	8(%rcx), %rdx
	testb	$1, %r13b
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	24(%rcx), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rsi,4), %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	40(%rcx), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rsi,4), %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_2:
	movl	4(%r12), %eax
LBB0_13:
	movl	%eax, (%rdi)
	movl	%edx, 4(%rdi)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	16(%rax), %rcx
	addq	24(%r12), %rcx
	movq	%rcx, 16(%rdi)
	movq	(%rax), %rax
	addq	16(%r12), %rax
	movq	%rax, 8(%rdi)
LBB0_14:
	movq	%rdi, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUVA420P,4,2        ## @AV_PIX_FMT_YUVA420P
	.no_dead_strip	_RenderSSAFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RenderSSAFrame
_RenderSSAFrame:                        ; @RenderSSAFrame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	lsr	w0, w8, #8
	bl	_hb_rgb2yuv
	mov	x23, x0
Lloh0:
	adrp	x8, _AV_PIX_FMT_YUVA420P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_YUVA420P@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w1, w2, [x19, #4]
	bl	_hb_frame_buffer_init
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w10, [x19, #8]
	cmp	w10, #0
	b.le	LBB0_13
; %bb.2:
	stp	x20, x0, [sp]                   ; 16-byte Folded Spill
	mov	w22, #0
	ubfx	w24, w23, #16, #8
	ubfx	w25, w23, #8, #8
	and	w26, w23, #0xff
	ldr	x9, [x0, #24]
	ldr	x27, [x9, #48]
	ldr	x28, [x9, #32]
	ldr	x20, [x9, #16]
	ldr	x21, [x9]
	ldr	w8, [x19, #4]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, x10, lsl #2
	ldrsw	x10, [x9, #56]
	add	x27, x27, x10, lsl #2
	add	w22, w22, #1
	ldr	w10, [x19, #8]
	cmp	w22, w10
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_ssaAlpha
	str	w0, [x27, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w24, [x21, x23, lsl #2]
	tbnz	w22, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ubfx	x8, x23, #1, #31
	lsl	x8, x8, #2
	str	w26, [x20, x8]
	str	w25, [x28, x8]
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x0, #24]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x10, [x9, #8]
	tbnz	w22, #0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x11, [x9, #24]
	add	x20, x20, x11, lsl #2
	ldrsw	x11, [x9, #40]
	add	x28, x28, x11, lsl #2
	b	LBB0_3
LBB0_12:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	b	LBB0_14
LBB0_13:
	ldr	w8, [x19, #4]
LBB0_14:
	stp	w8, w10, [x0]
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	ldp	x11, x10, [x19, #16]
	add	x9, x9, x10
	str	x9, [x0, #16]
	ldr	x8, [x8]
	add	x8, x8, x11
	str	x8, [x0, #8]
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUVA420P,4,2        ; @AV_PIX_FMT_YUVA420P
	.no_dead_strip	_RenderSSAFrame
.subsections_via_symbols
