	.file	"extr_af_vsock.c_vsock_getname.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vsock_getname, @function
vsock_getname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, r12
	call	vsock_sk@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	lock_sock@PLT
	test	r14d, r14d
	je	.L2
	mov	rax, QWORD PTR SS_CONNECTED[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L8
	add	rbx, 4
.L5:
	xor	edi, edi
	call	BUILD_BUG_ON@PLT
	mov	rdi, r13
	mov	edx, 4
	mov	rsi, rbx
	call	memcpy@PLT
	mov	r13d, 4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	test	rbx, rbx
	jne	.L5
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L4:
	mov	rdi, r12
	call	release_sock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOTCONN[rip]
	neg	r13d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	vsock_getname, .-vsock_getname
	.comm	SS_CONNECTED,8,8
	.comm	ENOTCONN,4,4
	.comm	EINVAL,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_af_vsock.c_vsock_getname.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsock_getname, %function
vsock_getname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	mov	r5, r0
	mov	r0, r6
	mov	r7, r2
	mov	r8, r1
	bl	vsock_sk
	mov	r4, r0
	mov	r0, r6
	bl	lock_sock
	cmp	r7, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	add	r4, r4, #4
.L5:
	mov	r0, #0
	bl	BUILD_BUG_ON
	mov	r1, r4
	mov	r0, r8
	mov	r2, #4
	bl	memcpy
	mov	r4, #4
	b	.L4
.L2:
	cmp	r4, #0
	bne	.L5
	ldr	r3, .L9+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L4:
	mov	r0, r6
	bl	release_sock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L4
.L10:
	.align	2
.L9:
	.word	SS_CONNECTED
	.word	EINVAL
	.word	ENOTCONN
	.size	vsock_getname, .-vsock_getname
	.comm	SS_CONNECTED,4,4
	.comm	ENOTCONN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
