	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_del_gid                ## -- Begin function bnxt_re_del_gid
	.p2align	4, 0x90
_bnxt_re_del_gid:                       ## @bnxt_re_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movq	_ibdev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_to_bnxt_re_dev
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, 32(%rax)
	je	LBB0_12
## %bb.2:
	movq	%r14, %r12
	addq	$8, %r12
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jae	LBB0_12
## %bb.3:
	movq	24(%r14), %rcx
	leaq	(%rcx,%rax,8), %r13
	addq	$4, %r13
	movl	(%rcx,%rax,8), %edx
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	xorl	%ebx, %ebx
	decl	8(%r15)
	jne	LBB0_14
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_bnxt_qplib_del_sgid
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, %rdi
	movl	%edx, %ebx
	callq	_rdma_link_local_addr
	movl	%ebx, %edx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpl	$1, 8(%r15)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	16(%r14), %rax
	movq	(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ibdev,4,2                      ## @ibdev
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to delete GID0 while QP1 is alive\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to remove GID: %#x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_del_gid                ; -- Begin function bnxt_re_del_gid
	.p2align	2
_bnxt_re_del_gid:                       ; @bnxt_re_del_gid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ibdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ibdev@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_to_bnxt_re_dev
	ldr	x20, [x20]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.2:
	add	x21, x19, #8
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.3:
	ldr	x9, [x19, #24]
	add	x22, x9, x8, lsl #3
	ldr	w23, [x22], #4
	cbz	x8, LBB0_9
LBB0_4:
	ldr	w8, [x20, #8]
	subs	w8, w8, #1
	str	w8, [x20, #8]
	b.eq	LBB0_13
; %bb.5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x22
	bl	_rdma_link_local_addr
	cbz	x0, LBB0_4
; %bb.10:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.11:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.12:
	mov	x0, x19
	bl	_rdev_to_dev
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w3, #1
	bl	_bnxt_qplib_del_sgid
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_rdev_to_dev
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_8
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ibdev,4,2                      ; @ibdev
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to delete GID0 while QP1 is alive\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to remove GID: %#x"

.subsections_via_symbols
