	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_link_mode
_hclge_get_link_mode:                   ## @hclge_get_link_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BITS_TO_LONGS
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_hclge_get_vport
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.1:
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	%r15d, %r9d
	cmpl	$4, %r15d
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
LBB0_15:
	movq	%rsi, %rdx
	notq	%rdx
	testb	$1, %r9b
	je	LBB0_17
## %bb.16:
	movq	(%rax,%rsi,8), %rdi
	movq	%rdi, (%rbx,%rsi,8)
	movq	(%rcx,%rsi,8), %rdi
	movq	%rdi, (%r14,%rsi,8)
	orq	$1, %rsi
LBB0_17:
	addq	%r9, %rdx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdx
	movq	%rdx, (%rbx,%rsi,8)
	movq	(%rcx,%rsi,8), %rdx
	movq	%rdx, (%r14,%rsi,8)
	movq	8(%rax,%rsi,8), %rdx
	movq	%rdx, 8(%rbx,%rsi,8)
	movq	8(%rcx,%rsi,8), %rdx
	movq	%rdx, 8(%r14,%rsi,8)
	addq	$2, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_18
	jmp	LBB0_19
LBB0_3:
	movq	%r14, %rdx
	subq	%rbx, %rdx
	xorl	%esi, %esi
	cmpq	$32, %rdx
	jb	LBB0_15
## %bb.4:
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_15
## %bb.5:
	movq	%rcx, %rdx
	subq	%rbx, %rdx
	cmpq	$32, %rdx
	jb	LBB0_15
## %bb.6:
	movq	%r14, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_15
## %bb.7:
	movq	%r14, %rdx
	subq	%rcx, %rdx
	cmpq	$32, %rdx
	jb	LBB0_15
## %bb.8:
	movl	%r9d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rdi,8), %xmm0
	movups	16(%rax,%rdi,8), %xmm1
	movups	%xmm0, (%rbx,%rdi,8)
	movups	%xmm1, 16(%rbx,%rdi,8)
	movups	(%rcx,%rdi,8), %xmm0
	movups	16(%rcx,%rdi,8), %xmm1
	movups	%xmm0, (%r14,%rdi,8)
	movups	%xmm1, 16(%r14,%rdi,8)
	movups	32(%rax,%rdi,8), %xmm0
	movups	48(%rax,%rdi,8), %xmm1
	movups	%xmm0, 32(%rbx,%rdi,8)
	movups	%xmm1, 48(%rbx,%rdi,8)
	movups	32(%rcx,%rdi,8), %xmm0
	movups	48(%rcx,%rdi,8), %xmm1
	movups	%xmm0, 32(%r14,%rdi,8)
	movups	%xmm1, 48(%r14,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rdx
	jne	LBB0_11
## %bb.12:
	testb	$1, %r8b
	je	LBB0_14
LBB0_13:
	movups	(%rax,%rdi,8), %xmm0
	movups	16(%rax,%rdi,8), %xmm1
	movups	%xmm0, (%rbx,%rdi,8)
	movups	%xmm1, 16(%rbx,%rdi,8)
	movups	(%rcx,%rdi,8), %xmm0
	movups	16(%rcx,%rdi,8), %xmm1
	movups	%xmm0, (%r14,%rdi,8)
	movups	%xmm1, 16(%r14,%rdi,8)
LBB0_14:
	cmpq	%r9, %rsi
	jne	LBB0_15
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ## @__ETHTOOL_LINK_MODE_MASK_NBITS
	.no_dead_strip	_hclge_get_link_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_link_mode
_hclge_get_link_mode:                   ; @hclge_get_link_mode
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___ETHTOOL_LINK_MODE_MASK_NBITS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BITS_TO_LONGS
	mov	x21, x0
	mov	x0, x22
	bl	_hclge_get_vport
	cbz	w21, LBB0_13
; %bb.1:
	ldr	x8, [x0]
	ldp	x10, x9, [x8]
	mov	w8, w21
	cmp	w21, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_11
LBB0_3:
	mov	x11, #0
	sub	x12, x19, x20
	cmp	x12, #32
	b.lo	LBB0_11
; %bb.4:
	sub	x12, x20, x10
	cmp	x12, #32
	b.lo	LBB0_11
; %bb.5:
	sub	x12, x9, x20
	cmp	x12, #32
	b.lo	LBB0_11
; %bb.6:
	sub	x12, x19, x10
	cmp	x12, #32
	b.lo	LBB0_11
; %bb.7:
	sub	x12, x19, x9
	cmp	x12, #32
	b.lo	LBB0_11
; %bb.8:
	and	x11, x8, #0xfffffffc
	add	x12, x10, #16
	add	x13, x19, #16
	add	x14, x20, #16
	add	x15, x9, #16
	mov	x16, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-16]
	stp	q0, q1, [x14, #-16]
	ldp	q0, q1, [x15, #-16]
	add	x12, x12, #32
	stp	q0, q1, [x13, #-16]
	add	x13, x13, #32
	add	x14, x14, #32
	add	x15, x15, #32
	subs	x16, x16, #4
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x8
	b.eq	LBB0_13
LBB0_11:
	lsl	x13, x11, #3
	add	x10, x10, x13
	add	x12, x20, x13
	add	x9, x9, x13
	add	x13, x19, x13
	sub	x8, x8, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	x11, [x12], #8
	ldr	x11, [x9], #8
	str	x11, [x13], #8
	subs	x8, x8, #1
	b.ne	LBB0_12
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___ETHTOOL_LINK_MODE_MASK_NBITS,4,2 ; @__ETHTOOL_LINK_MODE_MASK_NBITS
	.no_dead_strip	_hclge_get_link_mode
.subsections_via_symbols
