	.file	"extr_hid-cp2112.c_cp2112_gpio_direction_output.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error requesting GPIO config: %d\n"
	.align 8
.LC1:
	.string	"error setting GPIO config: %d\n"
	.text
	.p2align 4
	.type	cp2112_gpio_direction_output, @function
cp2112_gpio_direction_output:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	gpiochip_get_data@PLT
	lea	rbx, 8[rax]
	mov	r15, QWORD PTR 16[rax]
	mov	r14, QWORD PTR [rax]
	mov	rdi, rbx
	call	mutex_lock@PLT
	mov	r9d, DWORD PTR HID_REQ_GET_REPORT[rip]
	mov	rdx, r14
	mov	r8d, DWORD PTR HID_FEATURE_REPORT[rip]
	mov	ecx, DWORD PTR CP2112_GPIO_CONFIG_LENGTH[rip]
	mov	esi, DWORD PTR CP2112_GPIO_CONFIG[rip]
	mov	rdi, r15
	call	hid_hw_raw_request@PLT
	cmp	DWORD PTR CP2112_GPIO_CONFIG_LENGTH[rip], eax
	mov	r12d, eax
	je	.L2
	mov	rdi, r15
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	hid_err@PLT
	mov	rdi, rbx
	call	mutex_unlock@PLT
	test	r12d, r12d
	js	.L1
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	ecx, r13d
	mov	eax, 1
	mov	rdx, r14
	mov	rdi, r15
	sal	eax, cl
	or	DWORD PTR 4[r14], eax
	mov	ecx, r12d
	mov	eax, DWORD PTR gpio_push_pull[rip]
	mov	r9d, DWORD PTR HID_REQ_SET_REPORT[rip]
	mov	r8d, DWORD PTR HID_FEATURE_REPORT[rip]
	mov	DWORD PTR 8[r14], eax
	mov	esi, DWORD PTR CP2112_GPIO_CONFIG[rip]
	call	hid_hw_raw_request@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L8
	mov	rdi, rbx
	xor	r12d, r12d
	call	mutex_unlock@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, r13d
	mov	rdi, rbp
	call	cp2112_gpio_set@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r15
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	hid_err@PLT
	mov	rdi, rbx
	call	mutex_unlock@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cp2112_gpio_direction_output, .-cp2112_gpio_direction_output
	.comm	gpio_push_pull,4,4
	.comm	HID_REQ_SET_REPORT,4,4
	.comm	HID_REQ_GET_REPORT,4,4
	.comm	HID_FEATURE_REPORT,4,4
	.comm	EIO,4,4
	.comm	CP2112_GPIO_CONFIG_LENGTH,4,4
	.comm	CP2112_GPIO_CONFIG,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_hid-cp2112.c_cp2112_gpio_direction_output.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error requesting GPIO config: %d\012\000"
	.align	2
.LC1:
	.ascii	"error setting GPIO config: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cp2112_gpio_direction_output, %function
cp2112_gpio_direction_output:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r5, r1
	mov	r7, r2
	str	r0, [sp, #12]
	bl	gpiochip_get_data
	mov	r4, r0
	ldr	r6, [r4], #4
	ldr	r8, [r0, #8]
	mov	r0, r4
	bl	mutex_lock
	ldr	fp, .L9
	ldr	r1, .L9+4
	ldr	r3, [fp]
	ldr	r1, [r1]
	ldr	r9, .L9+8
	ldr	r10, .L9+12
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r9]
	ldr	r1, [r10]
	mov	r2, r6
	mov	r0, r8
	bl	hid_hw_raw_request
	ldr	r1, [r9]
	mov	r3, r0
	cmp	r1, r0
	beq	.L2
	mov	r2, r3
	ldr	r1, .L9+16
	mov	r0, r8
	str	r3, [sp, #12]
	bl	hid_err
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ldrge	r3, .L9+20
	ldrge	r3, [r3]
	rsbge	r3, r3, #0
.L1:
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, #1
	ldr	r9, .L9+24
	ldr	ip, .L9+28
	ldr	r0, [r6, #4]
	ldr	r9, [r9]
	ldr	ip, [ip]
	ldr	lr, [fp]
	orr	r0, r0, r1, lsl r5
	stmib	r6, {r0, r9}
	mov	r2, r6
	mov	r0, r8
	ldr	r1, [r10]
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	hid_hw_raw_request
	subs	r3, r0, #0
	blt	.L8
	mov	r0, r4
	bl	mutex_unlock
	mov	r2, r7
	mov	r1, r5
	ldr	r0, [sp, #12]
	bl	cp2112_gpio_set
	mov	r3, #0
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r2, r3
	ldr	r1, .L9+32
	mov	r0, r8
	str	r3, [sp, #12]
	bl	hid_err
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, [sp, #12]
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	HID_FEATURE_REPORT
	.word	HID_REQ_GET_REPORT
	.word	CP2112_GPIO_CONFIG_LENGTH
	.word	CP2112_GPIO_CONFIG
	.word	.LC0
	.word	EIO
	.word	gpio_push_pull
	.word	HID_REQ_SET_REPORT
	.word	.LC1
	.size	cp2112_gpio_direction_output, .-cp2112_gpio_direction_output
	.comm	gpio_push_pull,4,4
	.comm	HID_REQ_SET_REPORT,4,4
	.comm	HID_REQ_GET_REPORT,4,4
	.comm	HID_FEATURE_REPORT,4,4
	.comm	EIO,4,4
	.comm	CP2112_GPIO_CONFIG_LENGTH,4,4
	.comm	CP2112_GPIO_CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
