	.file	"extr_socket.c_generate_local_port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_local_port, @function
generate_local_port:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	getpid@PLT
	mov	rdi, QWORD PTR used_ports_map[rip]
	xor	edx, edx
	and	eax, 4194303
.L6:
	mov	esi, DWORD PTR [rdi]
	cmp	esi, -1
	je	.L2
	xor	ecx, ecx
.L4:
	bt	esi, ecx
	jc	.L14
	mov	r8d, 1
	sal	edx, 5
	sal	r8, cl
	add	edx, ecx
	or	esi, r8d
	sal	edx, 22
	mov	DWORD PTR [rdi], esi
	add	eax, edx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	ecx, 1
	cmp	ecx, 32
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	add	edx, 1
	add	rdi, 4
	cmp	edx, 32
	jne	.L6
	mov	eax, DWORD PTR UINT_MAX[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	generate_local_port, .-generate_local_port
	.comm	used_ports_map,8,8
	.comm	UINT_MAX,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_socket.c_generate_local_port.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_local_port, %function
generate_local_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	getpid
	mov	r2, #0
	ldr	r3, .L15
	bic	r0, r0, #-16777216
	ldr	r1, [r3]
	bic	r0, r0, #12582912
.L6:
	mov	r4, r1
	ldr	r3, [r1], #4
	cmn	r3, #1
	beq	.L2
	mov	ip, #0
.L4:
	asr	lr, r3, ip
	tst	lr, #1
	bne	.L14
	mov	r1, #1
	add	r2, ip, r2, lsl #5
	orr	r3, r3, r1, lsl ip
	add	r0, r0, r2, lsl #22
	str	r3, [r4]
	pop	{r4, pc}
.L14:
	add	ip, ip, #1
	cmp	ip, #32
	bne	.L4
.L2:
	add	r2, r2, #1
	cmp	r2, #32
	bne	.L6
	ldr	r3, .L15+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L16:
	.align	2
.L15:
	.word	used_ports_map
	.word	UINT_MAX
	.size	generate_local_port, .-generate_local_port
	.comm	used_ports_map,4,4
	.comm	UINT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
