	.file	"extr_usbsevseg.c_update_display_visual.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of memory\n"
.LC1:
	.string	"write retval = %d\n"
.LC2:
	.string	"decimal retval = %d\n"
	.text
	.p2align 4
	.type	update_display_visual, @function
update_display_visual:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rdi], 1
	je	.L19
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR MAXLEN[rip]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	ebx, DWORD PTR 4[rbp]
	xor	eax, eax
	test	ebx, ebx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	sub	ebx, 1
	mov	rdx, QWORD PTR 8[rbp]
	sub	ebx, eax
	movsx	rbx, ebx
	movzx	edx, BYTE PTR [rdx+rbx]
	mov	BYTE PTR [r12+rax], dl
	mov	ebx, DWORD PTR 4[rbp]
	add	rax, 1
	cmp	ebx, eax
	jg	.L5
.L6:
	mov	rdi, QWORD PTR 32[rbp]
	xor	esi, esi
	mov	r13d, DWORD PTR 16[rbp]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, QWORD PTR 32[rbp]
	mov	r9d, r13d
	push	2000
	.cfi_def_cfa_offset 64
	mov	esi, eax
	mov	r8d, 21770
	mov	ecx, 72
	push	rbx
	.cfi_def_cfa_offset 72
	mov	edx, 18
	push	r12
	.cfi_def_cfa_offset 80
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	test	eax, eax
	js	.L20
.L7:
	mov	rdi, r12
	xor	ebx, ebx
	call	kfree@PLT
	mov	rdx, QWORD PTR 24[rbp]
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR [rdx+rcx*4]
	sal	eax, cl
	add	rcx, 1
	or	ebx, eax
	cmp	rcx, 8
	jne	.L8
	mov	rdi, QWORD PTR 32[rbp]
	xor	esi, esi
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, QWORD PTR 32[rbp]
	mov	r9d, ebx
	push	2000
	.cfi_def_cfa_offset 64
	mov	esi, eax
	mov	r8d, 22026
	mov	ecx, 72
	push	0
	.cfi_def_cfa_offset 72
	mov	edx, 18
	push	0
	.cfi_def_cfa_offset 80
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	test	eax, eax
	js	.L21
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbp]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 32[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, eax
	lea	rsi, .LC2[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	update_display_visual, .-update_display_visual
	.comm	MAXLEN,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_usbsevseg.c_update_display_visual.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory\012\000"
	.align	2
.LC1:
	.ascii	"write retval = %d\012\000"
	.align	2
.LC2:
	.ascii	"decimal retval = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_display_visual, %function
update_display_visual:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #1
	bxne	lr
	push	{r4, r5, r6, lr}
	ldr	r3, .L20
	mov	r4, r0
	sub	sp, sp, #24
	ldr	r0, [r3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	movgt	r2, #0
	subgt	r1, r5, #1
	ble	.L6
.L7:
	ldr	r0, [r4, #8]
	sub	r3, r3, #1
	sub	r3, r3, r2
	ldrb	r3, [r0, r3]	@ zero_extendqisi2
	add	r2, r2, #1
	strb	r3, [r1, #1]!
	ldr	r3, [r4, #4]
	cmp	r3, r2
	bgt	.L7
.L6:
	ldr	r6, [r4, #20]
	mov	r1, #0
	mov	r0, r6
	bl	usb_sndctrlpipe
	mov	r3, #2000
	ldr	r2, [r4, #12]
	ldr	ip, [r4, #4]
	str	r3, [sp, #16]
	ldr	r3, .L20+4
	mov	r1, r0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #18
	mov	r0, r6
	mov	r3, #72
	str	r5, [sp, #8]
	str	ip, [sp, #12]
	bl	usb_control_msg
	subs	r2, r0, #0
	blt	.L18
.L8:
	mov	r6, #0
	mov	r0, r5
	bl	kfree
	mov	r3, r6
	ldr	r2, [r4, #16]
	sub	r2, r2, #4
.L9:
	ldr	r1, [r2, #4]!
	orr	r6, r6, r1, lsl r3
	add	r3, r3, #1
	cmp	r3, #4
	bne	.L9
	ldr	r5, [r4, #20]
	mov	r1, #0
	mov	r0, r5
	bl	usb_sndctrlpipe
	mov	r3, #0
	mov	ip, #2000
	ldr	r2, .L20+8
	mov	r1, r0
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #18
	mov	r3, #72
	str	r6, [sp, #4]
	str	ip, [sp, #16]
	bl	usb_control_msg
	subs	r2, r0, #0
	blt	.L19
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r1, .L20+12
	ldr	r0, [r4, #20]
	bl	dev_dbg
	b	.L8
.L19:
	ldr	r0, [r4, #20]
	ldr	r1, .L20+16
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	dev_dbg
.L4:
	ldr	r0, [r4, #20]
	ldr	r1, .L20+20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	dev_err
.L21:
	.align	2
.L20:
	.word	MAXLEN
	.word	21770
	.word	22026
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	update_display_visual, .-update_display_visual
	.comm	MAXLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
