	.file	"extr_da9150-fg.c_da9150_fg_write_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	da9150_fg_write_attr, @function
da9150_fg_write_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8d, ecx
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	sub	rsp, 16
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR DA9150_QIF_LONG_SIZE[rip]
	mov	r9, rsp
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	r9, rax
	and	rcx, -16
	mov	rax, r9
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L15
.L4:
	and	esi, DWORD PTR DA9150_QIF_CODE_MASK[rip]
	or	esi, DWORD PTR DA9150_QIF_WRITE[rip]
	mov	r13, rsp
	mov	r12d, esi
	test	edx, edx
	jle	.L5
	lea	ecx, -1[rdx]
	mov	r11d, DWORD PTR DA9150_QIF_BYTE_MASK[rip]
	mov	r10d, DWORD PTR DA9150_QIF_BYTE_SIZE[rip]
	mov	rax, r13
	lea	r9, 4[r13+rcx*4]
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, r8d
	add	rax, 4
	sar	esi, cl
	add	ecx, r10d
	and	esi, r11d
	mov	DWORD PTR -4[rax], esi
	cmp	rax, r9
	jne	.L6
.L5:
	mov	edi, DWORD PTR [rdi]
	mov	rcx, r13
	mov	esi, r12d
	call	da9150_write_qif@PLT
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	da9150_fg_write_attr, .-da9150_fg_write_attr
	.comm	DA9150_QIF_WRITE,4,4
	.comm	DA9150_QIF_LONG_SIZE,4,4
	.comm	DA9150_QIF_CODE_MASK,4,4
	.comm	DA9150_QIF_BYTE_SIZE,4,4
	.comm	DA9150_QIF_BYTE_MASK,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_da9150-fg.c_da9150_fg_write_attr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	da9150_fg_write_attr, %function
da9150_fg_write_attr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	ip, .L9
	ldr	r4, .L9+4
	ldr	ip, [ip]
	ldr	lr, .L9+8
	lsl	ip, ip, #2
	ldr	r4, [r4]
	add	ip, ip, #7
	mov	r6, r3
	ldr	lr, [lr]
	ldr	r3, .L9+12
	bic	ip, ip, #7
	and	r1, r1, r4
	sub	sp, sp, ip
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	orr	r1, r1, lr
	mov	r3, sp
	ble	.L2
	mov	ip, #0
	mov	lr, ip
	ldr	r5, .L9+16
	ldr	r4, .L9+20
	ldr	r8, [r5]
	ldr	r7, [r4]
	sub	r4, r3, #4
.L3:
	add	lr, lr, #1
	and	r5, r8, r6, asr ip
	cmp	r2, lr
	str	r5, [r4, #4]!
	add	ip, ip, r7
	bne	.L3
.L2:
	ldr	r0, [r0]
	bl	da9150_write_qif
	ldr	r3, .L9+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	DA9150_QIF_LONG_SIZE
	.word	DA9150_QIF_CODE_MASK
	.word	DA9150_QIF_WRITE
	.word	.LC0
	.word	DA9150_QIF_BYTE_MASK
	.word	DA9150_QIF_BYTE_SIZE
	.size	da9150_fg_write_attr, .-da9150_fg_write_attr
	.comm	DA9150_QIF_WRITE,4,4
	.comm	DA9150_QIF_LONG_SIZE,4,4
	.comm	DA9150_QIF_CODE_MASK,4,4
	.comm	DA9150_QIF_BYTE_SIZE,4,4
	.comm	DA9150_QIF_BYTE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
