	.file	"extr_ad2s1210.c_ad2s1210_set_resolution_pin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad2s1210_set_resolution_pin, @function
ad2s1210_set_resolution_pin:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	rcx, QWORD PTR AD2S1210_RES0[rip]
	lea	edx, -10[rax]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	rdx, QWORD PTR ad2s1210_res_pins[rip]
	sar	eax
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR [rax]
	mov	edi, DWORD PTR [rdx+rcx*4]
	call	gpiod_set_value@PLT
	mov	eax, DWORD PTR [rbx]
	lea	edx, -10[rax]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	rdx, QWORD PTR ad2s1210_res_pins[rip]
	sar	eax
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR AD2S1210_RES1[rip]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 8[rbx]
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	edi, DWORD PTR [rax+rdx*4]
	jmp	gpiod_set_value@PLT
	.cfi_endproc
.LFE0:
	.size	ad2s1210_set_resolution_pin, .-ad2s1210_set_resolution_pin
	.comm	ad2s1210_res_pins,8,8
	.comm	AD2S1210_RES1,8,8
	.comm	AD2S1210_RES0,8,8
	.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_ad2s1210.c_ad2s1210_set_resolution_pin.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad2s1210_set_resolution_pin, %function
ad2s1210_set_resolution_pin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0]
	ldr	r5, .L4
	sub	r3, r3, #10
	ldr	r1, [r5]
	ldr	r2, .L4+4
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	ldr	r1, [r1, r3, lsl #2]
	ldr	r2, [r2]
	ldr	r3, [r0, #4]
	ldr	r1, [r1]
	ldr	r0, [r3, r2, lsl #2]
	bl	gpiod_set_value
	ldr	r3, [r4]
	ldr	r1, [r5]
	sub	r3, r3, #10
	ldr	r2, .L4+8
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	ldr	r1, [r1, r3, lsl #2]
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	ldr	r1, [r1, #4]
	ldr	r0, [r3, r2, lsl #2]
	pop	{r4, r5, r6, lr}
	b	gpiod_set_value
.L5:
	.align	2
.L4:
	.word	ad2s1210_res_pins
	.word	AD2S1210_RES0
	.word	AD2S1210_RES1
	.size	ad2s1210_set_resolution_pin, .-ad2s1210_set_resolution_pin
	.comm	ad2s1210_res_pins,4,4
	.comm	AD2S1210_RES1,4,4
	.comm	AD2S1210_RES0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
