	.file	"extr_net_sockets_common.c_vc_container_net_get_client_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vc_container_net_get_client_name
	.type	vc_container_net_get_client_name, @function
vc_container_net_get_client_name:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L14
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR INVALID_SOCKET[rip]
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L15
	test	rsi, rsi
	je	.L9
	test	rdx, rdx
	jne	.L6
.L9:
	mov	eax, DWORD PTR VC_CONTAINER_NET_ERROR_INVALID_PARAMETER[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR VC_CONTAINER_NET_ERROR_NOT_CONNECTED[rip]
	mov	DWORD PTR 8[rdi], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 24
	mov	r10d, DWORD PTR 12[rdi]
	mov	rcx, rdx
	lea	rdi, 16[rdi]
	push	0
	.cfi_def_cfa_offset 32
	mov	rdx, rsi
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, r10d
	call	getnameinfo@PLT
	pop	rdx
	.cfi_def_cfa_offset 24
	pop	rcx
	.cfi_def_cfa_offset 16
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR VC_CONTAINER_NET_SUCCESS[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore 3
	mov	eax, DWORD PTR VC_CONTAINER_NET_ERROR_INVALID_SOCKET[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, eax
	call	translate_getnameinfo_error@PLT
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vc_container_net_get_client_name, .-vc_container_net_get_client_name
	.comm	VC_CONTAINER_NET_SUCCESS,4,4
	.comm	VC_CONTAINER_NET_ERROR_NOT_CONNECTED,4,4
	.comm	VC_CONTAINER_NET_ERROR_INVALID_SOCKET,4,4
	.comm	VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,4,4
	.comm	INVALID_SOCKET,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_net_sockets_common.c_vc_container_net_get_client_name.c"
	.text
	.align	2
	.global	vc_container_net_get_client_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	vc_container_net_get_client_name, %function
vc_container_net_get_client_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	sub	sp, sp, #16
	beq	.L10
	ldr	r3, .L13
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L11
	clz	ip, r2
	cmp	r1, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	ip, #0
	beq	.L6
	ldr	r3, .L13+4
	ldr	r0, [r3]
	str	r0, [r4, #4]
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L11:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	str	r0, [r4, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L6:
	str	ip, [sp, #8]
	str	ip, [sp, #4]
	str	ip, [sp]
	mov	r3, r2
	add	r0, r4, #12
	mov	r2, r1
	ldr	r1, [r4, #8]
	bl	getnameinfo
	cmp	r0, #0
	bne	.L12
	ldr	r3, .L13+12
	ldr	r0, [r3]
	str	r0, [r4, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L12:
	bl	translate_getnameinfo_error
	str	r0, [r4, #4]
	b	.L1
.L14:
	.align	2
.L13:
	.word	INVALID_SOCKET
	.word	VC_CONTAINER_NET_ERROR_INVALID_PARAMETER
	.word	VC_CONTAINER_NET_ERROR_NOT_CONNECTED
	.word	VC_CONTAINER_NET_SUCCESS
	.word	VC_CONTAINER_NET_ERROR_INVALID_SOCKET
	.size	vc_container_net_get_client_name, .-vc_container_net_get_client_name
	.comm	VC_CONTAINER_NET_SUCCESS,4,4
	.comm	VC_CONTAINER_NET_ERROR_NOT_CONNECTED,4,4
	.comm	VC_CONTAINER_NET_ERROR_INVALID_SOCKET,4,4
	.comm	VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,4,4
	.comm	INVALID_SOCKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
