	.file	"extr_multicast.c_batadv_mcast_netlink_get_primary.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	batadv_mcast_netlink_get_primary, @function
batadv_mcast_netlink_get_primary:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR [rax]
	call	sock_net@PLT
	mov	esi, DWORD PTR BATADV_ATTR_MESH_IFINDEX[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r12, rax
	call	batadv_netlink_get_ifindex@PLT
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, eax
	mov	rdi, r12
	call	dev_get_by_index@PLT
	test	rbp, rbp
	mov	r13, rax
	setne	bl
	test	rax, rax
	je	.L4
	mov	rdi, rax
	call	batadv_softif_is_valid@PLT
	test	eax, eax
	jne	.L37
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rdi, r13
	call	dev_put@PLT
	test	r12d, r12d
	jne	.L17
.L35:
	xor	r14d, r14d
	test	bl, bl
	je	.L17
.L9:
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 0[rbp], r14
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	test	r12d, r12d
	je	.L35
.L17:
	neg	r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L37:
	.cfi_restore_state
	mov	rdi, r13
	call	netdev_priv@PLT
	mov	rdi, rax
	call	batadv_primary_if_get_selected@PLT
	mov	r14, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR BATADV_IF_ACTIVE[rip]
	cmp	QWORD PTR [r14], rax
	je	.L38
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	rdi, r13
	call	dev_put@PLT
	test	r12d, r12d
	jne	.L15
	test	bl, bl
	jne	.L9
.L15:
	neg	r12d
.L10:
	mov	rdi, r14
	call	batadv_hardif_put@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L38:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	call	dev_put@PLT
	test	rbp, rbp
	je	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	rdi, r13
	call	dev_put@PLT
	test	r12d, r12d
	jne	.L17
	test	bl, bl
	jne	.L9
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	batadv_mcast_netlink_get_primary, .-batadv_mcast_netlink_get_primary
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	BATADV_IF_ACTIVE,8,8
	.comm	BATADV_ATTR_MESH_IFINDEX,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_multicast.c_batadv_mcast_netlink_get_primary.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	batadv_mcast_netlink_get_primary, %function
batadv_mcast_netlink_get_primary:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r3]
	mov	r6, r1
	bl	sock_net
	ldr	r2, .L21
	mov	r5, r0
	ldr	r1, [r2]
	ldr	r0, [r4]
	bl	batadv_netlink_get_ifindex
	subs	r1, r0, #0
	bne	.L2
	ldr	r3, .L21+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	dev_get_by_index
	subs	r5, r6, #0
	movne	r5, #1
	subs	r4, r0, #0
	beq	.L4
	bl	batadv_softif_is_valid
	cmp	r0, #0
	bne	.L19
	ldr	r3, .L21+8
	mov	r0, r4
	ldr	r4, [r3]
	bl	dev_put
	cmp	r4, #0
	movne	r5, #0
	cmp	r5, #0
	beq	.L16
.L11:
	mov	r7, #0
.L9:
	mov	r4, #0
	str	r7, [r6]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L21+8
	ldr	r4, [r3]
	cmp	r4, #0
	movne	r5, #0
	cmp	r5, #0
	bne	.L11
.L16:
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r4
	bl	netdev_priv
	bl	batadv_primary_if_get_selected
	subs	r7, r0, #0
	beq	.L6
	ldr	r3, .L21+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
	ldr	r3, .L21+16
	mov	r0, r4
	ldr	r4, [r3]
	bl	dev_put
	cmp	r4, #0
	movne	r5, #0
	cmp	r5, #0
	rsbeq	r4, r4, #0
	bne	.L9
.L10:
	mov	r0, r7
	bl	batadv_hardif_put
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r0, r4
	bl	dev_put
	cmp	r6, #0
	moveq	r4, r6
	beq	.L10
	b	.L9
.L6:
	ldr	r3, .L21+16
	mov	r0, r4
	ldr	r4, [r3]
	bl	dev_put
	cmp	r4, #0
	movne	r5, #0
	cmp	r5, #0
	bne	.L9
	b	.L16
.L22:
	.align	2
.L21:
	.word	BATADV_ATTR_MESH_IFINDEX
	.word	EINVAL
	.word	ENODEV
	.word	BATADV_IF_ACTIVE
	.word	ENOENT
	.size	batadv_mcast_netlink_get_primary, .-batadv_mcast_netlink_get_primary
	.comm	ENOENT,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	BATADV_IF_ACTIVE,4,4
	.comm	BATADV_ATTR_MESH_IFINDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
