	.file	"extr_coda-bit.c_coda_enc_param_change.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"parameter change: intra Qp %u\n"
	.align 8
.LC1:
	.string	"parameter change: bitrate %u kbit/s\n"
	.align 8
.LC2:
	.string	"parameter change: frame rate %u/%u Hz\n"
	.align 8
.LC3:
	.string	"parameter change: intra refresh MBs %u\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"parameter change failed: %u\n"
	.text
	.p2align 4
	.type	coda_enc_param_change, @function
coda_enc_param_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR [rdi]
	mov	r13, QWORD PTR 56[rdi]
	test	r12d, r12d
	jne	.L21
.L2:
	mov	r8d, DWORD PTR 8[rbp]
	test	r8d, r8d
	jne	.L22
.L3:
	mov	esi, DWORD PTR 20[rbp]
	test	esi, esi
	jne	.L23
.L5:
	mov	ecx, DWORD PTR 24[rbp]
	test	ecx, ecx
	jne	.L24
.L6:
	mov	edx, DWORD PTR 32[rbp]
	test	edx, edx
	jne	.L25
.L7:
	mov	eax, DWORD PTR 40[rbp]
	test	eax, eax
	jne	.L26
.L8:
	test	r12d, r12d
	jne	.L9
.L19:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_CHANGE_ENABLE[rip]
	mov	esi, r12d
	mov	rdi, r13
	call	coda_write@PLT
	mov	esi, DWORD PTR CODA_COMMAND_RC_CHANGE_PARAMETER[rip]
	mov	rdi, rbp
	call	coda_command_sync@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR CODA_RET_ENC_PARAM_CHANGE_SUCCESS[rip]
	mov	rdi, r13
	call	coda_read@PLT
	mov	ecx, eax
	cmp	eax, 1
	je	.L19
	lea	rdx, .LC4[rip]
	mov	rsi, rbp
	mov	edi, 1
	xor	eax, eax
	call	coda_dbg@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r14d, DWORD PTR CODA_CMD_ENC_PARAM_SLICE_MODE[rip]
	mov	rdi, rbp
	or	r12d, DWORD PTR CODA_PARAM_CHANGE_SLICE_MODE[rip]
	call	coda_slice_mode@PLT
	mov	rdi, r13
	mov	esi, eax
	mov	edx, r14d
	call	coda_write@PLT
	mov	DWORD PTR 40[rbp], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	ecx, DWORD PTR 36[rbp]
	lea	rdx, .LC3[rip]
	mov	rsi, rbp
	xor	eax, eax
	mov	edi, 1
	call	coda_dbg@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	rdi, r13
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_INTRA_MB_NUM[rip]
	or	r12d, DWORD PTR CODA_PARAM_CHANGE_INTRA_MB_NUM[rip]
	call	coda_write@PLT
	mov	DWORD PTR 32[rbp], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	ecx, DWORD PTR 28[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rbp
	mov	edi, 1
	mov	eax, ecx
	movzx	ecx, cx
	sar	eax, 16
	lea	r8d, 1[rax]
	xor	eax, eax
	call	coda_dbg@PLT
	mov	esi, DWORD PTR 28[rbp]
	mov	rdi, r13
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_RC_FRAME_RATE[rip]
	or	r12d, DWORD PTR CODA_PARAM_CHANGE_RC_FRAME_RATE[rip]
	call	coda_write@PLT
	mov	DWORD PTR 24[rbp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR 16[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rbp
	xor	eax, eax
	mov	edi, 1
	call	coda_dbg@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, r13
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_RC_BITRATE[rip]
	or	r12d, DWORD PTR CODA_PARAM_CHANGE_RC_BITRATE[rip]
	call	coda_write@PLT
	mov	DWORD PTR 20[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, DWORD PTR 12[rbp]
	mov	edi, 1
	mov	rsi, rbp
	xor	eax, eax
	lea	rdx, .LC0[rip]
	call	coda_dbg@PLT
	mov	edi, DWORD PTR 16[rbp]
	test	edi, edi
	jne	.L27
.L4:
	mov	DWORD PTR 8[rbp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_RC_GOP[rip]
	mov	rdi, r13
	mov	r12d, DWORD PTR CODA_PARAM_CHANGE_RC_GOP[rip]
	call	coda_write@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[rbp], 0
	sub	eax, 1
	cdqe
	mov	QWORD PTR 48[rbp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR CODA_CMD_ENC_PARAM_RC_INTRA_QP[rip]
	mov	rdi, r13
	or	r12d, DWORD PTR CODA_PARAM_CHANGE_RC_INTRA_QP[rip]
	call	coda_write@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	coda_enc_param_change, .-coda_enc_param_change
	.comm	CODA_RET_ENC_PARAM_CHANGE_SUCCESS,4,4
	.comm	CODA_PARAM_CHANGE_SLICE_MODE,4,4
	.comm	CODA_PARAM_CHANGE_RC_INTRA_QP,4,4
	.comm	CODA_PARAM_CHANGE_RC_GOP,4,4
	.comm	CODA_PARAM_CHANGE_RC_FRAME_RATE,4,4
	.comm	CODA_PARAM_CHANGE_RC_BITRATE,4,4
	.comm	CODA_PARAM_CHANGE_INTRA_MB_NUM,4,4
	.comm	CODA_COMMAND_RC_CHANGE_PARAMETER,4,4
	.comm	CODA_CMD_ENC_PARAM_SLICE_MODE,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_INTRA_QP,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_GOP,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_FRAME_RATE,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_BITRATE,4,4
	.comm	CODA_CMD_ENC_PARAM_INTRA_MB_NUM,4,4
	.comm	CODA_CMD_ENC_PARAM_CHANGE_ENABLE,4,4
	.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_coda-bit.c_coda_enc_param_change.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"parameter change: intra Qp %u\012\000"
	.align	2
.LC1:
	.ascii	"parameter change: bitrate %u kbit/s\012\000"
	.align	2
.LC2:
	.ascii	"parameter change: frame rate %u/%u Hz\012\000"
	.align	2
.LC3:
	.ascii	"parameter change: intra refresh MBs %u\012\000"
	.align	2
.LC4:
	.ascii	"parameter change failed: %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	coda_enc_param_change, %function
coda_enc_param_change:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r0
	cmp	r5, #0
	ldr	r6, [r0, #48]
	sub	sp, sp, #8
	bne	.L39
.L2:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L40
.L3:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L41
.L5:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L42
.L6:
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L43
.L7:
	ldr	r3, [r4, #40]
	cmp	r3, #0
	bne	.L44
.L8:
	cmp	r5, #0
	bne	.L9
.L37:
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L46
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r6
	bl	coda_write
	ldr	r3, .L46+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	coda_command_sync
	cmp	r0, #0
	blt	.L1
	ldr	r3, .L46+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	coda_read
	cmp	r0, #1
	beq	.L37
	mov	r3, r0
	mov	r1, r4
	ldr	r2, .L46+12
	mov	r0, #1
	bl	coda_dbg
	b	.L37
.L44:
	ldr	r3, .L46+16
	mov	r0, r4
	ldr	r3, [r3]
	orr	r5, r5, r3
	bl	coda_slice_mode
	ldr	r3, .L46+20
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r6
	bl	coda_write
	mov	r3, #0
	str	r3, [r4, #40]
	b	.L8
.L43:
	mov	r1, r4
	ldr	r3, [r4, #36]
	ldr	r2, .L46+24
	mov	r0, #1
	bl	coda_dbg
	ldr	r3, .L46+28
	ldr	r2, .L46+32
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r4, #36]
	orr	r5, r5, r3
	bl	coda_write
	mov	r3, #0
	str	r3, [r4, #32]
	b	.L7
.L42:
	ldr	r3, [r4, #28]
	ldr	r2, .L46+36
	asr	r1, r3, #16
	add	r1, r1, #1
	lsl	r3, r3, #16
	str	r1, [sp]
	lsr	r3, r3, #16
	mov	r1, r4
	mov	r0, #1
	bl	coda_dbg
	ldr	r3, .L46+40
	ldr	r2, .L46+44
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r4, #28]
	orr	r5, r5, r3
	bl	coda_write
	mov	r3, #0
	str	r3, [r4, #24]
	b	.L6
.L41:
	mov	r1, r4
	ldr	r3, [r4, #16]
	ldr	r2, .L46+48
	mov	r0, #1
	bl	coda_dbg
	ldr	r3, .L46+52
	ldr	r2, .L46+56
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r4, #16]
	orr	r5, r5, r3
	bl	coda_write
	mov	r3, #0
	str	r3, [r4, #20]
	b	.L5
.L40:
	ldr	r3, [r4, #12]
	mov	r1, r4
	mov	r0, #1
	ldr	r2, .L46+60
	bl	coda_dbg
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L45
.L4:
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L3
.L39:
	ldr	r2, .L46+64
	ldr	r3, .L46+68
	ldr	r2, [r2]
	ldr	r1, [r0, #4]
	mov	r0, r6
	ldr	r5, [r3]
	bl	coda_write
	mov	r2, #0
	ldr	r3, [r4, #4]
	str	r2, [r4]
	sub	r3, r3, #1
	str	r3, [r4, #44]
	b	.L2
.L45:
	ldr	r3, .L46+72
	ldr	r2, .L46+76
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r4, #12]
	orr	r5, r5, r3
	bl	coda_write
	b	.L4
.L47:
	.align	2
.L46:
	.word	CODA_CMD_ENC_PARAM_CHANGE_ENABLE
	.word	CODA_COMMAND_RC_CHANGE_PARAMETER
	.word	CODA_RET_ENC_PARAM_CHANGE_SUCCESS
	.word	.LC4
	.word	CODA_PARAM_CHANGE_SLICE_MODE
	.word	CODA_CMD_ENC_PARAM_SLICE_MODE
	.word	.LC3
	.word	CODA_PARAM_CHANGE_INTRA_MB_NUM
	.word	CODA_CMD_ENC_PARAM_INTRA_MB_NUM
	.word	.LC2
	.word	CODA_PARAM_CHANGE_RC_FRAME_RATE
	.word	CODA_CMD_ENC_PARAM_RC_FRAME_RATE
	.word	.LC1
	.word	CODA_PARAM_CHANGE_RC_BITRATE
	.word	CODA_CMD_ENC_PARAM_RC_BITRATE
	.word	.LC0
	.word	CODA_CMD_ENC_PARAM_RC_GOP
	.word	CODA_PARAM_CHANGE_RC_GOP
	.word	CODA_PARAM_CHANGE_RC_INTRA_QP
	.word	CODA_CMD_ENC_PARAM_RC_INTRA_QP
	.size	coda_enc_param_change, .-coda_enc_param_change
	.comm	CODA_RET_ENC_PARAM_CHANGE_SUCCESS,4,4
	.comm	CODA_PARAM_CHANGE_SLICE_MODE,4,4
	.comm	CODA_PARAM_CHANGE_RC_INTRA_QP,4,4
	.comm	CODA_PARAM_CHANGE_RC_GOP,4,4
	.comm	CODA_PARAM_CHANGE_RC_FRAME_RATE,4,4
	.comm	CODA_PARAM_CHANGE_RC_BITRATE,4,4
	.comm	CODA_PARAM_CHANGE_INTRA_MB_NUM,4,4
	.comm	CODA_COMMAND_RC_CHANGE_PARAMETER,4,4
	.comm	CODA_CMD_ENC_PARAM_SLICE_MODE,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_INTRA_QP,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_GOP,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_FRAME_RATE,4,4
	.comm	CODA_CMD_ENC_PARAM_RC_BITRATE,4,4
	.comm	CODA_CMD_ENC_PARAM_INTRA_MB_NUM,4,4
	.comm	CODA_CMD_ENC_PARAM_CHANGE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
