	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_del_gid
_mlx4_ib_del_gid:                       ## @mlx4_ib_del_gid
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rsi), %rbx
	movl	4(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r14
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_rdma_cap_roce_gid_table
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	(%r12), %r13
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	8(%r14), %r15
	movq	%r14, %rdi
	callq	_spin_lock_bh
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	decl	4(%rbx)
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %ebx
	movq	-8(%r15,%r13,8), %rax
	shlq	$4, %rbx
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-8(%r15,%r13,8), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_kfree
	movq	-8(%r15,%r13,8), %rax
	movq	$0, 8(%rax,%rbx)
	movq	_MLX4_MAX_PORT_GIDS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.8:
	movq	%rbx, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-8(%rax,%r13,8), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rbx
	movl	$4, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movq	%r13, %r12
	movq	%rcx, %r13
	callq	_memcpy
	movq	%r13, %rcx
	movq	%r12, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-8(%rax,%r12,8), %rsi
	movl	-4(%rsi,%r15), %eax
	movl	%eax, -4(%rbx)
	incq	%r14
	movslq	(%rcx), %rax
	addq	$8, %rbx
	addq	$16, %r15
	cmpq	%rax, %r14
	jl	LBB0_9
LBB0_10:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_11:
	movl	(%r12), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx4_ib_update_gids
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_15
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.13:
	negl	%ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_MAX_PORTS,4,2             ## @MLX4_MAX_PORTS
	.comm	_MLX4_MAX_PORT_GIDS,4,2         ## @MLX4_MAX_PORT_GIDS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx4_ib_del_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_del_gid
_mlx4_ib_del_gid:                       ; @mlx4_ib_del_gid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x1]
	ldr	w0, [x0, #4]
	bl	_to_mdev
	mov	x20, x0
	ldp	w1, w0, [x19]
	bl	_rdma_cap_roce_gid_table
	cbz	w0, LBB0_2
; %bb.1:
	ldrsw	x22, [x19]
Lloh0:
	adrp	x8, _MLX4_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldr	x23, [x20, #8]
	mov	x0, x20
	bl	_spin_lock_bh
	cbz	x21, LBB0_5
; %bb.4:
	ldr	w8, [x21, #4]
	subs	w8, w8, #1
	str	w8, [x21, #4]
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	sub	x24, x22, #1
	ldr	w8, [x21]
	lsl	x21, x24, #3
	ldr	x9, [x23, x21]
	lsl	x22, x8, #4
	add	x8, x9, x22
	add	x0, x8, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x23, x21]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x23, x21]
	add	x8, x8, x22
	str	xzr, [x8, #8]
Lloh6:
	adrp	x25, _MLX4_MAX_PORT_GIDS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MLX4_MAX_PORT_GIDS@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kmalloc_array
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x26, #0
	mov	x27, #0
	ldr	x8, [x23, x24, lsl #3]
	add	x22, x21, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x26
	add	x1, x8, #4
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x23, x24, lsl #3]
	ldr	w9, [x8, x26]
	stur	w9, [x22, #-4]
	add	x27, x27, #1
	ldrsw	x9, [x25]
	add	x22, x22, #8
	add	x26, x26, #16
	cmp	x27, x9
	b.lt	LBB0_10
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_12:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_ib_update_gids
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_6
LBB0_13:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_spin_unlock_bh
	cbz	w22, LBB0_12
; %bb.14:
	neg	w0, w22
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_MAX_PORTS,4,2             ; @MLX4_MAX_PORTS
	.comm	_MLX4_MAX_PORT_GIDS,4,2         ; @MLX4_MAX_PORT_GIDS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx4_ib_del_gid
.subsections_via_symbols
