	.file	"extr_main.c_mlx5_ib_unbind_slave_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unaffiliated port %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to unaffiliate port %u\n"
	.text
	.p2align 4
	.type	mlx5_ib_unbind_slave_port, @function
mlx5_ib_unbind_slave_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 8[rsi]
	call	mlx5_core_native_port_num@PLT
	lea	rdi, mlx5_ib_multiport_mutex[rip]
	lea	r14, -1[rax]
	mov	r13, rax
	lea	rax, [r14+r14*2]
	sal	rax, 3
	mov	QWORD PTR 24[rsp], rax
	add	rax, QWORD PTR 0[rbp]
	mov	r15, rax
	mov	QWORD PTR 16[rsp], rax
	call	lockdep_assert_held@PLT
	lea	r12, 8[r15]
	mov	rsi, r14
	mov	rdi, rbp
	call	mlx5_ib_cleanup_cong_debugfs@PLT
	mov	rdi, r12
	call	spin_lock@PLT
	cmp	QWORD PTR 32[rbx], 0
	je	.L17
	mov	QWORD PTR 32[rbx], 0
	mov	rdi, r12
	call	spin_unlock@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L3
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, 24[rbx]
	call	mlx5_notifier_unregister@PLT
.L3:
	mov	QWORD PTR 24[rbx], 0
	mov	rsi, r14
	mov	rdi, rbp
	call	mlx5_remove_netdev_notifier@PLT
	mov	rdi, r12
	call	spin_lock@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L18
.L4:
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, mlx5_ib_unaffiliated_port_list[rip]
	lea	rdi, 12[rbx]
	mov	QWORD PTR 16[rax], 0
	call	list_add_tail@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	mlx5_nic_vport_unaffiliate_multiport@PLT
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	mlx5_ib_dbg@PLT
	test	ebx, ebx
	jne	.L19
.L7:
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR IB_PORT_DOWN[rip]
	mov	rcx, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax+rcx], edx
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mlx5_ib_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR 4[rbx], 1
	lea	r15, 16[rbx]
	mov	rdi, r15
	call	init_completion@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jle	.L5
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	add	r14d, 1
	call	wait_for_completion@PLT
	cmp	DWORD PTR 12[rsp], r14d
	jne	.L6
.L5:
	mov	rdi, r12
	call	spin_lock@PLT
	mov	DWORD PTR 4[rbx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_ib_unbind_slave_port, .-mlx5_ib_unbind_slave_port
	.comm	mlx5_ib_unaffiliated_port_list,4,4
	.comm	mlx5_ib_multiport_mutex,4,4
	.comm	IB_PORT_DOWN,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_main.c_mlx5_ib_unbind_slave_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unaffiliated port %d\012\000"
	.align	2
.LC1:
	.ascii	"Failed to unaffiliate port %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_ib_unbind_slave_port, %function
mlx5_ib_unbind_slave_port:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r0, [r1, #8]
	mov	r4, r1
	bl	mlx5_core_native_port_num
	ldr	r9, [r6]
	sub	r10, r0, #1
	add	r3, r10, r10, lsl #1
	add	r9, r9, r3, lsl #2
	mov	r8, r0
	lsl	r3, r3, #2
	ldr	r0, .L23
	str	r3, [sp, #4]
	add	r7, r9, #4
	bl	lockdep_assert_held
	mov	r1, r10
	mov	r0, r6
	bl	mlx5_ib_cleanup_cong_debugfs
	mov	r0, r7
	bl	spin_lock
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	mov	r0, r7
	str	r3, [r4, #24]
	bl	spin_unlock
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r4, #8]
	add	r1, r4, #20
	bl	mlx5_notifier_unregister
.L3:
	mov	r5, #0
	mov	r1, r10
	mov	r0, r6
	str	r5, [r4, #20]
	bl	mlx5_remove_netdev_notifier
	mov	r0, r7
	bl	spin_lock
	ldr	r10, [r4]
	cmp	r10, r5
	bne	.L21
.L4:
	mov	r3, #0
	ldr	r1, .L23+4
	str	r3, [r9, #8]
	add	r0, r4, #12
	bl	list_add_tail
	mov	r0, r7
	bl	spin_unlock
	ldr	r0, [r4, #8]
	bl	mlx5_nic_vport_unaffiliate_multiport
	mov	r4, r0
	mov	r2, r8
	mov	r0, r6
	ldr	r1, .L23+8
	bl	mlx5_ib_dbg
	cmp	r4, #0
	bne	.L22
.L7:
	ldr	r2, .L23+12
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r1, [sp, #4]
	str	r2, [r3, r1]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r2, r8
	mov	r0, r6
	ldr	r1, .L23+16
	bl	mlx5_ib_err
	b	.L7
.L21:
	mov	r3, #1
	add	fp, r4, #16
	str	r3, [r4, #4]
	mov	r0, fp
	bl	init_completion
	mov	r0, r7
	bl	spin_unlock
	cmp	r10, r5
	ble	.L5
.L6:
	mov	r0, fp
	add	r5, r5, #1
	bl	wait_for_completion
	cmp	r10, r5
	bne	.L6
.L5:
	mov	r0, r7
	bl	spin_lock
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L4
.L20:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock
.L24:
	.align	2
.L23:
	.word	mlx5_ib_multiport_mutex
	.word	mlx5_ib_unaffiliated_port_list
	.word	.LC0
	.word	IB_PORT_DOWN
	.word	.LC1
	.size	mlx5_ib_unbind_slave_port, .-mlx5_ib_unbind_slave_port
	.comm	mlx5_ib_unaffiliated_port_list,4,4
	.comm	mlx5_ib_multiport_mutex,4,4
	.comm	IB_PORT_DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
