	.file	"extr_socket.c___tipc_nl_add_sk_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__tipc_nl_add_sk_info, @function
__tipc_nl_add_sk_info:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, DWORD PTR [rdi]
	call	sock_net@PLT
	mov	edx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR TIPC_NLA_SOCK_REF[rip]
	mov	rdi, rbp
	mov	r13, rax
	call	nla_put_u32@PLT
	test	rax, rax
	je	.L2
.L12:
	mov	eax, DWORD PTR EMSGSIZE[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	tipc_own_addr@PLT
	mov	esi, DWORD PTR TIPC_NLA_SOCK_ADDR[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L12
	lea	rdi, 8[r12]
	call	tipc_sk_connected@PLT
	test	rax, rax
	je	.L5
	mov	rsi, r12
	mov	rdi, rbp
	call	__tipc_nl_add_sk_con@PLT
	test	rax, rax
	jne	.L12
.L7:
	xor	eax, eax
.L15:
	pop	rbp
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	rdi, r12
	call	list_empty@PLT
	test	eax, eax
	jne	.L7
	mov	esi, DWORD PTR TIPC_NLA_SOCK_HAS_PUBL[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L12
	xor	eax, eax
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	__tipc_nl_add_sk_info, .-__tipc_nl_add_sk_info
	.comm	TIPC_NLA_SOCK_REF,4,4
	.comm	TIPC_NLA_SOCK_HAS_PUBL,4,4
	.comm	TIPC_NLA_SOCK_ADDR,4,4
	.comm	EMSGSIZE,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___tipc_nl_add_sk_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__tipc_nl_add_sk_info, %function
__tipc_nl_add_sk_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r6, r1
	bl	sock_net
	ldr	r1, .L14
	mov	r5, r0
	ldr	r2, [r6, #4]
	mov	r0, r4
	ldr	r1, [r1]
	bl	nla_put_u32
	cmp	r0, #0
	beq	.L2
.L12:
	ldr	r3, .L14+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r5, [r3]
	bl	tipc_own_addr
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	nla_put_u32
	subs	r5, r0, #0
	bne	.L12
	add	r0, r6, #8
	bl	tipc_sk_connected
	cmp	r0, #0
	beq	.L5
	mov	r1, r6
	mov	r0, r4
	bl	__tipc_nl_add_sk_con
	cmp	r0, #0
	beq	.L1
	b	.L12
.L5:
	mov	r0, r6
	bl	list_empty
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L14+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	beq	.L1
	b	.L12
.L15:
	.align	2
.L14:
	.word	TIPC_NLA_SOCK_REF
	.word	EMSGSIZE
	.word	TIPC_NLA_SOCK_ADDR
	.word	TIPC_NLA_SOCK_HAS_PUBL
	.size	__tipc_nl_add_sk_info, .-__tipc_nl_add_sk_info
	.comm	TIPC_NLA_SOCK_REF,4,4
	.comm	TIPC_NLA_SOCK_HAS_PUBL,4,4
	.comm	TIPC_NLA_SOCK_ADDR,4,4
	.comm	EMSGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
