	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_vport_rep_unload
_mlx5_ib_vport_rep_unload:              ## @mlx5_ib_vport_rep_unload
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mlx5_ib_rep_to_dev
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	(%rbx), %rax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,8), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_write_lock
	movq	$0, 16(%r12,%r13,8)
	movq	%r15, %rdi
	callq	_write_unlock
	movq	16(%rbx), %rax
	movq	_REP_IB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	$0, (%r12,%r13,8)
	movq	8(%rbx), %rax
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	_MLX5_IB_STAGE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___mlx5_ib_remove               ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REP_IB,8,3                     ## @REP_IB
	.comm	_MLX5_VPORT_UPLINK,8,3          ## @MLX5_VPORT_UPLINK
	.comm	_MLX5_IB_STAGE_MAX,4,2          ## @MLX5_IB_STAGE_MAX
	.no_dead_strip	_mlx5_ib_vport_rep_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_vport_rep_unload
_mlx5_ib_vport_rep_unload:              ; @mlx5_ib_vport_rep_unload
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_mlx5_ib_rep_to_dev
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x22, x9, x10, x8
	add	x21, x22, #8
	mov	x0, x21
	bl	_write_lock
	str	xzr, [x22, #16]
	mov	x0, x21
	bl	_write_unlock
Lloh0:
	adrp	x8, _REP_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REP_IB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x10, x9, [x20, #8]
	str	xzr, [x9, x8, lsl #3]
	str	xzr, [x22]
Lloh3:
	adrp	x8, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _MLX5_IB_STAGE_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_IB_STAGE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___mlx5_ib_remove
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REP_IB,8,3                     ; @REP_IB
	.comm	_MLX5_VPORT_UPLINK,8,3          ; @MLX5_VPORT_UPLINK
	.comm	_MLX5_IB_STAGE_MAX,4,2          ; @MLX5_IB_STAGE_MAX
	.no_dead_strip	_mlx5_ib_vport_rep_unload
.subsections_via_symbols
