	.file	"extr_st-mipid02.c_mipid02_enum_mbus_code.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mipid02_enum_mbus_code, @function
mipid02_enum_mbus_code:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_mipid02_dev@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L3
	mov	rdi, QWORD PTR mipid02_supported_fmt_codes[rip]
	mov	rbp, QWORD PTR 8[rbx]
	call	ARRAY_SIZE@PLT
	cmp	rbp, rax
	jb	.L4
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	QWORD PTR 8[rbx], 0
	jne	.L1
	mov	edi, DWORD PTR [rdx]
	call	serial_to_parallel_code@PLT
	mov	DWORD PTR 16[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR mipid02_supported_fmt_codes[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 16[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mipid02_enum_mbus_code, .-mipid02_enum_mbus_code
	.comm	mipid02_supported_fmt_codes,8,8
	.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_st-mipid02.c_mipid02_enum_mbus_code.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mipid02_enum_mbus_code, %function
mipid02_enum_mbus_code:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	bl	to_mipid02_dev
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L3
	ldr	r5, .L9
	ldr	r6, [r4, #4]
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	cmp	r6, r0
	bcc	.L4
.L3:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, [r4, #4]
	cmp	r5, #0
	bne	.L3
	ldr	r0, [r0]
	bl	serial_to_parallel_code
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, [r5]
	ldr	r2, [r4, #4]
	mov	r0, #0
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	mipid02_supported_fmt_codes
	.word	EINVAL
	.size	mipid02_enum_mbus_code, .-mipid02_enum_mbus_code
	.comm	mipid02_supported_fmt_codes,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
