	.file	"extr_drxk_hard.c_write16_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(0x%08x, 0x%04x, 0x%02x)\n"
	.text
	.p2align 4
	.type	write16_flags, @function
write16_flags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	sar	r14d, 16
	lea	r13d, [rsi+rsi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movzx	r13d, r13b
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r15d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	or	r8b, -64
	mov	edi, esi
	mov	DWORD PTR 8[rsp], r8d
	mov	DWORD PTR 12[rsp], r8d
	call	DRXDAP_FASI_LONG_FORMAT@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L3:
	mov	eax, r12d
	and	r14d, 255
	or	r13d, 1
	mov	edx, 4
	shr	eax, 24
	mov	DWORD PTR 20[rsp], r14d
	or	eax, r8d
	mov	DWORD PTR 16[rsp], r13d
	mov	r13d, 6
	mov	DWORD PTR 24[rsp], eax
	mov	eax, r12d
	sar	eax, 7
	and	eax, 255
	mov	DWORD PTR 28[rsp], eax
	mov	eax, 5
.L5:
	movzx	ecx, bl
	lea	rsi, .LC0[rip]
	mov	edi, 2
	mov	DWORD PTR 16[rsp+rdx*4], ecx
	movzx	edx, bh
	mov	ecx, ebx
	mov	DWORD PTR 16[rsp+rax*4], edx
	mov	edx, r12d
	call	dprintk@PLT
	lea	rdx, 16[rsp]
	mov	ecx, r13d
	mov	esi, r15d
	mov	rdi, rbp
	call	i2c_write@PLT
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, esi
	mov	DWORD PTR 8[rsp], ecx
	call	DRXDAP_FASI_LONG_FORMAT@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	rax, rax
	jne	.L3
	test	r8d, r8d
	jne	.L3
	mov	eax, r12d
	and	r14d, 15
	mov	DWORD PTR 16[rsp], r13d
	mov	edx, 2
	sar	eax, 18
	mov	r13d, 4
	and	eax, 240
	or	r14d, eax
	mov	eax, 3
	mov	DWORD PTR 20[rsp], r14d
	jmp	.L5
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write16_flags, .-write16_flags
	.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_drxk_hard.c_write16_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(0x%08x, 0x%04x, 0x%02x)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write16_flags, %function
write16_flags:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, [r0, #4]
	mov	r5, r3
	ldr	r3, .L10
	sub	sp, sp, #44
	lsl	r8, r4, #1
	cmp	r1, #0
	mov	r6, r0
	ldr	r9, [r0]
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r0, r4
	and	r8, r8, #255
	asr	fp, r4, #16
	beq	.L2
	orr	r5, r5, #192
	bl	DRXDAP_FASI_LONG_FORMAT
.L3:
	mov	r10, #6
	mov	ip, #5
	mov	r1, #4
	asr	r3, r4, #7
	orr	r8, r8, #1
	and	fp, fp, #255
	and	r3, r3, #255
	orr	r2, r5, r4, lsr #24
	str	r8, [sp, #12]
	str	fp, [sp, #16]
	str	r3, [sp, #24]
	str	r2, [sp, #20]
.L5:
	add	r3, sp, #40
	asr	lr, r7, #8
	add	ip, r3, ip, lsl #2
	add	r1, r3, r1, lsl #2
	and	lr, lr, #255
	and	r0, r7, #255
	str	r5, [sp]
	mov	r2, r4
	str	r0, [r1, #-28]
	mov	r3, r7
	ldr	r1, .L10+4
	str	lr, [ip, #-28]
	mov	r0, #2
	bl	dprintk
	mov	r3, r10
	add	r2, sp, #12
	mov	r1, r9
	mov	r0, r6
	bl	i2c_write
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	DRXDAP_FASI_LONG_FORMAT
	orrs	r0, r0, r5
	bne	.L3
	asr	r3, r4, #18
	and	fp, fp, #15
	and	r3, r3, #240
	orr	fp, r3, fp
	mov	r5, r0
	mov	r10, #4
	mov	ip, #3
	mov	r1, #2
	str	r8, [sp, #12]
	str	fp, [sp, #16]
	b	.L5
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC0
	.size	write16_flags, .-write16_flags
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
