	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %r8d
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_FRAGLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_TUN_USER_FEATURES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	%r8d, %ecx
	movq	_TUN_F_CSUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	testq	%rsi, %rdx
	je	LBB0_12
## %bb.1:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rbx
	orl	%eax, %ecx
	orl	(%rbx), %ecx
	notq	%rdx
	andq	%rsi, %rdx
	movq	_TUN_F_TSO4@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_TUN_F_TSO6@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	%r10, %r14
	orq	%r11, %r14
	testq	%rdx, %r14
	je	LBB0_9
## %bb.2:
	movq	_TUN_F_TSO_ECN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rsi
	andq	%rdx, %rsi
	notq	%rbx
	xorl	%r9d, %r9d
	cmpq	$1, %rsi
	movl	$0, %eax
	sbbq	%rax, %rax
	orq	%rbx, %rax
	andq	%rdx, %rax
	movl	$0, %ebx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_NETIF_F_TSO_ECN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_4:
	orl	%ecx, %ebx
	movl	$0, %ecx
	testq	%r11, %rax
	je	LBB0_6
## %bb.5:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %ebx
	testq	%r10, %rax
	je	LBB0_8
## %bb.7:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_8:
	orl	%r9d, %ebx
	notq	%r14
	andq	%r14, %rax
	movq	%rax, %rdx
	movl	%ebx, %ecx
LBB0_9:
	movq	_TUN_F_UFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdx, %rax
	je	LBB0_11
## %bb.10:
	movq	_NETIF_F_UFO@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	notq	%rax
	andq	%rax, %rdx
LBB0_11:
	movq	%rdx, %rsi
LBB0_12:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movl	%ecx, (%rdi)
	xorl	%ebx, %ebx
	cmpl	%ecx, %r8d
	je	LBB0_16
## %bb.15:
	callq	_netdev_features_change
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_FRAGLIST,4,2           ## @NETIF_F_FRAGLIST
	.comm	_TUN_USER_FEATURES,4,2          ## @TUN_USER_FEATURES
	.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	_NETIF_F_UFO,4,2                ## @NETIF_F_UFO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	adrp	x10, _NETIF_F_FRAGLIST@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NETIF_F_FRAGLIST@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh6:
	adrp	x9, _TUN_USER_FEATURES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TUN_USER_FEATURES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w10, w9
	bic	w9, w8, w9
Lloh9:
	adrp	x11, _TUN_F_CSUM@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TUN_F_CSUM@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	tst	x11, x1
	b.eq	LBB0_5
; %bb.1:
Lloh12:
	adrp	x12, _NETIF_F_HW_CSUM@GOTPAGE
Lloh13:
	ldr	x12, [x12, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w9, w10, w9
	orr	w9, w9, w12
	bic	x1, x1, x11
Lloh15:
	adrp	x10, _TUN_F_TSO4@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TUN_F_TSO4@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x10]
Lloh18:
	adrp	x10, _TUN_F_TSO6@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TUN_F_TSO6@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x10]
	orr	x10, x11, x12
	tst	x10, x1
	b.eq	LBB0_3
; %bb.2:
Lloh21:
	adrp	x13, _TUN_F_TSO_ECN@GOTPAGE
Lloh22:
	ldr	x13, [x13, _TUN_F_TSO_ECN@GOTPAGEOFF]
Lloh23:
	ldr	x13, [x13]
Lloh24:
	adrp	x14, _NETIF_F_TSO_ECN@GOTPAGE
Lloh25:
	ldr	x14, [x14, _NETIF_F_TSO_ECN@GOTPAGEOFF]
Lloh26:
	ldr	w14, [x14]
	tst	x13, x1
	mov	x15, #-1
	csinv	x13, x15, x13, eq
	and	x13, x13, x1
	csel	w14, wzr, w14, eq
Lloh27:
	adrp	x15, _NETIF_F_TSO@GOTPAGE
Lloh28:
	ldr	x15, [x15, _NETIF_F_TSO@GOTPAGEOFF]
	orr	w9, w14, w9
Lloh29:
	ldr	w14, [x15]
	tst	x13, x12
	csel	w12, wzr, w14, eq
Lloh30:
	adrp	x14, _NETIF_F_TSO6@GOTPAGE
Lloh31:
	ldr	x14, [x14, _NETIF_F_TSO6@GOTPAGEOFF]
	orr	w9, w9, w12
Lloh32:
	ldr	w12, [x14]
	tst	x13, x11
	csel	w11, wzr, w12, eq
	orr	w9, w9, w11
	bic	x1, x13, x10
LBB0_3:
Lloh33:
	adrp	x10, _TUN_F_UFO@GOTPAGE
Lloh34:
	ldr	x10, [x10, _TUN_F_UFO@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	tst	x10, x1
	b.eq	LBB0_5
; %bb.4:
Lloh36:
	adrp	x11, _NETIF_F_UFO@GOTPAGE
Lloh37:
	ldr	x11, [x11, _NETIF_F_UFO@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bic	x1, x1, x10
LBB0_5:
	cbz	x1, LBB0_7
; %bb.6:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	w9, [x0]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
	bl	_netdev_features_change
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_FRAGLIST,4,2           ; @NETIF_F_FRAGLIST
	.comm	_TUN_USER_FEATURES,4,2          ; @TUN_USER_FEATURES
	.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	_NETIF_F_UFO,4,2                ; @NETIF_F_UFO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_offload
.subsections_via_symbols
