	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_unbind_slave_port
_mlx5_ib_unbind_slave_port:             ## @mlx5_ib_unbind_slave_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_mlx5_core_native_port_num
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %r13
	movq	(%r15), %rbx
	movq	_mlx5_ib_multiport_mutex@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mlx5_ib_cleanup_cong_debugfs
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 32(%r14)
	movq	%r12, %rdi
	callq	_spin_unlock
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.2:
	leaq	24(%r14), %rsi
	movl	8(%r14), %edi
	callq	_mlx5_notifier_unregister
LBB0_3:
	movq	$0, 24(%r14)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mlx5_remove_netdev_notifier
	movq	%r12, %rdi
	callq	_spin_lock
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movl	$1, 4(%r14)
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_init_completion
	movq	%r12, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_wait_for_completion
	decl	%ebx
	jne	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	callq	_spin_lock
	movl	$0, 4(%r14)
LBB0_7:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 16(%rax,%r13,8)
	leaq	12(%r14), %rdi
	movq	_mlx5_ib_unaffiliated_port_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	8(%r14), %edi
	callq	_mlx5_nic_vport_unaffiliate_multiport
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mlx5_ib_dbg
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_mlx5_ib_err
LBB0_9:
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r13,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ## @mlx5_ib_multiport_mutex
	.comm	_mlx5_ib_unaffiliated_port_list,4,2 ## @mlx5_ib_unaffiliated_port_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unaffiliated port %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to unaffiliate port %u\n"

	.comm	_IB_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.no_dead_strip	_mlx5_ib_unbind_slave_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_unbind_slave_port
_mlx5_ib_unbind_slave_port:             ; @mlx5_ib_unbind_slave_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_mlx5_core_native_port_num
	mov	x21, x0
	sub	x20, x0, #1
	ldr	x25, [x19]
Lloh0:
	adrp	x0, _mlx5_ib_multiport_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mlx5_ib_multiport_mutex@GOTPAGEOFF]
	bl	_lockdep_assert_held
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_ib_cleanup_cong_debugfs
	mov	w8, #24
	madd	x8, x20, x8, x25
	add	x23, x8, #8
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_10
; %bb.1:
	str	xzr, [x22, #32]
	mov	x0, x23
	bl	_spin_unlock
	mov	x1, x22
	ldr	x8, [x1, #24]!
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x22, #8]
	bl	_mlx5_notifier_unregister
LBB0_3:
	str	xzr, [x22, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_remove_netdev_notifier
	mov	x0, x23
	bl	_spin_lock
	ldr	w26, [x22]
	cbz	w26, LBB0_7
; %bb.4:
	mov	w8, #1
	str	w8, [x22, #4]
	add	x24, x22, #16
	mov	x0, x24
	bl	_init_completion
	mov	x0, x23
	bl	_spin_unlock
	cmp	w26, #1
	b.lt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_wait_for_completion
	subs	w26, w26, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x23
	bl	_spin_lock
	str	wzr, [x22, #4]
LBB0_7:
	mov	w8, #24
	madd	x8, x20, x8, x25
	str	xzr, [x8, #16]
	add	x0, x22, #12
Lloh2:
	adrp	x1, _mlx5_ib_unaffiliated_port_list@GOTPAGE
Lloh3:
	ldr	x1, [x1, _mlx5_ib_unaffiliated_port_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock
	ldr	w0, [x22, #8]
	bl	_mlx5_nic_vport_unaffiliate_multiport
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5_ib_dbg
	cbz	w22, LBB0_9
; %bb.8:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5_ib_err
LBB0_9:
Lloh8:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19]
	mov	w10, #24
	mul	x10, x20, x10
	str	w8, [x9, x10]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ; @mlx5_ib_multiport_mutex
	.comm	_mlx5_ib_unaffiliated_port_list,4,2 ; @mlx5_ib_unaffiliated_port_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unaffiliated port %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to unaffiliate port %u\n"

	.comm	_IB_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.no_dead_strip	_mlx5_ib_unbind_slave_port
.subsections_via_symbols
