	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_get_link_ksettings
_hns3_get_link_ksettings:               ## @hns3_get_link_ksettings
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_hns3_get_handle
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*%rax
	movl	-28(%rbp), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_4:
	movl	-32(%rbp), %eax
	movq	_HNAE3_MODULE_TYPE_CR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_PORT_DA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_warn
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.12:
	movq	%r14, %rsi
	callq	_phy_ethtool_ksettings_get
	jmp	LBB0_13
LBB0_5:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_hns3_get_ksettings
LBB0_13:
	movq	_ETH_MDIO_SUPPORTS_C22@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_hns3_get_link
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.14:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_PORT_NONE,8,3                  ## @PORT_NONE
	.comm	_HNAE3_MODULE_TYPE_CR,4,2       ## @HNAE3_MODULE_TYPE_CR
	.comm	_PORT_DA,8,3                    ## @PORT_DA
	.comm	_PORT_FIBRE,8,3                 ## @PORT_FIBRE
	.comm	_PORT_TP,8,3                    ## @PORT_TP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown media type"

	.comm	_ETH_MDIO_SUPPORTS_C22,4,2      ## @ETH_MDIO_SUPPORTS_C22
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_hns3_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_get_link_ksettings
_hns3_get_link_ksettings:               ; @hns3_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_hns3_get_handle
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x1, sp, #8
	add	x2, sp, #12
	blr	x8
	ldr	w8, [sp, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _HNAE3_MODULE_TYPE_CR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HNAE3_MODULE_TYPE_CR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _PORT_DA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PORT_DA@GOTPAGEOFF]
Lloh14:
	adrp	x11, _PORT_FIBRE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PORT_FIBRE@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_hns3_get_ksettings
LBB0_9:
Lloh16:
	adrp	x8, _ETH_MDIO_SUPPORTS_C22@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_MDIO_SUPPORTS_C22@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_hns3_get_link
	cbz	w0, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh25:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w0, [x20]
	cbz	w0, LBB0_8
; %bb.14:
	mov	x1, x19
	bl	_phy_ethtool_ksettings_get
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_PORT_NONE,8,3                  ; @PORT_NONE
	.comm	_HNAE3_MODULE_TYPE_CR,4,2       ; @HNAE3_MODULE_TYPE_CR
	.comm	_PORT_DA,8,3                    ; @PORT_DA
	.comm	_PORT_FIBRE,8,3                 ; @PORT_FIBRE
	.comm	_PORT_TP,8,3                    ; @PORT_TP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown media type"

	.comm	_ETH_MDIO_SUPPORTS_C22,4,2      ; @ETH_MDIO_SUPPORTS_C22
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_hns3_get_link_ksettings
.subsections_via_symbols
