	.file	"extr_cx25821-gpio.c_cx25821_set_gpiopin_logicvalue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx25821_set_gpiopin_logicvalue, @function
cx25821_set_gpiopin_logicvalue:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 46
	jle	.L10
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	xor	edx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR GPIO_LO[rip]
	call	cx25821_set_gpiopin_direction@PLT
	cmp	ebp, 31
	jle	.L3
	mov	r13d, DWORD PTR GPIO_HI[rip]
	sub	ebp, 31
.L3:
	mov	edi, r13d
	call	cx_read@PLT
	mov	edi, ebp
	mov	r12d, eax
	test	ebx, ebx
	jne	.L4
	call	Clear_GPIO_Bit@PLT
	mov	esi, r12d
	and	esi, eax
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r13d
	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	cx_write@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	Set_GPIO_Bit@PLT
	mov	esi, r12d
	or	esi, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cx25821_set_gpiopin_logicvalue, .-cx25821_set_gpiopin_logicvalue
	.comm	GPIO_LO,4,4
	.comm	GPIO_HI,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_cx25821-gpio.c_cx25821_set_gpiopin_logicvalue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx25821_set_gpiopin_logicvalue, %function
cx25821_set_gpiopin_logicvalue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #46
	bxgt	lr
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L10
	mov	r5, r2
	mov	r2, #0
	ldr	r6, [r3]
	bl	cx25821_set_gpiopin_direction
	cmp	r4, #31
	ldrgt	r3, .L10+4
	subgt	r4, r4, #31
	ldrgt	r6, [r3]
	mov	r0, r6
	bl	cx_read
	cmp	r5, #0
	mov	r5, r0
	mov	r0, r4
	bne	.L4
	bl	Clear_GPIO_Bit
	and	r1, r5, r0
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	cx_write
.L4:
	bl	Set_GPIO_Bit
	orr	r1, r5, r0
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	cx_write
.L11:
	.align	2
.L10:
	.word	GPIO_LO
	.word	GPIO_HI
	.size	cx25821_set_gpiopin_logicvalue, .-cx25821_set_gpiopin_logicvalue
	.comm	GPIO_LO,4,4
	.comm	GPIO_HI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
