	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_set_gid
_hns_roce_v1_set_gid:                   ## @hns_roce_v1_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	callq	_hns_get_gid_index
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ROCEE_PORT_GID_L_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rbx), %rax
	movq	_HNS_ROCE_V1_GID_NUM@GOTPCREL(%rip), %r12
	movslq	(%r12), %rsi
	movslq	%r15d, %r15
	imulq	%r15, %rsi
	addq	%rax, %rsi
	callq	_roce_raw_write
	movq	(%r14), %rax
	movq	_ROCEE_PORT_GID_ML_0_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	8(%rbx), %rcx
	movl	16(%rax), %edi
	movslq	(%r12), %rsi
	imulq	%r15, %rsi
	addq	%rcx, %rsi
	callq	_roce_raw_write
	movq	(%r14), %rax
	movq	_ROCEE_PORT_GID_MH_0_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	8(%rbx), %rcx
	movl	32(%rax), %edi
	movslq	(%r12), %rsi
	imulq	%r15, %rsi
	addq	%rcx, %rsi
	callq	_roce_raw_write
	movq	(%r14), %rax
	movq	_ROCEE_PORT_GID_H_0_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	8(%rbx), %rcx
	movl	48(%rax), %edi
	movslq	(%r12), %rsi
	imulq	%r15, %rsi
	addq	%rcx, %rsi
	callq	_roce_raw_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCEE_PORT_GID_L_0_REG,8,3     ## @ROCEE_PORT_GID_L_0_REG
	.comm	_HNS_ROCE_V1_GID_NUM,4,2        ## @HNS_ROCE_V1_GID_NUM
	.comm	_ROCEE_PORT_GID_ML_0_REG,8,3    ## @ROCEE_PORT_GID_ML_0_REG
	.comm	_ROCEE_PORT_GID_MH_0_REG,8,3    ## @ROCEE_PORT_GID_MH_0_REG
	.comm	_ROCEE_PORT_GID_H_0_REG,8,3     ## @ROCEE_PORT_GID_H_0_REG
	.no_dead_strip	_hns_roce_v1_set_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v1_set_gid
_hns_roce_v1_set_gid:                   ; @hns_roce_v1_set_gid
	.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, x3
	mov	x19, x0
	bl	_hns_get_gid_index
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _ROCEE_PORT_GID_L_0_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ROCEE_PORT_GID_L_0_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh3:
	adrp	x22, _HNS_ROCE_V1_GID_NUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HNS_ROCE_V1_GID_NUM@GOTPAGEOFF]
	ldrsw	x9, [x22]
	sxtw	x21, w21
	madd	x1, x9, x21, x8
	bl	_roce_raw_write
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _ROCEE_PORT_GID_ML_0_REG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ROCEE_PORT_GID_ML_0_REG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldrsw	x9, [x22]
	madd	x1, x9, x21, x8
	bl	_roce_raw_write
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _ROCEE_PORT_GID_MH_0_REG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ROCEE_PORT_GID_MH_0_REG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldrsw	x9, [x22]
	madd	x1, x9, x21, x8
	bl	_roce_raw_write
	ldr	x8, [x20]
	ldr	w0, [x8, #48]
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _ROCEE_PORT_GID_H_0_REG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ROCEE_PORT_GID_H_0_REG@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldrsw	x9, [x22]
	madd	x1, x9, x21, x8
	bl	_roce_raw_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCEE_PORT_GID_L_0_REG,8,3     ; @ROCEE_PORT_GID_L_0_REG
	.comm	_HNS_ROCE_V1_GID_NUM,4,2        ; @HNS_ROCE_V1_GID_NUM
	.comm	_ROCEE_PORT_GID_ML_0_REG,8,3    ; @ROCEE_PORT_GID_ML_0_REG
	.comm	_ROCEE_PORT_GID_MH_0_REG,8,3    ; @ROCEE_PORT_GID_MH_0_REG
	.comm	_ROCEE_PORT_GID_H_0_REG,8,3     ; @ROCEE_PORT_GID_H_0_REG
	.no_dead_strip	_hns_roce_v1_set_gid
.subsections_via_symbols
