	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_delete_all_resources_for_slave ## -- Begin function mlx4_delete_all_resources_for_slave
	.p2align	4, 0x90
_mlx4_delete_all_resources_for_slave:   ## @mlx4_delete_all_resources_for_slave
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mlx4_reset_roce_gids
	movslq	%ebx, %rbx
	leaq	(,%rbx,4), %r15
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_vlans
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_macs
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_fs_rule
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_qps
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_srqs
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_cqs
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_mrs
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_eqs
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_mtts
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_counters
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rem_slave_xrcdns
	addq	(%r14), %r15
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_delete_all_resources_for_slave ; -- Begin function mlx4_delete_all_resources_for_slave
	.p2align	2
_mlx4_delete_all_resources_for_slave:   ; @mlx4_delete_all_resources_for_slave
	.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	x19, x1
	mov	x20, x0
	bl	_mlx4_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_reset_roce_gids
	ldr	x8, [x21]
	sbfiz	x22, x19, #2, #32
	add	x0, x8, x22
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_vlans
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_macs
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_fs_rule
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_qps
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_srqs
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_cqs
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_mrs
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_eqs
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_mtts
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_counters
	mov	x0, x20
	mov	x1, x19
	bl	_rem_slave_xrcdns
	ldr	x8, [x21]
	add	x0, x8, x22
	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	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
