	.file	"extr_adi.c_adi_init_digital.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adi_init_digital, @function
adi_init_digital:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, 4
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, -2
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 8[rsp]
	mov	DWORD PTR 4[rsp], -2
	movabs	rax, 47244640253
	mov	QWORD PTR 8[rsp], rax
	movabs	rax, -42949672966
	mov	QWORD PTR 16[rsp], rax
	movabs	rax, -34359738375
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 32[rsp], 11
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	neg	edi
	call	mdelay@PLT
	lea	eax, 0[0+rbp*8]
	sub	ebp, eax
	lea	edi, [rbp+rbp]
	call	udelay@PLT
	test	ebx, ebx
	je	.L1
.L9:
	mov	eax, DWORD PTR [r12]
	mov	ebp, ebx
	add	r12, 4
	mov	ebx, eax
.L5:
	mov	rdi, r13
	call	gameport_trigger@PLT
	mov	edi, ebp
	test	ebp, ebp
	jle	.L2
	call	msleep@PLT
	test	ebx, ebx
	jne	.L9
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	adi_init_digital, .-adi_init_digital
	.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_adi.c_adi_init_digital.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adi_init_digital, %function
adi_init_digital:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #4
	sub	sp, sp, #48
	ldr	r3, .L11
	ldr	lr, .L11+4
	add	ip, sp, r4
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r6, r0
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	add	r5, sp, #8
	stm	ip, {r0, r1}
	b	.L4
.L2:
	rsb	r0, r4, #0
	sub	r4, r4, r4, lsl #3
	bl	mdelay
	lsl	r0, r4, #1
	bl	udelay
	ldr	r4, [r5], #4
	cmp	r4, #0
	beq	.L9
.L4:
	mov	r0, r6
	bl	gameport_trigger
	cmp	r4, #0
	ble	.L2
	mov	r0, r4
	bl	msleep
	ldr	r4, [r5], #4
	cmp	r4, #0
	bne	.L4
.L9:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LANCHOR0
	.size	adi_init_digital, .-adi_init_digital
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	4
	.word	-2
	.word	-3
	.word	10
	.word	-6
	.word	-11
	.word	-7
	.word	-9
	.word	11
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
