	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_frame
_encode_frame:                          ## @encode_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
	movl	%r9d, %r13d
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %rax
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rdx
	movq	24(%rdi), %rcx
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movq	%rdi, 24(%rdx)
	movl	%r9d, (%rdx)
	movq	%rcx, 16(%rdx)
	movl	(%rax), %edi
	movl	%edi, 8(%rdx)
	movl	(%rsi), %edi
	movl	%edi, 4(%rdx)
	movq	%rbx, 56(%rdx)
	movl	%r9d, 32(%rdx)
	leaq	4(%rcx), %rdi
	movq	%rdi, 48(%rdx)
	movl	4(%rax), %edi
	movl	%edi, 40(%rdx)
	movl	4(%rsi), %edi
	movl	%edi, 36(%rdx)
	movq	%rbx, 88(%rdx)
	movl	%r9d, 64(%rdx)
	addq	$8, %rcx
	movq	%rcx, 80(%rdx)
	movl	8(%rax), %eax
	movl	%eax, 72(%rdx)
	movl	8(%rsi), %eax
	movl	%eax, 68(%rdx)
	movq	8(%rbx), %rdi
	movq	_dwt_plane@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	movl	$3, %r8d
	movl	$4, %r9d
	callq	*(%rdi)
	movq	%rbx, %rdi
	callq	_calc_slice_sizes
	cmpl	$1, %r13d
	jg	LBB0_4
## %bb.1:
	addl	%r12d, %eax
	movq	8(%rbx), %rdi
	movb	(%rbx), %cl
	shll	%cl, %eax
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%eax, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_7
LBB0_3:
	leaq	4(%rbx), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_init_put_bits
LBB0_4:
	movq	_DIRAC_PCODE_SEQ_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_encode_parse_info
	movq	%rbx, %rdi
	callq	_encode_seq_header
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	_DIRAC_PCODE_AUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_encode_parse_info
	leaq	4(%rbx), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_avpriv_put_string
LBB0_6:
	movq	_DIRAC_PCODE_PICTURE_HQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_encode_parse_info
	movq	%rbx, %rdi
	callq	_encode_picture_start
	movq	%rbx, %rdi
	callq	_encode_slices
	movq	_DIRAC_PCODE_END_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_encode_parse_info
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dwt_plane,4,2                  ## @dwt_plane
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error getting output packet.\n"

	.comm	_DIRAC_PCODE_SEQ_HEADER,4,2     ## @DIRAC_PCODE_SEQ_HEADER
	.comm	_DIRAC_PCODE_AUX,4,2            ## @DIRAC_PCODE_AUX
	.comm	_DIRAC_PCODE_PICTURE_HQ,4,2     ## @DIRAC_PCODE_PICTURE_HQ
	.comm	_DIRAC_PCODE_END_SEQ,4,2        ## @DIRAC_PCODE_END_SEQ
	.no_dead_strip	_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_frame
_encode_frame:                          ; @encode_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	x23, x5
	mov	x22, x4
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	ldp	x10, x9, [x2]
	ldp	x2, x8, [x0, #16]
	ldr	x0, [x0, #8]
	str	w5, [x2]
	ldr	w11, [x9]
	str	w11, [x2, #8]
	ldr	w11, [x10]
	str	w11, [x2, #4]
	str	w5, [x2, #32]
	add	x11, x8, #4
	stp	x11, x19, [x2, #48]
	ldr	w11, [x9, #4]
	str	w11, [x2, #40]
	ldr	w11, [x10, #4]
	str	w11, [x2, #36]
	stp	x8, x19, [x2, #16]
	str	w5, [x2, #64]
	add	x8, x8, #8
	stp	x8, x19, [x2, #80]
	ldr	w8, [x9, #8]
	str	w8, [x2, #72]
	ldr	w8, [x10, #8]
	str	w8, [x2, #68]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _dwt_plane@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dwt_plane@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x3, #0
	mov	w4, #3
	mov	w5, #4
	blr	x8
	mov	x0, x19
	bl	_calc_slice_sizes
	cmp	w23, #1
	b.gt	LBB0_4
; %bb.1:
	add	w8, w0, w22
	ldr	x0, [x19, #8]
	ldr	w9, [x19]
	lsl	w2, w8, w9
	mov	x1, x21
	mov	x3, x2
	bl	_ff_alloc_packet2
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_7
LBB0_3:
	add	x0, x19, #4
	ldp	w2, w1, [x21]
	bl	_init_put_bits
LBB0_4:
Lloh8:
	adrp	x8, _DIRAC_PCODE_SEQ_HEADER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIRAC_PCODE_SEQ_HEADER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encode_parse_info
	mov	x0, x19
	bl	_encode_seq_header
	cbz	x20, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _DIRAC_PCODE_AUX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIRAC_PCODE_AUX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encode_parse_info
	add	x0, x19, #4
	mov	x1, x20
	mov	w2, #1
	bl	_avpriv_put_string
LBB0_6:
Lloh14:
	adrp	x8, _DIRAC_PCODE_PICTURE_HQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DIRAC_PCODE_PICTURE_HQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encode_parse_info
	mov	x0, x19
	bl	_encode_picture_start
	mov	x0, x19
	bl	_encode_slices
Lloh17:
	adrp	x8, _DIRAC_PCODE_END_SEQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DIRAC_PCODE_END_SEQ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encode_parse_info
	mov	w22, #0
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dwt_plane,4,2                  ; @dwt_plane
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error getting output packet.\n"

	.comm	_DIRAC_PCODE_SEQ_HEADER,4,2     ; @DIRAC_PCODE_SEQ_HEADER
	.comm	_DIRAC_PCODE_AUX,4,2            ; @DIRAC_PCODE_AUX
	.comm	_DIRAC_PCODE_PICTURE_HQ,4,2     ; @DIRAC_PCODE_PICTURE_HQ
	.comm	_DIRAC_PCODE_END_SEQ,4,2        ; @DIRAC_PCODE_END_SEQ
	.no_dead_strip	_encode_frame
.subsections_via_symbols
