	.file	"extr_aha152x.c_tc1550_porttest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tc1550_porttest, @function
tc1550_porttest:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rbp, edi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR O_TC_DMACNTRL1[rip]
	add	rdi, rbp
	call	SETPORT@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR O_STACK[rip]
	mov	esi, ebx
	add	ebx, 1
	add	rdi, rbp
	call	SETPORT@PLT
	cmp	ebx, 16
	jne	.L2
	mov	rdi, QWORD PTR O_TC_DMACNTRL1[rip]
	xor	esi, esi
	xor	ebx, ebx
	add	rdi, rbp
	call	SETPORT@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR O_TC_STACK[rip]
	add	rdi, rbp
	call	GETPORT@PLT
	cmp	eax, ebx
	jne	.L10
	add	ebx, 1
	cmp	ebx, 16
	jne	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tc1550_porttest, .-tc1550_porttest
	.comm	O_TC_STACK,8,8
	.comm	O_TC_DMACNTRL1,8,8
	.comm	O_STACK,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_aha152x.c_tc1550_porttest.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc1550_porttest, %function
tc1550_porttest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r1, #0
	ldr	r7, .L11
	mov	r4, r1
	ldr	r0, [r7]
	ldr	r6, .L11+4
	add	r0, r5, r0
	bl	SETPORT
.L2:
	ldr	r0, [r6]
	mov	r1, r4
	add	r0, r5, r0
	add	r4, r4, #1
	bl	SETPORT
	cmp	r4, #16
	bne	.L2
	ldr	r0, [r7]
	mov	r1, #0
	add	r0, r5, r0
	bl	SETPORT
	mov	r4, #0
	ldr	r6, .L11+8
.L3:
	ldr	r0, [r6]
	add	r0, r5, r0
	bl	GETPORT
	cmp	r0, r4
	add	r4, r4, #1
	bne	.L10
	cmp	r4, #16
	bne	.L3
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	O_TC_DMACNTRL1
	.word	O_STACK
	.word	O_TC_STACK
	.size	tc1550_porttest, .-tc1550_porttest
	.comm	O_TC_STACK,4,4
	.comm	O_TC_DMACNTRL1,4,4
	.comm	O_STACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
