	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_remove
_mlx5_ib_remove:                        ## @mlx5_ib_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_MLX5_ESWITCH_MANAGER
	cmpq	%r14, %rbx
	jne	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mlx5_ib_unregister_vport_reps  ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_mlx5_core_is_mp_slave
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_mlx5_ib_multiport_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rsi
	callq	_mlx5_ib_unbind_slave_port
LBB0_5:
	movq	%r14, %rdi
	callq	_list_del
	movq	_mlx5_ib_multiport_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	movl	(%r14), %esi
	movq	_MLX5_IB_STAGE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___mlx5_ib_remove               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ## @mlx5_ib_multiport_mutex
	.comm	_MLX5_IB_STAGE_MAX,4,2          ## @MLX5_IB_STAGE_MAX
	.no_dead_strip	_mlx5_ib_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_remove
_mlx5_ib_remove:                        ; @mlx5_ib_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_MLX5_ESWITCH_MANAGER
	cmp	x20, x19
	b.ne	LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlx5_ib_unregister_vport_reps
LBB0_3:
	mov	x0, x20
	bl	_mlx5_core_is_mp_slave
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x0, _mlx5_ib_multiport_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mlx5_ib_multiport_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x19
	bl	_mlx5_ib_unbind_slave_port
LBB0_6:
	mov	x0, x19
	bl	_list_del
Lloh2:
	adrp	x0, _mlx5_ib_multiport_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mlx5_ib_multiport_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_7:
	ldr	w1, [x19]
Lloh4:
	adrp	x8, _MLX5_IB_STAGE_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_IB_STAGE_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___mlx5_ib_remove
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5_ib_multiport_mutex,4,2    ; @mlx5_ib_multiport_mutex
	.comm	_MLX5_IB_STAGE_MAX,4,2          ; @MLX5_IB_STAGE_MAX
	.no_dead_strip	_mlx5_ib_remove
.subsections_via_symbols
