	.file	"extr_b44.c___b44_cam_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__b44_cam_write, @function
__b44_cam_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	mov	edx, DWORD PTR 2[rsi]
	mov	esi, DWORD PTR B44_CAM_DATA_LO[rip]
	bswap	edx
	call	bw32@PLT
	movzx	eax, BYTE PTR [r12]
	movzx	edx, BYTE PTR 1[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR B44_CAM_DATA_HI[rip]
	or	edx, DWORD PTR CAM_DATA_HI_VALID[rip]
	sal	eax, 8
	or	edx, eax
	call	bw32@PLT
	mov	ecx, DWORD PTR CAM_CTRL_INDEX_SHIFT[rip]
	mov	edx, DWORD PTR CAM_CTRL_WRITE[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR B44_CAM_CTRL[rip]
	sal	ebx, cl
	or	edx, ebx
	call	bw32@PLT
	mov	edx, DWORD PTR CAM_CTRL_BUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, DWORD PTR B44_CAM_CTRL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	r8d, 1
	mov	ecx, 100
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	b44_wait_bit@PLT
	.cfi_endproc
.LFE0:
	.size	__b44_cam_write, .-__b44_cam_write
	.comm	CAM_DATA_HI_VALID,4,4
	.comm	CAM_CTRL_WRITE,4,4
	.comm	CAM_CTRL_INDEX_SHIFT,4,4
	.comm	CAM_CTRL_BUSY,4,4
	.comm	B44_CAM_DATA_LO,4,4
	.comm	B44_CAM_DATA_HI,4,4
	.comm	B44_CAM_CTRL,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_b44.c___b44_cam_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__b44_cam_write, %function
__b44_cam_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r6, r2
	ldrb	r3, [r1, #2]	@ zero_extendqisi2
	ldrb	r2, [r1, #3]	@ zero_extendqisi2
	ldrb	r1, [r1, #4]	@ zero_extendqisi2
	orr	r3, r3, r2, lsl #8
	ldrb	r2, [r4, #5]	@ zero_extendqisi2
	orr	r3, r3, r1, lsl #16
	orr	r3, r3, r2, lsl #24
	eor	r2, r3, r3, ror #16
	ldr	ip, .L4
	lsr	r2, r2, #8
	bic	r2, r2, #65280
	sub	sp, sp, #8
	ldr	r1, [ip]
	eor	r2, r2, r3, ror #8
	bl	bw32
	ldr	r2, .L4+4
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	ldr	r0, [r2]
	ldr	r1, .L4+8
	ldrb	r2, [r4]	@ zero_extendqisi2
	orr	r3, r3, r0
	orr	r2, r3, r2, lsl #8
	mov	r0, r5
	ldr	r1, [r1]
	bl	bw32
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r4, .L4+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r4]
	orr	r2, r3, r6, lsl r2
	mov	r0, r5
	bl	bw32
	mov	r2, #1
	ldr	r3, .L4+24
	ldr	r1, [r4]
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r0, r5
	mov	r3, #100
	bl	b44_wait_bit
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	B44_CAM_DATA_LO
	.word	CAM_DATA_HI_VALID
	.word	B44_CAM_DATA_HI
	.word	CAM_CTRL_INDEX_SHIFT
	.word	CAM_CTRL_WRITE
	.word	B44_CAM_CTRL
	.word	CAM_CTRL_BUSY
	.size	__b44_cam_write, .-__b44_cam_write
	.comm	CAM_DATA_HI_VALID,4,4
	.comm	CAM_CTRL_WRITE,4,4
	.comm	CAM_CTRL_INDEX_SHIFT,4,4
	.comm	CAM_CTRL_BUSY,4,4
	.comm	B44_CAM_DATA_LO,4,4
	.comm	B44_CAM_DATA_HI,4,4
	.comm	B44_CAM_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
