	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_set_mac
_hns_roce_v1_set_mac:                   ## @hns_roce_v1_set_mac
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_hns_roce_v1_recreate_lp_qp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	movq	_ROCEE_SMAC_L_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r12), %rax
	movq	_PHY_PORT_OFFSET@GOTPCREL(%rip), %r13
	movslq	(%r13), %rsi
	movslq	%r15d, %r15
	imulq	%r15, %rsi
	addq	%rax, %rsi
	callq	_roce_raw_write
	movq	_ROCEE_SMAC_H_0_REG@GOTPCREL(%rip), %rax
	movslq	(%r13), %rsi
	imulq	%r15, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, %ebx
	movl	16(%r14), %ecx
	movq	_ROCEE_SMAC_H_ROCEE_SMAC_H_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ROCEE_SMAC_H_ROCEE_SMAC_H_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_roce_set_field
	movl	%ebx, %edi
	callq	_le32_to_cpu
	movslq	(%r13), %rsi
	imulq	%r15, %rsi
	movq	_ROCEE_SMAC_H_0_REG@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_roce_write
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ROCEE_SMAC_L_0_REG,8,3         ## @ROCEE_SMAC_L_0_REG
	.comm	_PHY_PORT_OFFSET,4,2            ## @PHY_PORT_OFFSET
	.comm	_ROCEE_SMAC_H_0_REG,8,3         ## @ROCEE_SMAC_H_0_REG
	.comm	_ROCEE_SMAC_H_ROCEE_SMAC_H_M,4,2 ## @ROCEE_SMAC_H_ROCEE_SMAC_H_M
	.comm	_ROCEE_SMAC_H_ROCEE_SMAC_H_S,4,2 ## @ROCEE_SMAC_H_ROCEE_SMAC_H_S
	.no_dead_strip	_hns_roce_v1_set_mac
.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_mac
_hns_roce_v1_set_mac:                   ; @hns_roce_v1_set_mac
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_hns_roce_v1_recreate_lp_qp
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
LBB0_3:
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ROCEE_SMAC_L_0_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ROCEE_SMAC_L_0_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh6:
	adrp	x22, _PHY_PORT_OFFSET@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PHY_PORT_OFFSET@GOTPAGEOFF]
	ldrsw	x9, [x22]
	sxtw	x23, w21
	madd	x1, x9, x23, x8
	bl	_roce_raw_write
Lloh8:
	adrp	x24, _ROCEE_SMAC_H_0_REG@GOTPAGE
Lloh9:
	ldr	x24, [x24, _ROCEE_SMAC_H_0_REG@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrsw	x9, [x22]
	madd	x1, x9, x23, x8
	mov	x0, x19
	bl	_roce_read
	bl	_cpu_to_le32
	mov	x21, x0
	ldr	w3, [x20, #16]
Lloh10:
	adrp	x8, _ROCEE_SMAC_H_ROCEE_SMAC_H_M@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ROCEE_SMAC_H_ROCEE_SMAC_H_M@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _ROCEE_SMAC_H_ROCEE_SMAC_H_S@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ROCEE_SMAC_H_ROCEE_SMAC_H_S@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_roce_set_field
	mov	x0, x21
	bl	_le32_to_cpu
	mov	x2, x0
	ldr	x8, [x24]
	ldrsw	x9, [x22]
	madd	x1, x9, x23, x8
	mov	x0, x19
	bl	_roce_write
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ROCEE_SMAC_L_0_REG,8,3         ; @ROCEE_SMAC_L_0_REG
	.comm	_PHY_PORT_OFFSET,4,2            ; @PHY_PORT_OFFSET
	.comm	_ROCEE_SMAC_H_0_REG,8,3         ; @ROCEE_SMAC_H_0_REG
	.comm	_ROCEE_SMAC_H_ROCEE_SMAC_H_M,4,2 ; @ROCEE_SMAC_H_ROCEE_SMAC_H_M
	.comm	_ROCEE_SMAC_H_ROCEE_SMAC_H_S,4,2 ; @ROCEE_SMAC_H_ROCEE_SMAC_H_S
	.no_dead_strip	_hns_roce_v1_set_mac
.subsections_via_symbols
