	.file	"extr_controls.c_ctrl_set_video_encode_profile_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ctrl_set_video_encode_profile_level, @function
ctrl_set_video_encode_profile_level:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR V4L2_CID_MPEG_VIDEO_H264_PROFILE[rip]
	je	.L33
	cmp	rax, QWORD PTR V4L2_CID_MPEG_VIDEO_H264_LEVEL[rip]
	je	.L7
.L5:
	mov	esi, DWORD PTR 16[rdi]
	mov	eax, DWORD PTR 12[rdi]
	lea	ecx, -132[rsi]
.L4:
	cmp	eax, 130
	je	.L8
.L36:
	jg	.L9
	cmp	eax, 128
	je	.L10
	cmp	eax, 129
	jne	.L12
	mov	eax, DWORD PTR MMAL_VIDEO_PROFILE_H264_HIGH[rip]
	mov	DWORD PTR 4[rsp], eax
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	ecx, 11
	ja	.L13
	lea	rsi, .L15[rip]
	movsx	rax, DWORD PTR [rsi+rcx*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L26-.L15
	.long	.L25-.L15
	.long	.L24-.L15
	.long	.L23-.L15
	.long	.L22-.L15
	.long	.L21-.L15
	.long	.L20-.L15
	.long	.L19-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L14-.L15
	.text
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	eax, 131
	jne	.L12
	mov	eax, DWORD PTR MMAL_VIDEO_PROFILE_H264_BASELINE[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_1[rip]
	mov	DWORD PTR [rsp], eax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rdx]
	mov	rcx, rsp
	mov	r8d, 8
	mov	rsi, QWORD PTR COMP_VIDEO_ENCODE[rip]
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax+rsi*8]
	mov	rsi, QWORD PTR [rax]
	call	vchiq_mmal_port_parameter_set@PLT
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L34
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rsi]
	lea	ecx, -132[rsi]
	cmp	ecx, 11
	jbe	.L35
.L3:
	mov	ecx, DWORD PTR EINVAL[rip]
	mov	eax, ecx
	neg	eax
	test	ecx, ecx
	je	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	eax, DWORD PTR 8[rsi]
	lea	ecx, -128[rax]
	cmp	ecx, 3
	ja	.L3
	mov	esi, DWORD PTR 16[rdi]
	mov	DWORD PTR 12[rdi], eax
	lea	ecx, -132[rsi]
	cmp	eax, 130
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	mov	DWORD PTR 16[rdi], esi
	mov	eax, DWORD PTR 12[rdi]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_13[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_12[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_11[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_1b[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_4[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_32[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_31[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_3[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_22[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_21[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR MMAL_VIDEO_LEVEL_H264_2[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR MMAL_VIDEO_PROFILE_H264_MAIN[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L12
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctrl_set_video_encode_profile_level, .-ctrl_set_video_encode_profile_level
	.comm	V4L2_CID_MPEG_VIDEO_H264_PROFILE,8,8
	.comm	V4L2_CID_MPEG_VIDEO_H264_LEVEL,8,8
	.comm	MMAL_VIDEO_PROFILE_H264_MAIN,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_HIGH,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_BASELINE,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_4,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_32,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_31,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_3,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_22,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_21,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_2,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_1b,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_13,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_12,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_11,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_1,4,4
	.comm	EINVAL,4,4
	.comm	COMP_VIDEO_ENCODE,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_controls.c_ctrl_set_video_encode_profile_level.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctrl_set_video_encode_profile_level, %function
ctrl_set_video_encode_profile_level:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L37
	ldr	ip, [r1]
	ldr	lr, [r3]
	mov	r3, r0
	ldr	r0, .L37+4
	sub	sp, sp, #28
	cmp	ip, lr
	ldr	r0, [r0]
	str	r0, [sp, #20]
	mov	r0,#0
	beq	.L34
	ldr	r0, .L37+8
	ldr	r0, [r0]
	cmp	ip, r0
	beq	.L7
.L5:
	ldr	ip, [r3, #8]
	ldr	lr, [r3, #12]
	sub	r1, ip, #128
	sub	r0, lr, #132
.L4:
	cmp	r1, #3
	ldrls	pc, [pc, r1, asl #2]
	b	.L8
.L10:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L9
.L9:
	ldr	r1, .L37+12
	ldr	r1, [r1]
	str	r1, [sp, #16]
.L8:
	cmp	r0, #11
	ldrls	pc, [pc, r0, asl #2]
	b	.L14
.L16:
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L15
.L17:
	ldr	r1, .L37+16
	ldr	r1, [r1]
	str	r1, [sp, #12]
.L14:
	mov	ip, #8
	ldr	r0, .L37+20
	ldr	r1, [r3]
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1, r0, lsl #2]
	ldr	r0, [r3, #4]
	ldr	r1, [r1]
	add	r3, sp, #12
	str	ip, [sp]
	bl	vchiq_mmal_port_parameter_set
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #28
	@ sp needed
	ldr	pc, [sp], #4
.L7:
	ldr	lr, [r1, #4]
	sub	r0, lr, #132
	cmp	r0, #11
	bls	.L36
.L3:
	ldr	r1, .L37+24
	ldr	r0, [r1]
	cmp	r0, #0
	rsb	r0, r0, #0
	beq	.L5
	b	.L1
.L34:
	ldr	ip, [r1, #4]
	sub	r1, ip, #128
	cmp	r1, #3
	bhi	.L3
	ldr	lr, [r3, #12]
	str	ip, [r3, #8]
	sub	r0, lr, #132
	b	.L4
.L11:
	ldr	r1, .L37+28
	ldr	r1, [r1]
	str	r1, [sp, #16]
	b	.L8
.L13:
	ldr	r1, .L37+32
	ldr	r1, [r1]
	str	r1, [sp, #16]
	b	.L8
.L12:
	ldr	r1, .L37+36
	ldr	r1, [r1]
	str	r1, [sp, #16]
	b	.L8
.L36:
	ldr	ip, [r3, #8]
	str	lr, [r3, #12]
	sub	r1, ip, #128
	b	.L4
.L15:
	ldr	r1, .L37+40
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L27:
	ldr	r1, .L37+44
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L26:
	ldr	r1, .L37+48
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L25:
	ldr	r1, .L37+52
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L24:
	ldr	r1, .L37+56
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L23:
	ldr	r1, .L37+60
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L22:
	ldr	r1, .L37+64
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L21:
	ldr	r1, .L37+68
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L20:
	ldr	r1, .L37+72
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L19:
	ldr	r1, .L37+76
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L18:
	ldr	r1, .L37+80
	ldr	r1, [r1]
	str	r1, [sp, #12]
	b	.L14
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	V4L2_CID_MPEG_VIDEO_H264_PROFILE
	.word	.LC0
	.word	V4L2_CID_MPEG_VIDEO_H264_LEVEL
	.word	MMAL_VIDEO_PROFILE_H264_BASELINE
	.word	MMAL_VIDEO_LEVEL_H264_1
	.word	COMP_VIDEO_ENCODE
	.word	EINVAL
	.word	MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE
	.word	MMAL_VIDEO_PROFILE_H264_MAIN
	.word	MMAL_VIDEO_PROFILE_H264_HIGH
	.word	MMAL_VIDEO_LEVEL_H264_1b
	.word	MMAL_VIDEO_LEVEL_H264_4
	.word	MMAL_VIDEO_LEVEL_H264_32
	.word	MMAL_VIDEO_LEVEL_H264_31
	.word	MMAL_VIDEO_LEVEL_H264_3
	.word	MMAL_VIDEO_LEVEL_H264_22
	.word	MMAL_VIDEO_LEVEL_H264_21
	.word	MMAL_VIDEO_LEVEL_H264_2
	.word	MMAL_VIDEO_LEVEL_H264_13
	.word	MMAL_VIDEO_LEVEL_H264_12
	.word	MMAL_VIDEO_LEVEL_H264_11
	.size	ctrl_set_video_encode_profile_level, .-ctrl_set_video_encode_profile_level
	.comm	V4L2_CID_MPEG_VIDEO_H264_PROFILE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_H264_LEVEL,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_MAIN,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_HIGH,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE,4,4
	.comm	MMAL_VIDEO_PROFILE_H264_BASELINE,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_4,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_32,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_31,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_3,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_22,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_21,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_2,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_1b,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_13,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_12,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_11,4,4
	.comm	MMAL_VIDEO_LEVEL_H264_1,4,4
	.comm	EINVAL,4,4
	.comm	COMP_VIDEO_ENCODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
