	.file	"extr_gpio-hammer.c_hammer_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gpio-hammer"
.LC1:
	.string	"Hammer lines ["
.LC2:
	.string	"%d"
.LC3:
	.string	", "
.LC4:
	.string	"]\n"
.LC5:
	.string	"[%c] "
.LC6:
	.string	"["
.LC7:
	.string	"]\r"
.LC8:
	.string	"%d: %d"
.LC9:
	.string	"\n"
.LC10:
	.string	"] on %s, initial states: ["
	.text
	.p2align 4
	.globl	hammer_device
	.type	hammer_device, @function
hammer_device:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rdi
	lea	r15, 56[rsp]
	mov	DWORD PTR 28[rsp], edx
	mov	rdi, r15
	mov	edx, 8
	mov	DWORD PTR 36[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 67[rsp], 796679213
	mov	BYTE PTR 71[rsp], 0
	mov	QWORD PTR 16[rsp], r15
	call	memset@PLT
	mov	r8, r15
	mov	edx, r14d
	mov	rsi, rbx
	mov	ecx, DWORD PTR GPIOHANDLE_REQUEST_OUTPUT[rip]
	lea	r9, .LC0[rip]
	mov	rdi, rbp
	call	gpiotools_request_linehandle@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, r15
	mov	edi, eax
	call	gpiotools_get_values@PLT
	mov	edx, eax
	test	eax, eax
	js	.L3
	mov	edi, DWORD PTR stdout[rip]
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	test	r14d, r14d
	jle	.L4
	lea	r13d, -1[r14]
	lea	r15, .LC2[rip]
	xor	r14d, r14d
	mov	rbp, r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r14, rax
.L6:
	mov	edx, DWORD PTR [rbx+r14*4]
	mov	edi, DWORD PTR stdout[rip]
	xor	eax, eax
	mov	rsi, r15
	call	fprintf@PLT
	cmp	ebp, r14d
	je	.L5
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
.L5:
	lea	rax, 1[r14]
	cmp	r13, r14
	jne	.L24
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR stdout[rip]
	xor	eax, eax
	xor	r14d, r14d
	lea	rsi, .LC10[rip]
	lea	r15, .LC2[rip]
	call	fprintf@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r14, rax
.L9:
	mov	rax, QWORD PTR 56[rsp]
	mov	edi, DWORD PTR stdout[rip]
	mov	rsi, r15
	mov	edx, DWORD PTR [rax+r14*4]
	xor	eax, eax
	call	fprintf@PLT
	cmp	ebp, r14d
	je	.L8
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
.L8:
	lea	rax, 1[r14]
	cmp	r14, r13
	jne	.L25
.L22:
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	mov	r14d, ebp
	lea	r15, .LC8[rip]
	call	fprintf@PLT
	lea	rax, 0[0+r14*4]
	mov	DWORD PTR 8[rsp], 0
	mov	QWORD PTR 40[rsp], rax
	mov	DWORD PTR 32[rsp], 0
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r8d, DWORD PTR 28[rsp]
	test	r8d, r8d
	jle	.L13
	mov	rdx, QWORD PTR 56[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	lea	rax, 4[rdx]
	add	rsi, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L40:
	add	rax, 4
.L12:
	mov	edi, DWORD PTR [rdx]
	xor	ecx, ecx
	test	edi, edi
	sete	cl
	mov	DWORD PTR [rdx], ecx
	mov	rdx, rax
	cmp	rsi, rax
	jne	.L40
.L13:
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, r12d
	call	gpiotools_set_values@PLT
	test	eax, eax
	js	.L36
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, r12d
	call	gpiotools_get_values@PLT
	test	eax, eax
	js	.L36
	movsx	rax, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC5[rip]
	movsx	edx, BYTE PTR 67[rsp+rax]
	mov	r13, rax
	xor	eax, eax
	add	r13d, 1
	call	fprintf@PLT
	cmp	r13d, 4
	mov	eax, 0
	mov	edi, DWORD PTR stdout[rip]
	cmovne	eax, r13d
	lea	rsi, .LC6[rip]
	xor	r13d, r13d
	mov	DWORD PTR 32[rsp], eax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jg	.L20
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r13, rax
.L20:
	mov	rax, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR [rbx+r13*4]
	mov	rsi, r15
	mov	edi, DWORD PTR stdout[rip]
	mov	ecx, DWORD PTR [rax+r13*4]
	xor	eax, eax
	call	fprintf@PLT
	cmp	ebp, r13d
	je	.L19
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
.L19:
	lea	rax, 1[r13]
	cmp	r14, r13
	jne	.L26
.L21:
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	edi, DWORD PTR 36[rsp]
	add	DWORD PTR 8[rsp], 1
	mov	eax, DWORD PTR 8[rsp]
	test	edi, edi
	je	.L18
	cmp	eax, edi
	jne	.L18
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	fprintf@PLT
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], edx
	call	gpiotools_release_linehandle@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	r12d, edx
.L2:
	endbr64
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 88
	.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
.L36:
	.cfi_restore_state
	mov	edx, eax
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, DWORD PTR 28[rsp]
	lea	ebp, -1[rax]
	jmp	.L22
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hammer_device, .-hammer_device
	.comm	stdout,4,4
	.comm	GPIOHANDLE_REQUEST_OUTPUT,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-hammer.c_hammer_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"gpio-hammer\000"
	.align	2
.LC2:
	.ascii	"Hammer lines [\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	", \000"
	.align	2
.LC5:
	.ascii	"]\012\000"
	.align	2
.LC6:
	.ascii	"[%c] \000"
	.align	2
.LC7:
	.ascii	"[\000"
	.align	2
.LC8:
	.ascii	"]\015\000"
	.align	2
.LC9:
	.ascii	"%d: %d\000"
	.align	2
.LC10:
	.ascii	"\012\000"
	.align	2
.LC11:
	.ascii	"] on %s, initial states: [\000"
	.align	2
.LC0:
	.ascii	"-\\|/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hammer_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	hammer_device, %function
hammer_device:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r3
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	mov	r8, r1
	mov	r6, #0
	ldr	r3, .L33
	ldr	lr, .L33+4
	ldr	r4, .L33+8
	sub	sp, sp, #52
	str	r1, [sp, #24]
	str	ip, [sp, #20]
	ldm	r3, {r0, r1}
	ldr	ip, .L33+12
	ldr	r3, [r4]
	str	lr, [sp, #4]
	add	lr, sp, #32
	str	r0, [sp, #36]
	strb	r1, [sp, #40]
	str	lr, [sp]
	mov	r0, r9
	mov	r1, r8
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	mov	r5, r2
	str	r6, [sp, #32]
	bl	gpiotools_request_linehandle
	subs	r3, r0, #0
	str	r3, [sp, #12]
	blt	.L1
	add	r1, sp, #32
	bl	gpiotools_get_values
	subs	r7, r0, #0
	blt	.L3
	ldr	r4, .L33+16
	ldr	r1, .L33+20
	ldr	r0, [r4]
	bl	fprintf
	cmp	r5, r6
	ble	.L4
	ldr	r10, .L33+24
	ldr	fp, .L33+28
	sub	r7, r5, #1
	sub	r8, r8, #4
	b	.L6
.L23:
	mov	r6, r3
.L6:
	mov	r1, r10
	ldr	r2, [r8, #4]!
	ldr	r0, [r4]
	bl	fprintf
	cmp	r6, r7
	beq	.L5
	mov	r1, fp
	ldr	r0, [r4]
	bl	fprintf
.L5:
	add	r3, r6, #1
	cmp	r5, r3
	bne	.L23
	mov	r2, r9
	ldr	r1, .L33+32
	ldr	r0, [r4]
	bl	fprintf
	mov	r10, #0
	ldr	r8, .L33+24
	ldr	r9, .L33+28
.L9:
	ldr	r3, [sp, #32]
	mov	r1, r8
	ldr	r2, [r3, r10, lsl #2]
	ldr	r0, [r4]
	bl	fprintf
	cmp	r10, r7
	beq	.L8
	mov	r1, r9
	ldr	r0, [r4]
	bl	fprintf
.L8:
	cmp	r6, r10
	add	r10, r10, #1
	bne	.L9
.L21:
	mov	r3, #0
	ldr	r1, .L33+36
	ldr	r0, [r4]
	mov	fp, r3
	str	r3, [sp, #16]
	ldr	r9, .L33+40
	bl	fprintf
	ldr	r10, .L33+28
	lsl	r3, r5, #2
	str	r3, [sp, #28]
	sub	r8, r5, #1
.L17:
	cmp	r5, #0
	ble	.L13
	ldr	r2, [sp, #32]
	ldr	r3, [sp, #28]
	sub	r2, r2, #4
	add	r1, r2, r3
.L12:
	ldr	r3, [r2, #4]!
	clz	r3, r3
	cmp	r1, r2
	lsr	r3, r3, #5
	str	r3, [r2]
	bne	.L12
.L13:
	ldr	r0, [sp, #12]
	add	r1, sp, #32
	bl	gpiotools_set_values
	cmp	r0, #0
	blt	.L29
	ldr	r0, [sp, #12]
	add	r1, sp, #32
	bl	gpiotools_get_values
	cmp	r0, #0
	blt	.L29
	add	r3, sp, #48
	add	r3, r3, fp
	ldrb	r2, [r3, #-12]	@ zero_extendqisi2
	ldr	r1, .L33+44
	add	fp, fp, #1
	ldr	r0, [r4]
	bl	fprintf
	cmp	fp, #4
	ldr	r1, .L33+48
	ldr	r0, [r4]
	moveq	fp, #0
	bl	fprintf
	cmp	r5, #0
	ble	.L20
	mov	r6, #0
	ldr	r3, [sp, #24]
	sub	r7, r3, #4
.L19:
	ldr	r3, [sp, #32]
	mov	r1, r9
	ldr	r2, [r7, #4]!
	ldr	r3, [r3, r6, lsl #2]
	ldr	r0, [r4]
	bl	fprintf
	cmp	r6, r8
	beq	.L18
	mov	r1, r10
	ldr	r0, [r4]
	bl	fprintf
.L18:
	add	r6, r6, #1
	cmp	r5, r6
	bne	.L19
.L20:
	ldr	r1, .L33+52
	ldr	r0, [r4]
	bl	fprintf
	ldr	r3, [sp, #16]
	ldr	r0, [r4]
	add	r3, r3, #1
	mov	r6, r3
	str	r3, [sp, #16]
	bl	fflush
	mov	r0, #1
	bl	sleep
	ldr	r2, [sp, #20]
	sub	r3, r6, r2
	clz	r3, r3
	cmp	r2, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	beq	.L17
	ldr	r0, [r4]
	ldr	r1, .L33+56
	bl	fprintf
	mov	r7, #0
.L3:
.L2:
	ldr	r0, [sp, #12]
	bl	gpiotools_release_linehandle
	str	r7, [sp, #12]
.L1:
	ldr	r3, .L33+12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	ldr	r0, [sp, #12]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r7, r0
	b	.L3
.L4:
	mov	r2, r9
	ldr	r1, .L33+32
	ldr	r0, [r4]
	bl	fprintf
	b	.L21
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	.LC1
	.word	GPIOHANDLE_REQUEST_OUTPUT
	.word	.LC12
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC11
	.word	.LC5
	.word	.LC9
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC10
	.size	hammer_device, .-hammer_device
	.comm	stdout,4,4
	.comm	GPIOHANDLE_REQUEST_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
