	.file	"extr_gpio-viperboard.c_vprbrd_gpioa_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usb error setting pin value\n"
	.text
	.p2align 4
	.type	vprbrd_gpioa_set, @function
vprbrd_gpioa_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	gpiochip_get_data@PLT
	mov	edx, DWORD PTR [rax]
	bt	edx, r12d
	jnc	.L1
	mov	esi, DWORD PTR 4[rax]
	mov	ecx, r12d
	mov	edx, 1
	mov	r14, QWORD PTR 8[rax]
	sal	edx, cl
	mov	ecx, esi
	mov	r13, QWORD PTR 8[r14]
	mov	rdi, r14
	or	ecx, edx
	not	edx
	and	edx, esi
	test	ebp, ebp
	cmovne	edx, ecx
	mov	DWORD PTR 4[rax], edx
	call	mutex_lock@PLT
	mov	eax, DWORD PTR VPRBRD_GPIOA_CMD_SETOUT[rip]
	xor	esi, esi
	mov	DWORD PTR 4[r13], r12d
	mov	QWORD PTR 8[r13], 0
	mov	r15d, DWORD PTR VPRBRD_USB_TYPE_OUT[rip]
	mov	QWORD PTR 16[r13], 0
	mov	r12d, DWORD PTR VPRBRD_USB_REQUEST_GPIOA[rip]
	mov	DWORD PTR 24[r13], ebp
	mov	ebp, DWORD PTR VPRBRD_USB_TIMEOUT_MS[rip]
	mov	QWORD PTR 28[r13], 0
	mov	edi, DWORD PTR 4[r14]
	mov	DWORD PTR 40[r13], eax
	mov	DWORD PTR 0[r13], 0
	mov	DWORD PTR 36[r13], 0
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR 4[r14]
	xor	r9d, r9d
	push	rbp
	.cfi_def_cfa_offset 80
	xor	r8d, r8d
	mov	esi, eax
	mov	ecx, r15d
	push	44
	.cfi_def_cfa_offset 88
	mov	edx, r12d
	push	r13
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rdi, r14
	mov	ebp, eax
	call	mutex_unlock@PLT
	cmp	ebp, 44
	jne	.L12
.L1:
	add	rsp, 8
	.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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rsi, .LC0[rip]
	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
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	vprbrd_gpioa_set, .-vprbrd_gpioa_set
	.comm	VPRBRD_USB_TYPE_OUT,4,4
	.comm	VPRBRD_USB_TIMEOUT_MS,4,4
	.comm	VPRBRD_USB_REQUEST_GPIOA,4,4
	.comm	VPRBRD_GPIOA_CMD_SETOUT,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_gpio-viperboard.c_vprbrd_gpioa_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usb error setting pin value\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vprbrd_gpioa_set, %function
vprbrd_gpioa_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #24
	mov	r6, r1
	mov	r7, r2
	mov	r8, r0
	bl	gpiochip_get_data
	ldr	r3, [r0]
	asr	r3, r3, r6
	tst	r3, #1
	beq	.L1
	mov	r3, #1
	mov	r5, #0
	lsl	r2, r3, r6
	ldr	r3, [r0, #4]
	cmp	r7, #0
	ldr	r9, [r0, #8]
	orrne	r3, r3, r2
	biceq	r3, r3, r2
	ldr	r4, [r9, #8]
	str	r3, [r0, #4]
	mov	r0, r9
	bl	mutex_lock
	ldr	r3, .L13
	ldr	r10, [r9, #4]
	ldr	r3, [r3]
	mov	r1, r5
	str	r3, [r4, #40]
	str	r6, [r4, #4]
	str	r7, [r4, #24]
	str	r5, [r4]
	str	r5, [r4, #8]
	str	r5, [r4, #12]
	str	r5, [r4, #16]
	str	r5, [r4, #20]
	str	r5, [r4, #28]
	str	r5, [r4, #32]
	str	r5, [r4, #36]
	mov	r0, r10
	bl	usb_sndctrlpipe
	mov	ip, #44
	ldr	r3, .L13+4
	str	r4, [sp, #8]
	ldr	lr, [r3]
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r10
	bl	usb_control_msg
	mov	r4, r0
	mov	r0, r9
	bl	mutex_unlock
	cmp	r4, #44
	bne	.L12
.L1:
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, [r8]
	ldr	r1, .L13+16
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	dev_err
.L14:
	.align	2
.L13:
	.word	VPRBRD_GPIOA_CMD_SETOUT
	.word	VPRBRD_USB_TIMEOUT_MS
	.word	VPRBRD_USB_REQUEST_GPIOA
	.word	VPRBRD_USB_TYPE_OUT
	.word	.LC0
	.size	vprbrd_gpioa_set, .-vprbrd_gpioa_set
	.comm	VPRBRD_USB_TYPE_OUT,4,4
	.comm	VPRBRD_USB_TIMEOUT_MS,4,4
	.comm	VPRBRD_USB_REQUEST_GPIOA,4,4
	.comm	VPRBRD_GPIOA_CMD_SETOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
