	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_offload
_set_offload:                           ## @set_offload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_TUN_F_CSUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rsi, %rdx
	je	LBB0_1
## %bb.2:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	notq	%rdx
	andq	%rsi, %rdx
	movq	_TUN_F_TSO4@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_TUN_F_TSO6@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, %rcx
	orq	%r11, %rcx
	testq	%rdx, %rcx
	je	LBB0_10
## %bb.3:
	movq	_TUN_F_TSO_ECN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rbx
	andq	%rdx, %rbx
	notq	%rax
	xorl	%r9d, %r9d
	cmpq	$1, %rbx
	movl	$0, %esi
	sbbq	%rsi, %rsi
	orq	%rax, %rsi
	andq	%rdx, %rsi
	movl	$0, %eax
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	_NETIF_F_TSO_ECN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%r10d, %eax
	movl	$0, %edx
	testq	%r11, %rsi
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_7:
	orl	%edx, %eax
	testq	%r8, %rsi
	je	LBB0_9
## %bb.8:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
LBB0_9:
	orl	%r9d, %eax
	notq	%rcx
	andq	%rcx, %rsi
	movq	%rsi, %rdx
	movl	%eax, %r10d
LBB0_10:
	movq	_TUN_F_UFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	notq	%rsi
	andq	%rdx, %rsi
	testq	%rsi, %rsi
	je	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%r10d, %r10d
	testq	%rsi, %rsi
	jne	LBB0_12
LBB0_13:
	movl	%r10d, 8(%rdi)
	movq	_TUN_USER_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%rdi), %rdi
	andl	(%rdi), %eax
	orl	%r10d, %eax
	movl	%eax, (%rdi)
	callq	_netdev_update_features
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUN_F_CSUM,8,3                 ## @TUN_F_CSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_TUN_F_TSO4,8,3                 ## @TUN_F_TSO4
	.comm	_TUN_F_TSO6,8,3                 ## @TUN_F_TSO6
	.comm	_TUN_F_TSO_ECN,8,3              ## @TUN_F_TSO_ECN
	.comm	_NETIF_F_TSO_ECN,4,2            ## @NETIF_F_TSO_ECN
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_TUN_F_UFO,8,3                  ## @TUN_F_UFO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TUN_USER_FEATURES,4,2          ## @TUN_USER_FEATURES
	.no_dead_strip	_set_offload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_offload
_set_offload:                           ; @set_offload
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TUN_F_CSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUN_F_CSUM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	tst	x9, x1
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _NETIF_F_HW_CSUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	x9, x1, x9
Lloh6:
	adrp	x10, _TUN_F_TSO4@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TUN_F_TSO4@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x10]
Lloh9:
	adrp	x10, _TUN_F_TSO6@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TUN_F_TSO6@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x10]
	orr	x10, x11, x12
	tst	x10, x9
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x13, _TUN_F_TSO_ECN@GOTPAGE
Lloh13:
	ldr	x13, [x13, _TUN_F_TSO_ECN@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
Lloh15:
	adrp	x14, _NETIF_F_TSO_ECN@GOTPAGE
Lloh16:
	ldr	x14, [x14, _NETIF_F_TSO_ECN@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
	tst	x13, x9
	mov	x15, #-1
	csinv	x13, x15, x13, eq
	and	x9, x13, x9
	csel	w13, wzr, w14, eq
Lloh18:
	adrp	x14, _NETIF_F_TSO@GOTPAGE
Lloh19:
	ldr	x14, [x14, _NETIF_F_TSO@GOTPAGEOFF]
	orr	w8, w13, w8
Lloh20:
	ldr	w13, [x14]
	tst	x9, x12
	csel	w12, wzr, w13, eq
Lloh21:
	adrp	x13, _NETIF_F_TSO6@GOTPAGE
Lloh22:
	ldr	x13, [x13, _NETIF_F_TSO6@GOTPAGEOFF]
	orr	w8, w8, w12
Lloh23:
	ldr	w12, [x13]
	tst	x9, x11
	csel	w11, wzr, w12, eq
	orr	w8, w8, w11
	bic	x9, x9, x10
LBB0_3:
Lloh24:
	adrp	x10, _TUN_F_UFO@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TUN_F_UFO@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	bic	x1, x9, x10
	cbz	x1, LBB0_6
LBB0_4:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #0
	cbnz	x1, LBB0_4
LBB0_6:
	str	w8, [x0, #8]
Lloh30:
	adrp	x9, _TUN_USER_FEATURES@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TUN_USER_FEATURES@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	ldr	x0, [x0]
	ldr	w10, [x0]
	bic	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_netdev_update_features
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TUN_F_CSUM,8,3                 ; @TUN_F_CSUM
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_TUN_F_TSO4,8,3                 ; @TUN_F_TSO4
	.comm	_TUN_F_TSO6,8,3                 ; @TUN_F_TSO6
	.comm	_TUN_F_TSO_ECN,8,3              ; @TUN_F_TSO_ECN
	.comm	_NETIF_F_TSO_ECN,4,2            ; @NETIF_F_TSO_ECN
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_TUN_F_UFO,8,3                  ; @TUN_F_UFO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TUN_USER_FEATURES,4,2          ; @TUN_USER_FEATURES
	.no_dead_strip	_set_offload
.subsections_via_symbols
