	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp8_enc_compose_one_frame
_vp8_enc_compose_one_frame:             ## @vp8_enc_compose_one_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_AC_TAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_VENC_BITSTREAM_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vp8_enc_read_reg
	movl	%eax, %r14d
	movq	_VENC_BITSTREAM_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vp8_enc_read_reg
	movl	%eax, %r13d
	shll	$5, %eax
	movl	%r13d, %ecx
	shrl	$3, %ecx
	movl	%r13d, %edx
	shrl	$11, %edx
	xorl	%esi, %esi
	cmpl	$0, 16(%r12)
	sete	%sil
	movzbl	%al, %eax
	leal	16(%rax,%rsi), %eax
	movl	%eax, (%rbx)
	movzbl	%cl, %eax
	movl	%eax, 4(%rbx)
	movzbl	%dl, %eax
	movl	%eax, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_MAX_AC_TAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movabsq	$4294967453, %rax               ## imm = 0x10000009D
	movq	%rax, 12(%rbx)
	movl	$42, 20(%rbx)
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movl	(%rax), %ecx
	sarl	$8, %ecx
	movl	%ecx, 28(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movl	4(%rax), %eax
	sarl	$8, %eax
	movl	%eax, 36(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	$3, %esi
LBB0_3:
	movl	(%r15), %edx
	leal	(%rsi,%r13), %edi
	movq	%r14, %rax
	addl	%edi, %r14d
	cmpl	%r14d, %edx
	jae	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %esi
	addl	%esi, %edi
	movl	%eax, %edx
	callq	_memmove
	movl	4(%r15), %edi
	addl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	movq	(%r12), %rax
	movq	_VENC_VP8_VPU_WORK_BUF_BS_HEADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AC_TAG_SIZE,4,2            ## @MAX_AC_TAG_SIZE
	.comm	_VENC_BITSTREAM_FRAME_SIZE,4,2  ## @VENC_BITSTREAM_FRAME_SIZE
	.comm	_VENC_BITSTREAM_HEADER_LEN,4,2  ## @VENC_BITSTREAM_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitstream buf size is too small(%zu)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VENC_VP8_VPU_WORK_BUF_BS_HEADER,8,3 ## @VENC_VP8_VPU_WORK_BUF_BS_HEADER
	.no_dead_strip	_vp8_enc_compose_one_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vp8_enc_compose_one_frame
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
lCPI0_1:
	.long	157                             ; 0x9d
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vp8_enc_compose_one_frame:             ; @vp8_enc_compose_one_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _MAX_AC_TAG_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_AC_TAG_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x8, _VENC_BITSTREAM_FRAME_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VENC_BITSTREAM_FRAME_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_vp8_enc_read_reg
	mov	x24, x0
Lloh10:
	adrp	x8, _VENC_BITSTREAM_HEADER_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VENC_BITSTREAM_HEADER_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vp8_enc_read_reg
	mov	x23, x0
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w9, eq
	lsl	w10, w0, #5
	bfi	w9, w0, #5, #3
	orr	w9, w9, #0x10
	str	w9, [x22]
	dup.2s	v0, w10
Lloh13:
	adrp	x9, lCPI0_0@PAGE
Lloh14:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x22, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w25, [x25]
Lloh15:
	adrp	x8, lCPI0_1@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x22, #12]
	mov	w8, #42
	str	w8, [x22, #20]
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	str	w9, [x22, #24]
	ldr	w9, [x8]
	asr	w9, w9, #8
	str	w9, [x22, #28]
	ldr	w9, [x8, #4]
	str	w9, [x22, #32]
	ldr	w8, [x8, #4]
	asr	w8, w8, #8
	str	w8, [x22, #36]
	b	LBB0_3
LBB0_2:
	mov	w25, #3
LBB0_3:
	ldr	w2, [x20]
	add	w8, w25, w23
	add	w26, w8, w24
	cmp	w2, w26
	b.hs	LBB0_5
; %bb.4:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mtk_vcodec_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w1, [x20, #4]
	add	w0, w8, w1
	mov	x2, x24
	bl	_memmove
	ldr	w8, [x20, #4]
	add	w0, w8, w25
	ldr	x8, [x21]
Lloh22:
	adrp	x9, _VENC_VP8_VPU_WORK_BUF_BS_HEADER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VENC_VP8_VPU_WORK_BUF_BS_HEADER@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x20, #4]
	mov	x1, x22
	mov	x2, x25
	bl	_memcpy
	mov	w0, #0
	str	w26, [x19]
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AC_TAG_SIZE,4,2            ; @MAX_AC_TAG_SIZE
	.comm	_VENC_BITSTREAM_FRAME_SIZE,4,2  ; @VENC_BITSTREAM_FRAME_SIZE
	.comm	_VENC_BITSTREAM_HEADER_LEN,4,2  ; @VENC_BITSTREAM_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bitstream buf size is too small(%zu)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VENC_VP8_VPU_WORK_BUF_BS_HEADER,8,3 ; @VENC_VP8_VPU_WORK_BUF_BS_HEADER
	.no_dead_strip	_vp8_enc_compose_one_frame
.subsections_via_symbols
