	.file	"extr_monitor.c___tipc_nl_add_monitor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__tipc_nl_add_monitor
	.type	__tipc_nl_add_monitor, @function
__tipc_nl_add_monitor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12d, edx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	esi, edx
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	tipc_monitor@PLT
	mov	rcx, rsp
	mov	r14, rax
	movsx	rax, DWORD PTR TIPC_MAX_BEARER_NAME[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	edx, r12d
	mov	rsi, rsp
	mov	rdi, r13
	mov	QWORD PTR -80[rbp], rsp
	call	tipc_bearer_get_name@PLT
	test	eax, eax
	jne	.L13
	test	r14, r14
	je	.L13
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	lea	rcx, tipc_genl_family[rip]
	mov	esi, DWORD PTR 8[rbx]
	mov	r9d, DWORD PTR TIPC_NL_MON_GET[rip]
	mov	r8d, DWORD PTR NLM_F_MULTI[rip]
	call	genlmsg_put@PLT
	mov	r15, rax
	test	rax, rax
	je	.L22
	mov	esi, DWORD PTR TIPC_NLA_MON[rip]
	mov	edi, DWORD PTR [rbx]
	call	nla_nest_start_noflag@PLT
	mov	QWORD PTR -72[rbp], rax
	test	rax, rax
	je	.L7
	mov	rdi, r14
	call	read_lock_bh@PLT
	mov	esi, DWORD PTR TIPC_NLA_MON_REF[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	call	nla_put_u32@PLT
	test	rax, rax
	je	.L26
.L8:
	mov	rdi, r14
	call	read_unlock_bh@PLT
	mov	rsi, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR [rbx]
	call	nla_nest_cancel@PLT
.L7:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r15
	call	genlmsg_cancel@PLT
.L22:
	mov	eax, DWORD PTR EMSGSIZE[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, r14
	mov	rdi, r13
	call	tipc_mon_is_active@PLT
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR TIPC_NLA_MON_ACTIVE[rip]
	mov	edi, DWORD PTR [rbx]
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L8
.L11:
	mov	rdx, QWORD PTR -80[rbp]
	mov	esi, DWORD PTR TIPC_NLA_MON_BEARER_NAME[rip]
	mov	edi, DWORD PTR [rbx]
	call	nla_put_string@PLT
	test	rax, rax
	jne	.L8
	mov	edx, DWORD PTR 8[r14]
	mov	esi, DWORD PTR TIPC_NLA_MON_PEERCNT[rip]
	mov	edi, DWORD PTR [rbx]
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L8
	mov	edx, DWORD PTR 4[r14]
	mov	esi, DWORD PTR TIPC_NLA_MON_LISTGEN[rip]
	mov	edi, DWORD PTR [rbx]
	call	nla_put_u32@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, r14
	call	read_unlock_bh@PLT
	mov	rsi, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR [rbx]
	call	nla_nest_end@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r15
	call	genlmsg_end@PLT
	xor	eax, eax
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__tipc_nl_add_monitor, .-__tipc_nl_add_monitor
	.comm	tipc_genl_family,4,4
	.comm	TIPC_NL_MON_GET,4,4
	.comm	TIPC_NLA_MON_REF,4,4
	.comm	TIPC_NLA_MON_PEERCNT,4,4
	.comm	TIPC_NLA_MON_LISTGEN,4,4
	.comm	TIPC_NLA_MON_BEARER_NAME,4,4
	.comm	TIPC_NLA_MON_ACTIVE,4,4
	.comm	TIPC_NLA_MON,4,4
	.comm	TIPC_MAX_BEARER_NAME,4,4
	.comm	NLM_F_MULTI,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_monitor.c___tipc_nl_add_monitor.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__tipc_nl_add_monitor
	.syntax unified
	.arm
	.fpu softvfp
	.type	__tipc_nl_add_monitor, %function
__tipc_nl_add_monitor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L21
	mov	r4, r1
	mov	r1, r2
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r0
	bl	tipc_monitor
	mov	r6, r0
	ldr	r3, .L21+4
	mov	r2, r5
	ldr	r3, [r3]
	mov	r0, r7
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r8, sp, #8
	mov	r1, r8
	bl	tipc_bearer_get_name
	clz	r3, r6
	cmp	r0, #0
	lsr	r3, r3, #5
	movne	r3, #1
	cmp	r3, #0
	movne	r5, #0
	beq	.L18
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, .L21+8
	ldr	r3, .L21+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [r4, #4]
	ldr	r3, .L21+16
	ldr	r1, [r4, #8]
	ldr	r0, [r4]
	bl	genlmsg_put
	subs	r9, r0, #0
	beq	.L16
	ldr	r3, .L21+20
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	nla_nest_start_noflag
	subs	r10, r0, #0
	beq	.L4
	mov	r0, r6
	bl	read_lock_bh
	ldr	r3, .L21+24
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	nla_put_u32
	cmp	r0, #0
	beq	.L20
.L5:
	mov	r0, r6
	bl	read_unlock_bh
	mov	r1, r10
	ldr	r0, [r4]
	bl	nla_nest_cancel
.L4:
	mov	r1, r9
	ldr	r0, [r4]
	bl	genlmsg_cancel
.L16:
	ldr	r3, .L21+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L20:
	mov	r0, r7
	mov	r1, r6
	bl	tipc_mon_is_active
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L21+32
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	bne	.L5
.L8:
	ldr	r3, .L21+36
	mov	r2, r8
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	nla_put_string
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L21+40
	ldr	r2, [r6, #8]
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	nla_put_u32
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L21+44
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	nla_put_u32
	subs	r5, r0, #0
	bne	.L5
	mov	r0, r6
	bl	read_unlock_bh
	mov	r1, r10
	ldr	r0, [r4]
	bl	nla_nest_end
	mov	r1, r9
	ldr	r0, [r4]
	bl	genlmsg_end
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	TIPC_MAX_BEARER_NAME
	.word	TIPC_NL_MON_GET
	.word	NLM_F_MULTI
	.word	tipc_genl_family
	.word	TIPC_NLA_MON
	.word	TIPC_NLA_MON_REF
	.word	EMSGSIZE
	.word	TIPC_NLA_MON_ACTIVE
	.word	TIPC_NLA_MON_BEARER_NAME
	.word	TIPC_NLA_MON_PEERCNT
	.word	TIPC_NLA_MON_LISTGEN
	.size	__tipc_nl_add_monitor, .-__tipc_nl_add_monitor
	.comm	tipc_genl_family,4,4
	.comm	TIPC_NL_MON_GET,4,4
	.comm	TIPC_NLA_MON_REF,4,4
	.comm	TIPC_NLA_MON_PEERCNT,4,4
	.comm	TIPC_NLA_MON_LISTGEN,4,4
	.comm	TIPC_NLA_MON_BEARER_NAME,4,4
	.comm	TIPC_NLA_MON_ACTIVE,4,4
	.comm	TIPC_NLA_MON,4,4
	.comm	TIPC_MAX_BEARER_NAME,4,4
	.comm	NLM_F_MULTI,4,4
	.comm	EMSGSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
