	.file	"extr_grip_mp.c_multiport_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"multiport_init(): digital mode activated.\n"
	.align 8
.LC1:
	.string	"multiport_init(): unable to activate digital mode.\n"
	.align 8
.LC2:
	.string	"multiport_init(): initialized == %d\n"
	.text
	.p2align 4
	.type	multiport_init, @function
multiport_init:
.LFB0:
	.cfi_startproc
	endbr64
	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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rsi, r13
	call	dig_mode_start@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r13
	add	ebx, 1
	call	dig_mode_start@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	cmp	ebx, 3
	jle	.L2
	test	eax, eax
	jne	.L5
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	ebx, 4096
	call	dbg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	sub	ebx, 1
	je	.L22
.L3:
	mov	rdi, rbp
	call	slots_valid@PLT
	test	rax, rax
	je	.L23
	mov	r12d, 1
.L7:
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	dbg@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	multiport_init, .-multiport_init
	.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_grip_mp.c_multiport_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"multiport_init(): digital mode activated.\012\000"
	.align	2
.LC1:
	.ascii	"multiport_init(): unable to activate digital mode.\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"multiport_init(): initialized == %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiport_init, %function
multiport_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	sub	sp, sp, #8
	mov	r6, r0
	mov	r1, sp
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dig_mode_start
	subs	r5, r0, #0
	bne	.L4
.L2:
	mov	r1, sp
	ldr	r0, [r6]
	bl	dig_mode_start
	add	r5, r5, #1
	cmp	r5, #3
	cmple	r0, #0
	mov	r4, r0
	beq	.L2
	cmp	r0, #0
	beq	.L15
.L4:
	ldr	r0, .L18+4
	bl	dbg
	mov	r5, #4096
	b	.L3
.L16:
	subs	r5, r5, #1
	beq	.L6
.L3:
	mov	r0, r6
	bl	slots_valid
	subs	r4, r0, #0
	beq	.L16
	mov	r4, #1
.L6:
	mov	r1, r4
	ldr	r0, .L18+8
	bl	dbg
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r0, .L18+12
	bl	dbg
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	multiport_init, .-multiport_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
