	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_encode
_raw_encode:                            ## @raw_encode
	.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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdx), %rdi
	movl	8(%rdx), %esi
	movl	12(%rdx), %edx
	movl	$1, %ecx
	callq	_av_image_get_buffer_size
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	movl	12(%r15), %esi
	movq	24(%r13), %rdx
	movl	16(%r13), %ecx
	movq	(%r13), %r8
	movl	8(%r13), %r9d
	movl	12(%r13), %eax
	pushq	$1
	pushq	%rax
	callq	_av_image_copy_to_buffer
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r14
	leaq	L_.str(%rip), %rdi
	callq	_AV_RL32
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.6:
	movq	(%r13), %rax
	movq	_AV_PIX_FMT_YUYV422@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movl	12(%r13), %eax
	imull	8(%r13), %eax
	addl	%eax, %eax
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.8:
	movq	(%r15), %rax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorb	$-128, (%rax,%rcx,4)
	movl	12(%r13), %edx
	imull	8(%r13), %edx
	addq	$2, %rcx
	addl	%edx, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_9
	jmp	LBB0_16
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	(%r12), %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_AV_RL32
	cmpq	%rax, %r14
	jne	LBB0_16
## %bb.11:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.12:
	movq	(%r13), %rax
	movq	_AV_PIX_FMT_RGBA64BE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	movl	8(%r13), %eax
	imull	12(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_AV_RB64
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_AV_WB64
	incq	%r12
	movslq	12(%r13), %rax
	movslq	8(%r13), %rcx
	imulq	%rax, %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_15
LBB0_16:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"yuv2"

	.comm	_AV_PIX_FMT_YUYV422,8,3         ## @AV_PIX_FMT_YUYV422
L_.str.1:                               ## @.str.1
	.asciz	"b64a"

	.comm	_AV_PIX_FMT_RGBA64BE,8,3        ## @AV_PIX_FMT_RGBA64BE
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_raw_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_encode
_raw_encode:                            ; @raw_encode
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x0, [x2]
	ldp	w1, w2, [x2, #8]
	mov	w3, #1
	bl	_av_image_get_buffer_size
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	x3, x23
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x20]
	ldr	w1, [x20, #12]
	ldr	x2, [x21, #24]
	ldp	w6, w3, [x21, #12]
	ldr	x4, [x21]
	ldr	w5, [x21, #8]
	mov	w7, #1
	bl	_av_image_copy_to_buffer
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.3:
	ldr	x24, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AV_RL32
	cmp	x24, x0
	b.ne	LBB0_10
; %bb.4:
	cbz	w23, LBB0_10
; %bb.5:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _AV_PIX_FMT_YUYV422@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_PIX_FMT_YUYV422@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldp	w9, w8, [x21, #8]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.7:
	ldr	x8, [x20]
	mov	w9, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #2
	ldr	w11, [x8, x10]
	eor	w11, w11, #0x80
	str	w11, [x8, x10]
	add	x9, x9, #2
	ldp	w11, w10, [x21, #8]
	mul	w10, w10, w11
	lsl	w10, w10, #1
	cmp	x9, w10, sxtw
	b.lt	LBB0_8
	b	LBB0_16
LBB0_9:
	mov	x23, x0
	b	LBB0_17
LBB0_10:
	ldr	x22, [x22]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AV_RL32
	cmp	x22, x0
	b.ne	LBB0_16
; %bb.11:
	cbz	w23, LBB0_16
; %bb.12:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _AV_PIX_FMT_RGBA64BE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_PIX_FMT_RGBA64BE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	ldp	w9, w8, [x21, #8]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x22, #0
	mov	x23, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_AV_RB64
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_AV_WB64
	add	x23, x23, #1
	ldpsw	x9, x8, [x21, #8]
	mul	x8, x9, x8
	add	x22, x22, #32
	cmp	x23, x8
	b.lt	LBB0_15
LBB0_16:
	mov	w23, #0
Lloh10:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_17:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"yuv2"

	.comm	_AV_PIX_FMT_YUYV422,8,3         ; @AV_PIX_FMT_YUYV422
l_.str.1:                               ; @.str.1
	.asciz	"b64a"

	.comm	_AV_PIX_FMT_RGBA64BE,8,3        ; @AV_PIX_FMT_RGBA64BE
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_raw_encode
.subsections_via_symbols
