	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_sfp_info
_hclge_get_sfp_info:                    ## @hclge_get_sfp_info
	.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, %r14
	movq	%rdi, %rbx
	movq	_HCLGE_OPC_GET_SFP_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-48(%rbp), %r12
	movq	_QUERY_ACTIVE_SPEED@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 40(%r12)
	leaq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %r15d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	jmp	LBB0_9
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	32(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rax, 40(%r14)
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.5:
	movq	24(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rax, 32(%r14)
	movq	16(%r12), %rdi
	callq	_le32_to_cpu
	movq	%rax, 24(%r14)
	movl	8(%r12), %eax
	movl	%eax, 16(%r14)
	movl	4(%r12), %eax
	movl	%eax, 12(%r14)
	movq	(%r13), %rax
	movq	%rax, (%r14)
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.7:
	callq	_BIT
	movl	%eax, 8(%r14)
	jmp	LBB0_9
LBB0_8:
	movq	_QUERY_SFP_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_9
LBB0_6:
	movl	$0, 8(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_GET_SFP_INFO,4,2     ## @HCLGE_OPC_GET_SFP_INFO
	.comm	_QUERY_ACTIVE_SPEED,8,3         ## @QUERY_ACTIVE_SPEED
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IMP does not support get SFP info %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"get sfp info failed %d\n"

	.comm	_QUERY_SFP_SPEED,8,3            ## @QUERY_SFP_SPEED
	.no_dead_strip	_hclge_get_sfp_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_sfp_info
_hclge_get_sfp_info:                    ; @hclge_get_sfp_info
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_GET_SFP_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_GET_SFP_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	x22, [sp, #8]
Lloh3:
	adrp	x23, _QUERY_ACTIVE_SPEED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _QUERY_ACTIVE_SPEED@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x22, #40]
	add	x0, x21, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x19, x0
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	b	LBB0_4
LBB0_2:
	cbz	w19, LBB0_5
; %bb.3:
	ldr	x0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
	ldr	x0, [x22, #32]
	bl	_le32_to_cpu
	str	x0, [x20, #40]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x22, #24]
	bl	_le32_to_cpu
	str	x0, [x20, #32]
	ldr	x0, [x22, #16]
	bl	_le32_to_cpu
	str	x0, [x20, #24]
	ldur	d0, [x22, #4]
	stur	d0, [x20, #12]
	ldr	x8, [x23]
	str	x8, [x20]
	ldr	w0, [x22]
	cbz	w0, LBB0_9
; %bb.7:
	bl	_BIT
	str	w0, [x20, #8]
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _QUERY_SFP_SPEED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QUERY_SFP_SPEED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_4
LBB0_9:
	str	wzr, [x20, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_GET_SFP_INFO,4,2     ; @HCLGE_OPC_GET_SFP_INFO
	.comm	_QUERY_ACTIVE_SPEED,8,3         ; @QUERY_ACTIVE_SPEED
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IMP does not support get SFP info %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"get sfp info failed %d\n"

	.comm	_QUERY_SFP_SPEED,8,3            ; @QUERY_SFP_SPEED
	.no_dead_strip	_hclge_get_sfp_info
.subsections_via_symbols
