	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_add_gid                ## -- Begin function bnxt_re_add_gid
	.p2align	4, 0x90
_bnxt_re_add_gid:                       ## @bnxt_re_add_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movl	$65535, -44(%rbp)               ## imm = 0xFFFF
	movl	4(%rdi), %edi
	movq	_ibdev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_to_bnxt_re_dev
	movq	%rax, %r15
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rdma_read_gid_l2_fields
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%r15, %r12
	addq	$8, %r12
	movq	(%r15), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	leaq	-56(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	callq	_bnxt_qplib_add_sgid
	movl	%eax, %r13d
	movq	_EALREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movq	-56(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	incl	(%rax)
	movq	%rax, (%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_3:
	testl	%r13d, %r13d
	js	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rcx
	movq	-56(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movl	$1, (%rax)
	movq	%rax, (%rcx,%rdx,8)
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ibdev,4,2                      ## @ibdev
	.comm	_EALREADY,4,2                   ## @EALREADY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add GID: %#x"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_re_add_gid                ; -- Begin function bnxt_re_add_gid
	.p2align	2
_bnxt_re_add_gid:                       ; @bnxt_re_add_gid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	mov	w8, #65535
	str	w8, [sp, #4]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _ibdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ibdev@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_to_bnxt_re_dev
	mov	x21, x0
	add	x1, sp, #4
	mov	x0, x22
	mov	x2, #0
	bl	_rdma_read_gid_l2_fields
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	add	x23, x21, #8
	ldr	x8, [x21]
	ldr	w2, [x8]
	ldr	w3, [sp, #4]
	add	x5, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	w4, #1
	bl	_bnxt_qplib_add_sgid
Lloh3:
	adrp	x8, _EALREADY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	ldr	x8, [x23]
	ldr	x9, [sp, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x8, [x19]
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x23]
	ldr	x9, [sp, #8]
	str	x9, [x0, #8]
	mov	w10, #1
	str	w10, [x0]
	str	x0, [x8, x9, lsl #3]
	str	x0, [x19]
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_rdev_to_dev
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ibdev,4,2                      ; @ibdev
	.comm	_EALREADY,4,2                   ; @EALREADY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add GID: %#x"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
