	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_features
_set_features:                          ## @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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r14
	xorl	%edx, %esi
	xorl	%eax, %eax
	negl	%ecx
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	orl	%esi, %ebx
	movq	_HINIC_RX_CSUM_OFFLOAD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_5
## %bb.1:
	testl	%r12d, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_HINIC_TSO_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_HINIC_TSO_ENABLE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hinic_port_set_tso
LBB0_5:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_hinic_set_rx_csum_offload
LBB0_7:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	testl	%r12d, %ecx
	setne	%sil
	movq	_HINIC_LRO_RX_TIMER_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HINIC_LRO_MAX_WQE_NUM_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_hinic_set_rx_lro_state
LBB0_9:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_10
## %bb.11:
	xorl	%esi, %esi
	testl	%r12d, %ecx
	setne	%sil
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hinic_set_rx_vlan_offload      ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_RX_CSUM_OFFLOAD_EN,4,2   ## @HINIC_RX_CSUM_OFFLOAD_EN
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_HINIC_TSO_ENABLE,4,2           ## @HINIC_TSO_ENABLE
	.comm	_HINIC_TSO_DISABLE,4,2          ## @HINIC_TSO_DISABLE
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_HINIC_LRO_RX_TIMER_DEFAULT,4,2 ## @HINIC_LRO_RX_TIMER_DEFAULT
	.comm	_HINIC_LRO_MAX_WQE_NUM_DEFAULT,4,2 ## @HINIC_LRO_MAX_WQE_NUM_DEFAULT
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_features
_set_features:                          ; @set_features
	.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, x2
	mov	x19, x0
	eor	w8, w2, w1
	cmp	w3, #0
Lloh0:
	adrp	x9, _HINIC_RX_CSUM_OFFLOAD_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HINIC_RX_CSUM_OFFLOAD_EN@GOTPAGEOFF]
	csinv	w22, w8, wzr, eq
Lloh2:
	ldr	w21, [x9]
Lloh3:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _HINIC_TSO_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HINIC_TSO_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _HINIC_TSO_DISABLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HINIC_TSO_DISABLE@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hinic_port_set_tso
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh10:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_hinic_set_rx_csum_offload
LBB0_5:
Lloh13:
	adrp	x8, _NETIF_F_LRO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_LRO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	tst	w8, w20
	cset	w1, ne
Lloh16:
	adrp	x8, _HINIC_LRO_RX_TIMER_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HINIC_LRO_RX_TIMER_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _HINIC_LRO_MAX_WQE_NUM_DEFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HINIC_LRO_MAX_WQE_NUM_DEFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hinic_set_rx_lro_state
LBB0_7:
Lloh22:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	tst	w8, w20
	cset	w1, ne
	mov	x0, x19
	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	_hinic_set_rx_vlan_offload
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_RX_CSUM_OFFLOAD_EN,4,2   ; @HINIC_RX_CSUM_OFFLOAD_EN
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_HINIC_TSO_ENABLE,4,2           ; @HINIC_TSO_ENABLE
	.comm	_HINIC_TSO_DISABLE,4,2          ; @HINIC_TSO_DISABLE
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_HINIC_LRO_RX_TIMER_DEFAULT,4,2 ; @HINIC_LRO_RX_TIMER_DEFAULT
	.comm	_HINIC_LRO_MAX_WQE_NUM_DEFAULT,4,2 ; @HINIC_LRO_MAX_WQE_NUM_DEFAULT
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.no_dead_strip	_set_features
.subsections_via_symbols
