	.file	"extr_nal-h264.c_nal_h264_write_pps.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nal_h264_write_pps
	.type	nal_h264_write_pps, @function
nal_h264_write_pps:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR PICTURE_PARAMETER_SET[rip]
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR EINVAL[rip]
	neg	rax
	test	rsi, rsi
	je	.L1
	lea	rbp, 16[rsp]
	mov	r12, rcx
	lea	rcx, write[rip]
	mov	rdi, rbp
	call	rbsp_init@PLT
	mov	rdi, rbp
	call	nal_h264_write_start_code_prefix@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	rbsp_bit@PLT
	lea	rdx, 8[rsp]
	mov	esi, 2
	mov	rdi, rbp
	call	rbsp_bits@PLT
	lea	rdx, 12[rsp]
	mov	esi, 5
	mov	rdi, rbp
	call	rbsp_bits@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	nal_h264_rbsp_pps@PLT
	mov	rdi, rbp
	call	nal_h264_rbsp_trailing_bits@PLT
	mov	rax, QWORD PTR 24[rsp]
	test	rax, rax
	je	.L7
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rsp]
	mov	esi, 8
	call	DIV_ROUND_UP@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nal_h264_write_pps, .-nal_h264_write_pps
	.comm	write,4,4
	.comm	PICTURE_PARAMETER_SET,4,4
	.comm	EINVAL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nal-h264.c_nal_h264_write_pps.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nal_h264_write_pps
	.syntax unified
	.arm
	.fpu softvfp
	.type	nal_h264_write_pps, %function
nal_h264_write_pps:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r0, #0
	push	{r4, lr}
	ldr	ip, .L10
	mov	r4, r3
	ldr	ip, [ip]
	ldr	r3, .L10+4
	sub	sp, sp, #24
	cmp	r1, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	ip, [sp, #8]
	str	r0, [sp]
	str	r0, [sp, #4]
	beq	.L7
	ldr	r3, .L10+8
	add	r0, sp, #12
	bl	rbsp_init
	add	r0, sp, #12
	bl	nal_h264_write_start_code_prefix
	mov	r1, sp
	add	r0, sp, #12
	bl	rbsp_bit
	mov	r1, #2
	add	r2, sp, #4
	add	r0, sp, #12
	bl	rbsp_bits
	add	r2, sp, #8
	mov	r1, #5
	add	r0, sp, #12
	bl	rbsp_bits
	mov	r1, r4
	add	r0, sp, #12
	bl	nal_h264_rbsp_pps
	add	r0, sp, #12
	bl	nal_h264_rbsp_trailing_bits
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L8:
	mov	r1, #8
	ldr	r0, [sp, #12]
	bl	DIV_ROUND_UP
	b	.L1
.L7:
	ldr	r3, .L10+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	PICTURE_PARAMETER_SET
	.word	.LC0
	.word	write
	.word	EINVAL
	.size	nal_h264_write_pps, .-nal_h264_write_pps
	.comm	write,4,4
	.comm	PICTURE_PARAMETER_SET,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
