	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_set_link_ksettings
_hns_nic_set_link_ksettings:            ## @hns_nic_set_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	%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, %r13
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r14), %r12
	movq	(%r15), %rcx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.8:
	movq	8(%r14), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.9:
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_12
## %bb.10:
	movl	16(%r14), %ecx
LBB0_11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
LBB0_23:
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	callq	_netif_carrier_off
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movq	%r13, %rdi
	callq	_netif_carrier_on
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rcx
LBB0_26:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_25
## %bb.14:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	jne	LBB0_16
## %bb.15:
	movq	8(%r14), %rcx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
LBB0_16:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r12
	jne	LBB0_18
## %bb.17:
	movl	16(%r14), %edx
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_12
LBB0_18:
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.28:
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_ethtool_ksettings_set      ## TAILCALL
LBB0_25:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_19:
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	je	LBB0_22
## %bb.20:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	je	LBB0_22
## %bb.21:
	cmpq	%rcx, %r12
	je	LBB0_22
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_22:
	movl	16(%r14), %ecx
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_11
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not supported!"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_hns_nic_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_set_link_ksettings
_hns_nic_set_link_ksettings:            ; @hns_nic_set_link_ksettings
	.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, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_12
; %bb.1:
	cbz	x21, LBB0_11
; %bb.2:
	ldr	x21, [x21]
	cbz	x21, LBB0_11
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x22, [x20]
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.6:
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _SPEED_10000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SPEED_10000@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x22, x11, #0, ne
	b.ne	LBB0_26
; %bb.7:
	ldr	w9, [x20, #16]
LBB0_8:
Lloh9:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_26
LBB0_9:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.10:
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x0, x19
	bl	_netif_carrier_on
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _ESRCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
LBB0_15:
Lloh16:
	adrp	x10, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.16:
	ldr	x0, [x19]
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	x9, [x20, #8]
Lloh19:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_26
LBB0_18:
Lloh22:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x22, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	w10, [x20, #16]
Lloh25:
	adrp	x11, _DUPLEX_HALF@GOTPAGE
Lloh26:
	ldr	x11, [x11, _DUPLEX_HALF@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	cmp	w10, w11
	b.eq	LBB0_26
LBB0_20:
	cbz	x0, LBB0_23
; %bb.21:
	mov	x1, x20
	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
	b	_phy_ethtool_ksettings_set
LBB0_22:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh30:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_23:
Lloh32:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x22, x10
	b.eq	LBB0_27
; %bb.24:
Lloh35:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh36:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x22, x10
	b.eq	LBB0_27
; %bb.25:
	cmp	x22, x9
	b.eq	LBB0_27
LBB0_26:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_27:
	ldr	w9, [x20, #16]
Lloh40:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh41:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not supported!"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_hns_nic_set_link_ksettings
.subsections_via_symbols
