	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_get_drvinfo
_hns3_get_drvinfo:                      ## @hns3_get_drvinfo
	.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, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	movq	_hns3_driver_version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_strncpy
	movq	(%r12), %rax
	movb	$0, 7(%rax)
	movq	8(%r12), %rdi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_strncpy
	movq	8(%r12), %rax
	movb	$0, 7(%rax)
	movq	16(%r12), %rbx
	movq	8(%r14), %rdi
	callq	_pci_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_strncpy
	movq	16(%r12), %rax
	movq	_ETHTOOL_BUSINFO_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	movl	24(%r12), %r14d
	movq	_HNAE3_FW_VERSION_BYTE3_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_FW_VERSION_BYTE3_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_hnae3_get_field
	movl	%eax, %r12d
	movq	_HNAE3_FW_VERSION_BYTE2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_FW_VERSION_BYTE2_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_hnae3_get_field
	movl	%eax, %r13d
	movq	_HNAE3_FW_VERSION_BYTE1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_FW_VERSION_BYTE1_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_hnae3_get_field
	movl	%eax, %ebx
	movq	_HNAE3_FW_VERSION_BYTE0_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNAE3_FW_VERSION_BYTE0_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_hnae3_get_field
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	callq	_snprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not get fw version!\n"

	.comm	_hns3_driver_version,4,2        ## @hns3_driver_version
	.comm	_ETHTOOL_BUSINFO_LEN,4,2        ## @ETHTOOL_BUSINFO_LEN
L_.str.1:                               ## @.str.1
	.asciz	"%lu.%lu.%lu.%lu"

	.comm	_HNAE3_FW_VERSION_BYTE3_MASK,4,2 ## @HNAE3_FW_VERSION_BYTE3_MASK
	.comm	_HNAE3_FW_VERSION_BYTE3_SHIFT,4,2 ## @HNAE3_FW_VERSION_BYTE3_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE2_MASK,4,2 ## @HNAE3_FW_VERSION_BYTE2_MASK
	.comm	_HNAE3_FW_VERSION_BYTE2_SHIFT,4,2 ## @HNAE3_FW_VERSION_BYTE2_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE1_MASK,4,2 ## @HNAE3_FW_VERSION_BYTE1_MASK
	.comm	_HNAE3_FW_VERSION_BYTE1_SHIFT,4,2 ## @HNAE3_FW_VERSION_BYTE1_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE0_MASK,4,2 ## @HNAE3_FW_VERSION_BYTE0_MASK
	.comm	_HNAE3_FW_VERSION_BYTE0_SHIFT,4,2 ## @HNAE3_FW_VERSION_BYTE0_SHIFT
	.no_dead_strip	_hns3_get_drvinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_get_drvinfo
_hns3_get_drvinfo:                      ; @hns3_get_drvinfo
	.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	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	ldr	x20, [x0]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _hns3_driver_version@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hns3_driver_version@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x19]
	strb	wzr, [x8, #7]
	ldr	x0, [x19, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x19, #8]
	strb	wzr, [x8, #7]
	ldr	x22, [x19, #16]
	ldr	x0, [x20, #8]
	bl	_pci_name
	mov	x1, x0
	mov	x0, x22
	mov	w2, #8
	bl	_strncpy
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _ETHTOOL_BUSINFO_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETHTOOL_BUSINFO_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x20, x0
	ldr	w19, [x19, #24]
Lloh6:
	adrp	x8, _HNAE3_FW_VERSION_BYTE3_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE3_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HNAE3_FW_VERSION_BYTE3_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE3_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_hnae3_get_field
	mov	x21, x0
Lloh12:
	adrp	x8, _HNAE3_FW_VERSION_BYTE2_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE2_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _HNAE3_FW_VERSION_BYTE2_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE2_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae3_get_field
	mov	x22, x0
Lloh18:
	adrp	x8, _HNAE3_FW_VERSION_BYTE1_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE1_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _HNAE3_FW_VERSION_BYTE1_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE1_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae3_get_field
	mov	x23, x0
Lloh24:
	adrp	x8, _HNAE3_FW_VERSION_BYTE0_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE0_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _HNAE3_FW_VERSION_BYTE0_SHIFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HNAE3_FW_VERSION_BYTE0_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hnae3_get_field
	mov	x6, x0
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #4
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	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
	b	_snprintf
LBB0_2:
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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
	b	_netdev_err
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not get fw version!\n"

	.comm	_hns3_driver_version,4,2        ; @hns3_driver_version
	.comm	_ETHTOOL_BUSINFO_LEN,4,2        ; @ETHTOOL_BUSINFO_LEN
l_.str.1:                               ; @.str.1
	.asciz	"%lu.%lu.%lu.%lu"

	.comm	_HNAE3_FW_VERSION_BYTE3_MASK,4,2 ; @HNAE3_FW_VERSION_BYTE3_MASK
	.comm	_HNAE3_FW_VERSION_BYTE3_SHIFT,4,2 ; @HNAE3_FW_VERSION_BYTE3_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE2_MASK,4,2 ; @HNAE3_FW_VERSION_BYTE2_MASK
	.comm	_HNAE3_FW_VERSION_BYTE2_SHIFT,4,2 ; @HNAE3_FW_VERSION_BYTE2_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE1_MASK,4,2 ; @HNAE3_FW_VERSION_BYTE1_MASK
	.comm	_HNAE3_FW_VERSION_BYTE1_SHIFT,4,2 ; @HNAE3_FW_VERSION_BYTE1_SHIFT
	.comm	_HNAE3_FW_VERSION_BYTE0_MASK,4,2 ; @HNAE3_FW_VERSION_BYTE0_MASK
	.comm	_HNAE3_FW_VERSION_BYTE0_SHIFT,4,2 ; @HNAE3_FW_VERSION_BYTE0_SHIFT
	.no_dead_strip	_hns3_get_drvinfo
.subsections_via_symbols
