	.file	"extr_mt9m111.c_mt9m111_set_pixfmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Pixel format not handled: %x\n"
	.text
	.p2align 4
	.type	mt9m111_set_pixfmt, @function
mt9m111_set_pixfmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	add	rdi, 8
	call	v4l2_get_subdevdata@PLT
	mov	r9d, DWORD PTR MT9M111_OUTFMT_PROCESSED_BAYER[rip]
	lea	ecx, -128[r14]
	mov	r8d, DWORD PTR MT9M111_OUTFMT_BYPASS_IFP[rip]
	mov	edx, DWORD PTR MT9M111_OUTFMT_RGB[rip]
	mov	rbp, rax
	mov	eax, DWORD PTR MT9M111_OUTFMT_RGB565[rip]
	mov	r12d, r9d
	mov	edi, DWORD PTR MT9M111_OUTFMT_RGB555[rip]
	mov	r13d, DWORD PTR MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN[rip]
	or	r12d, r8d
	mov	esi, DWORD PTR MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B[rip]
	or	r12d, edx
	or	r12d, eax
	or	r12d, edi
	or	r12d, DWORD PTR MT9M111_OUTFMT_RGB444x[rip]
	or	r12d, DWORD PTR MT9M111_OUTFMT_RGBx444[rip]
	or	r12d, r13d
	or	r12d, esi
	cmp	ecx, 11
	ja	.L2
	lea	r10, .L4[rip]
	movsx	rcx, DWORD PTR [r10+rcx*4]
	add	rcx, r10
	notrack jmp	rcx
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L15-.L4
	.long	.L14-.L4
	.long	.L13-.L4
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13d, esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	QWORD PTR [rbx], 0
	je	.L20
.L17:
	mov	esi, DWORD PTR context_a[rip]
	mov	ecx, r12d
	mov	edx, r13d
	mov	rdi, rbp
	call	mt9m111_reg_mask@PLT
	test	eax, eax
	je	.L21
.L1:
	pop	rbx
	.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
.L20:
	.cfi_restore_state
	or	r12d, DWORD PTR MT9M111_OUTFMT_INV_PIX_CLOCK[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR context_b[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r12d
	mov	edx, r13d
	mov	rdi, rbp
	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
	jmp	mt9m111_reg_mask@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	or	edx, eax
	or	edx, esi
	mov	r13d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	or	r13d, esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	or	r9d, edx
	mov	r13d, r9d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	or	r8d, edx
	mov	r13d, r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r13d, r13d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	or	edx, eax
	or	edx, r13d
	or	edx, esi
	mov	r13d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	or	edx, eax
	or	r13d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	or	edx, eax
	mov	r13d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	or	edx, edi
	or	r13d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L6:
	or	edx, edi
	mov	r13d, edx
	jmp	.L14
.L2:
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mt9m111_set_pixfmt, .-mt9m111_set_pixfmt
	.comm	context_b,4,4
	.comm	context_a,4,4
	.comm	MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B,4,4
	.comm	MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN,4,4
	.comm	MT9M111_OUTFMT_RGBx444,4,4
	.comm	MT9M111_OUTFMT_RGB565,4,4
	.comm	MT9M111_OUTFMT_RGB555,4,4
	.comm	MT9M111_OUTFMT_RGB444x,4,4
	.comm	MT9M111_OUTFMT_RGB,4,4
	.comm	MT9M111_OUTFMT_PROCESSED_BAYER,4,4
	.comm	MT9M111_OUTFMT_INV_PIX_CLOCK,4,4
	.comm	MT9M111_OUTFMT_BYPASS_IFP,4,4
	.comm	EINVAL,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_mt9m111.c_mt9m111_set_pixfmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Pixel format not handled: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt9m111_set_pixfmt, %function
mt9m111_set_pixfmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	mov	r5, r0
	add	r0, r0, #4
	bl	v4l2_get_subdevdata
	ldr	r1, .L20
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	ldr	r9, [r1]
	ldr	lr, [r2]
	ldr	r1, .L20+12
	ldr	r2, [r3]
	ldr	r3, .L20+16
	ldr	r6, .L20+20
	ldr	r1, [r1]
	orr	r4, r9, lr
	ldr	ip, [r3]
	orr	r4, r4, r2
	ldr	r3, .L20+24
	ldr	r10, [r6]
	orr	r4, r4, r1
	ldr	r6, .L20+28
	ldr	r3, [r3]
	ldr	r7, .L20+32
	orr	r4, r4, ip
	orr	r4, r4, r10
	ldr	r6, [r6]
	orr	r4, r4, r3
	ldr	r3, [r7]
	orr	r4, r4, r6
	sub	r10, r8, #128
	mov	r7, r0
	orr	r4, r4, r3
	cmp	r10, #11
	ldrls	pc, [pc, r10, asl #2]
	b	.L2
.L4:
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L13:
	mov	r6, r3
.L14:
	ldr	r3, [r5]
	ldr	r2, .L20+36
	cmp	r3, #0
	ldreq	r3, .L20+40
	ldr	r1, [r2]
	ldreq	r3, [r3]
	mov	r2, r6
	orreq	r4, r4, r3
	mov	r3, r4
	mov	r0, r7
	bl	mt9m111_reg_mask
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r1, .L20+44
	mov	r3, r4
	mov	r2, r6
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r1]
	b	mt9m111_reg_mask
.L11:
	orr	r6, r9, r2
	b	.L14
.L10:
	orr	r6, lr, r2
	b	.L14
.L9:
	orr	r2, r2, r1
	orr	r6, r6, r2
	b	.L14
.L8:
	orr	r6, r2, r1
	b	.L14
.L7:
	orr	r2, r2, ip
	orr	r6, r6, r2
	b	.L14
.L6:
	orr	r6, r2, ip
	b	.L14
.L5:
	orr	r2, r2, r1
	orr	r2, r2, r6
	orr	r6, r2, r3
	b	.L14
.L3:
	orr	r2, r2, r1
	orr	r6, r2, r3
	b	.L14
.L15:
	orr	r6, r6, r3
	b	.L14
.L12:
	mov	r6, #0
	b	.L14
.L2:
	mov	r2, r8
	ldr	r1, .L20+48
	bl	dev_err
	ldr	r3, .L20+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	MT9M111_OUTFMT_PROCESSED_BAYER
	.word	MT9M111_OUTFMT_BYPASS_IFP
	.word	MT9M111_OUTFMT_RGB
	.word	MT9M111_OUTFMT_RGB565
	.word	MT9M111_OUTFMT_RGB555
	.word	MT9M111_OUTFMT_RGB444x
	.word	MT9M111_OUTFMT_RGBx444
	.word	MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN
	.word	MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B
	.word	context_a
	.word	MT9M111_OUTFMT_INV_PIX_CLOCK
	.word	context_b
	.word	.LC0
	.word	EINVAL
	.size	mt9m111_set_pixfmt, .-mt9m111_set_pixfmt
	.comm	context_b,4,4
	.comm	context_a,4,4
	.comm	MT9M111_OUTFMT_SWAP_YCbCr_Cb_Cr_RGB_R_B,4,4
	.comm	MT9M111_OUTFMT_SWAP_YCbCr_C_Y_RGB_EVEN,4,4
	.comm	MT9M111_OUTFMT_RGBx444,4,4
	.comm	MT9M111_OUTFMT_RGB565,4,4
	.comm	MT9M111_OUTFMT_RGB555,4,4
	.comm	MT9M111_OUTFMT_RGB444x,4,4
	.comm	MT9M111_OUTFMT_RGB,4,4
	.comm	MT9M111_OUTFMT_PROCESSED_BAYER,4,4
	.comm	MT9M111_OUTFMT_INV_PIX_CLOCK,4,4
	.comm	MT9M111_OUTFMT_BYPASS_IFP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
