	.file	"extr_gpioctl.c_dump_pins.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gpio_pin_list"
.LC1:
	.string	"pin %02d:\t%d\t%s"
.LC2:
	.string	", caps:"
	.text
	.p2align 4
	.type	dump_pins, @function
dump_pins:
.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
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	gpio_pin_list@PLT
	test	eax, eax
	js	.L13
	cdqe
	xor	ebp, ebp
	lea	r15, .LC1[rip]
	lea	r14, 3[rax+rax*2]
	sal	r14, 3
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, 10
	add	rbp, 24
	call	putchar@PLT
	cmp	r14, rbp
	je	.L3
.L5:
	mov	rbx, QWORD PTR [rsp]
	mov	edi, r12d
	add	rbx, rbp
	mov	esi, DWORD PTR [rbx]
	call	gpio_pin_get@PLT
	mov	rcx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r15
	mov	edx, eax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR 20[rbx]
	call	print_caps@PLT
	test	r13d, r13d
	je	.L4
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	print_caps@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dump_pins, .-dump_pins
	.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_gpioctl.c_dump_pins.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gpio_pin_list\000"
	.align	2
.LC1:
	.ascii	"pin %02d:\011%d\011%s\000"
	.align	2
.LC2:
	.ascii	", caps:\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_pins, %function
dump_pins:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	mov	r9, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r0
	bl	gpio_pin_list
	cmp	r0, #0
	blt	.L13
	mov	r4, #0
	ldr	r10, .L15+4
	ldr	fp, .L15+8
	add	r7, r0, #1
	b	.L5
.L4:
	mov	r0, #10
	add	r4, r4, #1
	bl	putchar
	cmp	r7, r4
	beq	.L3
.L5:
	ldr	r5, [sp]
	mov	r0, r8
	ldr	r1, [r5, r4, lsl #4]
	bl	gpio_pin_get
	add	r6, r5, r4, lsl #4
	mov	r2, r0
	ldr	r1, [r5, r4, lsl #4]
	ldr	r3, [r6, #4]
	mov	r0, r10
	bl	printf
	ldr	r0, [r6, #12]
	bl	print_caps
	cmp	r9, #0
	beq	.L4
	mov	r0, fp
	bl	printf
	ldr	r0, [r6, #8]
	bl	print_caps
	b	.L4
.L13:
	ldr	r0, .L15+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, [sp]
	bl	free
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	dump_pins, .-dump_pins
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
