	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_h264_fill_sei_nal
_hva_h264_fill_sei_nal:                 ## @hva_h264_fill_sei_nal
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ctx_to_dev
	movq	%rax, %r13
	movaps	L___const.hva_h264_fill_sei_nal.start(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movslq	(%rbx), %rax
	leaq	(%r14,%rax,4), %rdi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	addl	$16, %eax
	movl	%eax, (%rbx)
	movq	_NALU_TYPE_SEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltq
	movl	%ecx, (%r14,%rax,4)
	movslq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, (%rbx)
	movl	%r15d, 4(%r14,%rax,4)
	incl	(%rbx)
	cmpl	$128, %r15d
	jne	LBB0_2
## %bb.1:
	leaq	-88(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movslq	(%rbx), %rax
	movl	$1, (%r14,%rax,4)
	movslq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, (%rbx)
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %edx
	shll	$5, %ecx
	shll	$4, %edx
	orl	%ecx, %edx
	orl	$192, %edx
	movl	%edx, 4(%r14,%rax,4)
	movslq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, (%rbx)
	movl	$128, 4(%r14,%rax,4)
	incl	(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.hva_h264_fill_sei_nal.start
L___const.hva_h264_fill_sei_nal.start:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.comm	_NALU_TYPE_SEI,4,2              ## @NALU_TYPE_SEI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s   sei nal type not supported %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hva_h264_fill_sei_nal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_h264_fill_sei_nal
_hva_h264_fill_sei_nal:                 ; @hva_h264_fill_sei_nal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_ctx_to_dev
	mov	x23, x0
Lloh3:
	adrp	x8, l___const.hva_h264_fill_sei_nal.start@PAGE
Lloh4:
	add	x8, x8, l___const.hva_h264_fill_sei_nal.start@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldrsw	x8, [x19]
	add	x0, x20, x8, lsl #2
	add	x1, sp, #32
	mov	w2, #16
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, #16
	str	w8, [x19]
Lloh6:
	adrp	x9, _NALU_TYPE_SEI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NALU_TYPE_SEI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x20, w8, sxtw #2]
	ldrsw	x8, [x19]
	add	x8, x8, #1
	str	w8, [x19]
	str	w21, [x20, x8, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	cmp	w21, #128
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w0, #0
	ldrsw	x8, [x19]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldp	w8, w9, [sp, #24]
	lsl	w8, w8, #5
	orr	w8, w8, w9, lsl #4
	ldrsw	x9, [x19]
	add	x9, x9, #1
	str	w9, [x19]
	orr	w8, w8, #0xc0
	str	w8, [x20, x9, lsl #2]
	ldrsw	x8, [x19]
	add	x8, x8, #1
	str	w8, [x19]
	mov	w9, #128
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w2, [x22]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.hva_h264_fill_sei_nal.start
l___const.hva_h264_fill_sei_nal.start:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.comm	_NALU_TYPE_SEI,4,2              ; @NALU_TYPE_SEI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s   sei nal type not supported %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hva_h264_fill_sei_nal
.subsections_via_symbols
