	.file	"extr_mvsw61xx.c_r16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r16, @function
r16:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	esi, esi
	jne	.L2
	mov	rax, QWORD PTR [rdi]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	edx, r8d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	esi, ecx
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r14d, edx
	mov	ecx, DWORD PTR MV_INDIRECT_INPROGRESS[rip]
	mov	edx, DWORD PTR MV_INDIRECT_REG_CMD[rip]
	xor	r8d, r8d
	mov	esi, r14d
	call	mvsw61xx_wait_mask_raw@PLT
	mov	ecx, DWORD PTR MV_INDIRECT_ADDR_S[rip]
	mov	esi, r14d
	mov	rdi, rbp
	mov	r8d, DWORD PTR MV_INDIRECT_READ[rip]
	mov	edx, DWORD PTR MV_INDIRECT_REG_CMD[rip]
	sal	r12d, cl
	or	r8d, r13d
	mov	ecx, r12d
	or	ecx, r8d
	call	[QWORD PTR 8[rbp]]
	mov	edx, DWORD PTR MV_INDIRECT_REG_CMD[rip]
	mov	esi, r14d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MV_INDIRECT_INPROGRESS[rip]
	xor	r8d, r8d
	call	mvsw61xx_wait_mask_raw@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, r14d
	mov	rdi, rbp
	mov	edx, DWORD PTR MV_INDIRECT_REG_DATA[rip]
	add	rsp, 8
	.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
	jmp	rax
	.cfi_endproc
.LFE0:
	.size	r16, .-r16
	.comm	MV_INDIRECT_REG_DATA,4,4
	.comm	MV_INDIRECT_REG_CMD,4,4
	.comm	MV_INDIRECT_READ,4,4
	.comm	MV_INDIRECT_INPROGRESS,4,4
	.comm	MV_INDIRECT_ADDR_S,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_mvsw61xx.c_r16.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r16, %function
r16:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r1, #0
	sub	sp, sp, #8
	mov	r7, r3
	mov	r4, r0
	ldr	r5, [sp, #40]
	bne	.L2
	mov	r2, r5
	mov	r1, r7
	ldr	r3, [r0]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	bx	r3
.L2:
	mov	r6, r2
	mov	r10, #0
	ldr	r8, .L6
	ldr	r9, .L6+4
	mov	r1, r6
	ldr	r3, [r9]
	ldr	r2, [r8]
	str	r10, [sp]
	bl	mvsw61xx_wait_mask_raw
	ldr	r2, .L6+8
	ldr	r3, .L6+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r5, r5, r2
	orr	r3, r5, r7, lsl r3
	mov	r1, r6
	ldr	r2, [r8]
	mov	r0, r4
	ldr	r5, [r4, #4]
	blx	r5
	mov	r1, r6
	ldr	r3, [r9]
	ldr	r2, [r8]
	mov	r0, r4
	str	r10, [sp]
	bl	mvsw61xx_wait_mask_raw
	mov	r1, r6
	mov	r0, r4
	ldr	r3, .L6+16
	ldr	r2, [r3]
	ldr	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	bx	r3
.L7:
	.align	2
.L6:
	.word	MV_INDIRECT_REG_CMD
	.word	MV_INDIRECT_INPROGRESS
	.word	MV_INDIRECT_READ
	.word	MV_INDIRECT_ADDR_S
	.word	MV_INDIRECT_REG_DATA
	.size	r16, .-r16
	.comm	MV_INDIRECT_REG_DATA,4,4
	.comm	MV_INDIRECT_REG_CMD,4,4
	.comm	MV_INDIRECT_READ,4,4
	.comm	MV_INDIRECT_INPROGRESS,4,4
	.comm	MV_INDIRECT_ADDR_S,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
