	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_set_features
_hns_nic_set_features:                  ## @hns_nic_set_features
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	cmpl	$128, (%rax)
	jne	LBB0_3
## %bb.1:
	testl	%r14d, %ecx
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
	jmp	LBB0_6
LBB0_3:
	testl	%r14d, %ecx
	je	LBB0_5
## %bb.4:
	movq	_fill_tso_desc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_hns_nic_maybe_stop_tso@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rbx, %rdi
	movl	$28672, %esi                    ## imm = 0x7000
	callq	_netif_set_gso_max_size
	jmp	LBB0_6
LBB0_5:
	movq	_fill_v2_desc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_hns_nic_maybe_stop_tx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_6:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enet v1 do not support tso!\n"

	.comm	_fill_tso_desc,4,2              ## @fill_tso_desc
	.comm	_hns_nic_maybe_stop_tso,4,2     ## @hns_nic_maybe_stop_tso
	.comm	_fill_v2_desc,4,2               ## @fill_v2_desc
	.comm	_hns_nic_maybe_stop_tx,4,2      ## @hns_nic_maybe_stop_tx
	.no_dead_strip	_hns_nic_set_features
.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_features
_hns_nic_set_features:                  ; @hns_nic_set_features
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
	and	w8, w8, w19
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.1:
	cbz	w8, LBB0_6
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	b	LBB0_6
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _fill_tso_desc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fill_tso_desc@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _hns_nic_maybe_stop_tso@GOTPAGE
Lloh12:
	ldr	x9, [x9, _hns_nic_maybe_stop_tso@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	x0, x20
	mov	w1, #28672
	bl	_netif_set_gso_max_size
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _fill_v2_desc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fill_v2_desc@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _hns_nic_maybe_stop_tx@GOTPAGE
Lloh18:
	ldr	x9, [x9, _hns_nic_maybe_stop_tx@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
LBB0_6:
	str	w19, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enet v1 do not support tso!\n"

	.comm	_fill_tso_desc,4,2              ; @fill_tso_desc
	.comm	_hns_nic_maybe_stop_tso,4,2     ; @hns_nic_maybe_stop_tso
	.comm	_fill_v2_desc,4,2               ; @fill_v2_desc
	.comm	_hns_nic_maybe_stop_tx,4,2      ; @hns_nic_maybe_stop_tx
	.no_dead_strip	_hns_nic_set_features
.subsections_via_symbols
