	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_encode_filler
_h264_encode_filler:                    ## @h264_encode_filler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_H264_FILLER_MARKER_SIZE@GOTPCREL(%rip), %r12
	cmpl	%edx, (%r12)
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_vcodec_err                 ## TAILCALL
LBB0_2:
	movq	%rsi, %r14
	movq	_h264_filler_marker@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movslq	(%r12), %rax
	subl	%eax, %ebx
	addq	%rax, %r14
	movq	%r14, %rdi
	movl	$255, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H264_FILLER_MARKER_SIZE,4,2    ## @H264_FILLER_MARKER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filler size too small %d"

	.comm	_h264_filler_marker,4,2         ## @h264_filler_marker
	.no_dead_strip	_h264_encode_filler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_encode_filler
_h264_encode_filler:                    ; @h264_encode_filler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
Lloh0:
	adrp	x22, _H264_FILLER_MARKER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H264_FILLER_MARKER_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mtk_vcodec_err
LBB0_2:
	mov	x20, x1
Lloh4:
	adrp	x8, _h264_filler_marker@GOTPAGE
Lloh5:
	ldr	x8, [x8, _h264_filler_marker@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	ldrsw	x8, [x22]
	sub	w2, w19, w8
	add	x0, x20, x8
	mov	w1, #255
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_H264_FILLER_MARKER_SIZE,4,2    ; @H264_FILLER_MARKER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filler size too small %d"

	.comm	_h264_filler_marker,4,2         ; @h264_filler_marker
	.no_dead_strip	_h264_encode_filler
.subsections_via_symbols
