	.file	"extr_Network.c_QuerySocketInformation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	QuerySocketInformation
	.type	QuerySocketInformation, @function
QuerySocketInformation:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rdi
	mov	edi, DWORD PTR 12[rdi]
	call	Lock@PLT
	mov	rax, QWORD PTR SOCK_TCP[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L3
	lea	r12, 8[rsp]
	lea	rbp, 12[rsp]
.L4:
	mov	edi, DWORD PTR 32[rbx]
	mov	rdx, r12
	mov	rsi, rbp
	mov	DWORD PTR 8[rsp], 12
	call	getsockname@PLT
	test	rax, rax
	jne	.L7
	cmp	DWORD PTR 8[rsp], 11
	lea	r12, 80[rbx]
	jbe	.L8
	mov	edi, DWORD PTR 20[rsp]
	call	ntohs@PLT
	lea	rsi, 16[rsp]
	mov	rdi, r12
	mov	QWORD PTR 64[rbx], rax
	call	InAddrToIP6@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 80[rbx], eax
.L7:
	cmp	QWORD PTR 72[rbx], 0
	jne	.L17
.L9:
	mov	rax, QWORD PTR SOCK_UDP[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L18
.L10:
	mov	DWORD PTR 8[rbx], 0
	mov	edi, DWORD PTR 12[rbx]
	call	Unlock@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR UDP_MAX_MSG_SIZE_DEFAULT[rip]
	mov	QWORD PTR 40[rbx], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 48[rbx]
	call	MAKE_SPECIAL_PORT@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	QWORD PTR 64[rbx], rax
	mov	rax, QWORD PTR SOCK_UDP[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L10
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 16[rsp]
	call	ntohs@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR 64[rbx], rax
	call	InAddrToIP@PLT
	cmp	QWORD PTR 72[rbx], 0
	je	.L9
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r12, 8[rsp]
	lea	rbp, 12[rsp]
	mov	edi, DWORD PTR 32[rbx]
	mov	DWORD PTR 8[rsp], 12
	mov	rdx, r12
	mov	rsi, rbp
	call	getpeername@PLT
	test	rax, rax
	jne	.L4
	cmp	DWORD PTR 8[rsp], 11
	lea	r13, 84[rbx]
	jbe	.L6
	mov	edi, DWORD PTR 20[rsp]
	call	ntohs@PLT
	lea	rsi, 16[rsp]
	mov	rdi, r13
	mov	QWORD PTR 56[rbx], rax
	call	InAddrToIP6@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 84[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 16[rsp]
	call	ntohs@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	QWORD PTR 56[rbx], rax
	call	InAddrToIP@PLT
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	QuerySocketInformation, .-QuerySocketInformation
	.comm	UDP_MAX_MSG_SIZE_DEFAULT,8,8
	.comm	SO_MAX_MSG_SIZE,8,8
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_UDP,8,8
	.comm	SOCK_TCP,8,8
	.comm	IP_TTL,8,8
	.comm	IPV6_UNICAST_HOPS,8,8
	.comm	IPPROTO_IPV6,4,4
	.comm	IPPROTO_IP,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_Network.c_QuerySocketInformation.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	QuerySocketInformation
	.syntax unified
	.arm
	.fpu softvfp
	.type	QuerySocketInformation, %function
QuerySocketInformation:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	sub	sp, sp, #28
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L1
	ldr	r0, [r4, #8]
	bl	Lock
	ldr	r3, .L22+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	add	r6, sp, #4
	add	r5, sp, #8
.L4:
	mov	r3, #12
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #20]
	str	r3, [sp, #4]
	bl	getsockname
	cmp	r0, #0
	bne	.L7
	ldr	r3, [sp, #4]
	add	r6, r4, #44
	cmp	r3, #11
	bls	.L8
	ldr	r0, [sp, #16]
	bl	ntohs
	add	r1, sp, #12
	str	r0, [r4, #36]
	mov	r0, r6
	bl	InAddrToIP6
	ldr	r3, [sp, #8]
	str	r3, [r4, #44]
.L7:
	ldr	r3, [r4, #40]
	cmp	r3, #0
	bne	.L20
.L9:
	ldr	r3, .L22+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r4, #8]
	cmp	r2, r3
	ldreq	r3, .L22+12
	ldreq	r3, [r3]
	streq	r3, [r4, #24]
	mov	r3, #0
	str	r3, [r4, #4]
	bl	Unlock
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L20:
	ldr	r0, [r4, #28]
	bl	MAKE_SPECIAL_PORT
	str	r0, [r4, #32]
	str	r0, [r4, #36]
	b	.L9
.L8:
	ldr	r0, [sp, #12]
	bl	ntohs
	mov	r1, r5
	str	r0, [r4, #36]
	mov	r0, r6
	bl	InAddrToIP
	ldr	r3, [r4, #40]
	cmp	r3, #0
	beq	.L9
	b	.L20
.L3:
	mov	r3, #12
	add	r6, sp, #4
	add	r5, sp, #8
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4, #20]
	str	r3, [sp, #4]
	bl	getpeername
	cmp	r0, #0
	bne	.L4
	ldr	r3, [sp, #4]
	add	r7, r4, #48
	cmp	r3, #11
	bls	.L6
	ldr	r0, [sp, #16]
	bl	ntohs
	mov	r3, r0
	add	r1, sp, #12
	str	r3, [r4, #32]
	mov	r0, r7
	bl	InAddrToIP6
	ldr	r3, [sp, #8]
	str	r3, [r4, #48]
	b	.L4
.L6:
	ldr	r0, [sp, #12]
	bl	ntohs
	mov	r3, r0
	mov	r1, r5
	mov	r0, r7
	str	r3, [r4, #32]
	bl	InAddrToIP
	b	.L4
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	SOCK_TCP
	.word	SOCK_UDP
	.word	UDP_MAX_MSG_SIZE_DEFAULT
	.size	QuerySocketInformation, .-QuerySocketInformation
	.comm	UDP_MAX_MSG_SIZE_DEFAULT,4,4
	.comm	SO_MAX_MSG_SIZE,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_UDP,4,4
	.comm	SOCK_TCP,4,4
	.comm	IP_TTL,4,4
	.comm	IPV6_UNICAST_HOPS,4,4
	.comm	IPPROTO_IPV6,4,4
	.comm	IPPROTO_IP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
