	.file	"extr_controls.c_ctrl_set_flip.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ctrl_set_flip, @function
ctrl_set_flip:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR V4L2_CID_HFLIP[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR [rsi], rcx
	je	.L12
	mov	QWORD PTR 8[rdi], rax
	mov	rdx, QWORD PTR 16[rdi]
.L3:
	mov	rcx, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR COMP_CAMERA[rip]
	mov	r13, QWORD PTR [rcx+rsi*8]
	test	rdx, rdx
	jne	.L13
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR MMAL_PARAM_MIRROR_VERTICAL[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR MMAL_PARAM_MIRROR_HORIZONTAL[rip]
	mov	DWORD PTR 4[rsp], eax
.L6:
	lea	r12, 4[rsp]
	mov	edx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	r8d, 4
	mov	rsi, QWORD PTR 0[r13]
	mov	rcx, r12
	call	vchiq_mmal_port_parameter_set@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 0[rbp]
	mov	r8d, 4
	mov	rcx, r12
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 4[rax]
	call	vchiq_mmal_port_parameter_set@PLT
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 0[rbp]
	mov	r8d, 4
	mov	rcx, r12
	mov	edi, DWORD PTR [rbx]
	add	rsi, 8
	call	vchiq_mmal_port_parameter_set@PLT
.L1:
	mov	rdi, QWORD PTR 8[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR MMAL_PARAM_MIRROR_BOTH[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 16[rdi], rax
	mov	rdx, rax
	mov	rax, QWORD PTR 8[rdi]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR MMAL_PARAM_MIRROR_NONE[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctrl_set_flip, .-ctrl_set_flip
	.comm	V4L2_CID_HFLIP,8,8
	.comm	MMAL_PARAM_MIRROR_VERTICAL,4,4
	.comm	MMAL_PARAM_MIRROR_NONE,4,4
	.comm	MMAL_PARAM_MIRROR_HORIZONTAL,4,4
	.comm	MMAL_PARAM_MIRROR_BOTH,4,4
	.comm	COMP_CAMERA,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_flip.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_flip, %function
ctrl_set_flip:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L14
	ldr	ip, [r1]
	ldr	r3, [r3]
	sub	sp, sp, #20
	cmp	ip, r3
	ldr	r3, .L14+4
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r3, [r1, #4]
	ldr	r1, .L14+8
	streq	r3, [r0, #8]
	moveq	r0, r3
	ldrne	r0, [r4, #8]
	mov	r5, r2
	ldr	r1, [r1]
	ldr	r2, [r4, #12]
	ldreq	r3, [r4, #4]
	strne	r3, [r4, #4]
	cmp	r0, #0
	ldr	r7, [r2, r1, lsl #2]
	bne	.L12
	cmp	r3, #0
	ldrne	r3, .L14+12
	ldreq	r3, .L14+16
	ldr	r3, [r3]
	str	r3, [sp, #8]
.L6:
	mov	r6, #4
	ldr	r1, [r7]
	str	r6, [sp]
	ldr	r2, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	bl	vchiq_mmal_port_parameter_set
	cmp	r0, #0
	blt	.L1
	ldr	r1, [r7]
	str	r6, [sp]
	ldr	r2, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	add	r1, r1, r6
	bl	vchiq_mmal_port_parameter_set
	cmp	r0, #0
	blt	.L1
	ldr	r1, [r7]
	str	r6, [sp]
	ldr	r2, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	add	r1, r1, #8
	bl	vchiq_mmal_port_parameter_set
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	cmp	r3, #0
	ldrne	r3, .L14+20
	ldreq	r3, .L14+24
	ldr	r3, [r3]
	str	r3, [sp, #8]
	b	.L6
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	V4L2_CID_HFLIP
	.word	.LC0
	.word	COMP_CAMERA
	.word	MMAL_PARAM_MIRROR_VERTICAL
	.word	MMAL_PARAM_MIRROR_NONE
	.word	MMAL_PARAM_MIRROR_BOTH
	.word	MMAL_PARAM_MIRROR_HORIZONTAL
	.size	ctrl_set_flip, .-ctrl_set_flip
	.comm	V4L2_CID_HFLIP,4,4
	.comm	MMAL_PARAM_MIRROR_VERTICAL,4,4
	.comm	MMAL_PARAM_MIRROR_NONE,4,4
	.comm	MMAL_PARAM_MIRROR_HORIZONTAL,4,4
	.comm	MMAL_PARAM_MIRROR_BOTH,4,4
	.comm	COMP_CAMERA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
