	.file	"extr_af_decnet.c_port_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	port_alloc, @function
port_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	DN_SK@PLT
	movzx	ebx, WORD PTR port.1929[rip]
	mov	rbp, rax
	mov	edi, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	edi, WORD PTR port.1929[rip]
	cmp	di, bx
	je	.L5
.L2:
	add	edi, 1
	mov	WORD PTR port.1929[rip], di
	movzx	edi, di
	call	cpu_to_le16@PLT
	mov	edi, eax
	call	check_port@PLT
	test	rax, rax
	jne	.L4
	movzx	edi, WORD PTR port.1929[rip]
	call	cpu_to_le16@PLT
	mov	DWORD PTR 0[rbp], eax
	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
.L5:
	.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	port_alloc, .-port_alloc
	.data
	.align 2
	.type	port.1929, @object
	.size	port.1929, 2
port.1929:
	.value	8192
	.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_af_decnet.c_port_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	port_alloc, %function
port_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	DN_SK
	ldr	r4, .L8
	mov	r6, r0
	ldrh	r5, [r4]
	mov	r0, r5
	b	.L2
.L4:
	cmp	r0, r5
	beq	.L5
.L2:
	add	r0, r0, #1
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	strh	r0, [r4]	@ movhi
	bl	cpu_to_le16
	bl	check_port
	cmp	r0, #0
	ldrh	r0, [r4]
	bne	.L4
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, #1
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	.LANCHOR0
	.size	port_alloc, .-port_alloc
	.data
	.align	1
	.set	.LANCHOR0,. + 0
	.type	port.4213, %object
	.size	port.4213, 2
port.4213:
	.short	8192
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
