	.file	"extr_macvlan.c_macvlan_port_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	macvlan_port_destroy, @function
macvlan_port_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	macvlan_port_get_rtnl@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	eax, DWORD PTR IFF_MACVLAN_PORT[rip]
	lea	rbx, 12[r12]
	not	eax
	and	DWORD PTR 0[rbp], eax
	call	netdev_rx_handler_unregister@PLT
	lea	rdi, 16[r12]
	call	cancel_work_sync@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	MACVLAN_SKB_CB@PLT
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR [rax]
	call	dev_put@PLT
.L3:
	mov	rdi, rbp
	call	kfree_skb@PLT
.L2:
	mov	rdi, rbx
	call	__skb_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	call	macvlan_passthru@PLT
	test	rax, rax
	jne	.L14
.L6:
	mov	rdi, r12
	call	kfree@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 8[rax]
	call	ether_addr_equal@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR [r12]
	mov	esi, DWORD PTR 8[r12]
	mov	rbp, rsp
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rsp], edx
	mov	edx, DWORD PTR [rax]
	call	memcpy@PLT
	mov	rdi, QWORD PTR [r12]
	xor	edx, edx
	mov	rsi, rbp
	call	dev_set_mac_address@PLT
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	macvlan_port_destroy, .-macvlan_port_destroy
	.comm	IFF_MACVLAN_PORT,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_macvlan.c_macvlan_port_destroy.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macvlan_port_destroy, %function
macvlan_port_destroy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	macvlan_port_get_rtnl
	mov	r6, r0
	ldr	r2, .L16+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r4]
	bl	netdev_rx_handler_unregister
	add	r0, r6, #12
	bl	cancel_work_sync
	add	r5, r6, #8
	b	.L2
.L4:
	bl	MACVLAN_SKB_CB
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r3]
	bl	dev_put
.L3:
	mov	r0, r4
	bl	kfree_skb
.L2:
	mov	r0, r5
	bl	__skb_dequeue
	subs	r4, r0, #0
	bne	.L4
	mov	r0, r6
	bl	macvlan_passthru
	cmp	r0, #0
	bne	.L14
.L6:
	mov	r0, r6
	bl	kfree
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, [r6]
	ldr	r1, [r6, #4]
	ldr	r0, [r3, #8]
	bl	ether_addr_equal
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, [r6]
	ldr	r1, [r6, #4]
	ldm	r3, {r2, ip}
	add	r0, sp, #4
	str	ip, [sp, #8]
	bl	memcpy
	mov	r2, r4
	ldr	r0, [r6]
	add	r1, sp, #4
	bl	dev_set_mac_address
	b	.L6
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	IFF_MACVLAN_PORT
	.size	macvlan_port_destroy, .-macvlan_port_destroy
	.comm	IFF_MACVLAN_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
