	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	_TUN_F_CSUM@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	testq	%rbx, (%rdx)
	je	LBB0_3
## %bb.4:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r12
	movq	_TUN_F_TSO4@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_TUN_F_TSO6@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rdi
	orq	%rsi, %rdi
	testq	%rbx, %rdi
	je	LBB0_12
## %bb.5:
	movq	_TUN_F_TSO_ECN@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	andq	%rbx, %rdi
	je	LBB0_7
## %bb.6:
	movq	_NETIF_F_TSO_ECN@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
LBB0_7:
	orq	%r12, %rdi
	andq	%rbx, %rsi
	je	LBB0_9
## %bb.8:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_9:
	orq	%rsi, %rdi
	testq	%rbx, %rdx
	je	LBB0_11
## %bb.10:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rdi
LBB0_11:
	movq	%rdi, %r12
LBB0_12:
	movq	_TUN_F_UFO@GOTPCREL(%rip), %rdx
	testq	%rbx, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_NETIF_F_UFO@GOTPCREL(%rip), %rdx
	orq	(%rdx), %r12
	jmp	LBB0_14
LBB0_1:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_3:
	xorl	%r12d, %r12d
LBB0_14:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	orq	(%rdx), %rsi
	movq	_NETIF_F_UFO@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rsi
	movq	_RX_OFFLOADS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rdi, %rdx
	orq	%rcx, %rdx
	notq	%rdi
	andq	%rcx, %rdi
	testq	%r12, %rsi
	cmovneq	%rdx, %rdi
	movl	8(%rax), %esi
	callq	_netdev_fix_features
	movq	%r12, (%r15)
	movq	8(%r15), %rdi
	cmpq	%rax, (%rdi)
	je	LBB0_16
## %bb.15:
	movq	%rax, (%rdi)
	callq	_netdev_features_change
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_TUN_F_CSUM,8,3                 ## @TUN_F_CSUM
	.comm	_NETIF_F_HW_CSUM,8,3            ## @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,8,3            ## @NETIF_F_TSO_ECN
	.comm	_NETIF_F_TSO,8,3                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,8,3               ## @NETIF_F_TSO6
	.comm	_TUN_F_UFO,8,3                  ## @TUN_F_UFO
	.comm	_NETIF_F_UFO,8,3                ## @NETIF_F_UFO
	.comm	_RX_OFFLOADS,8,3                ## @RX_OFFLOADS
	.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	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, x1
	ldr	w0, [x0]
	bl	_rtnl_dereference
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _TUN_F_CSUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TUN_F_CSUM@GOTPAGEOFF]
Lloh2:
	adrp	x11, _NETIF_F_TSO@GOTPAGE
Lloh3:
	ldr	x11, [x11, _NETIF_F_TSO@GOTPAGEOFF]
Lloh4:
	ldr	x13, [x10]
Lloh5:
	adrp	x12, _NETIF_F_TSO6@GOTPAGE
Lloh6:
	ldr	x12, [x12, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh7:
	adrp	x10, _NETIF_F_UFO@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NETIF_F_UFO@GOTPAGEOFF]
	tst	x13, x20
	b.eq	LBB0_8
; %bb.2:
Lloh9:
	adrp	x13, _NETIF_F_HW_CSUM@GOTPAGE
Lloh10:
	ldr	x13, [x13, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x13]
Lloh12:
	adrp	x13, _TUN_F_TSO4@GOTPAGE
Lloh13:
	ldr	x13, [x13, _TUN_F_TSO4@GOTPAGEOFF]
Lloh14:
	ldr	x14, [x13]
Lloh15:
	adrp	x13, _TUN_F_TSO6@GOTPAGE
Lloh16:
	ldr	x13, [x13, _TUN_F_TSO6@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	orr	x15, x13, x14
	tst	x15, x20
	b.eq	LBB0_5
; %bb.3:
Lloh18:
	adrp	x15, _TUN_F_TSO_ECN@GOTPAGE
Lloh19:
	ldr	x15, [x15, _TUN_F_TSO_ECN@GOTPAGEOFF]
Lloh20:
	ldr	x15, [x15]
Lloh21:
	adrp	x16, _NETIF_F_TSO_ECN@GOTPAGE
Lloh22:
	ldr	x16, [x16, _NETIF_F_TSO_ECN@GOTPAGEOFF]
Lloh23:
	ldr	x16, [x16]
	tst	x15, x20
	csel	x15, xzr, x16, eq
	orr	x15, x15, x21
	ldr	x16, [x11]
	tst	x14, x20
	csel	x14, xzr, x16, eq
	orr	x21, x15, x14
	tst	x13, x20
	b.eq	LBB0_5
; %bb.4:
	ldr	x13, [x12]
	orr	x21, x13, x21
LBB0_5:
Lloh24:
	adrp	x13, _TUN_F_UFO@GOTPAGE
Lloh25:
	ldr	x13, [x13, _TUN_F_UFO@GOTPAGEOFF]
Lloh26:
	ldr	x13, [x13]
	tst	x13, x20
	b.eq	LBB0_9
; %bb.6:
	ldr	x13, [x10]
	orr	x21, x13, x21
	b	LBB0_9
LBB0_7:
Lloh27:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldr	x11, [x11]
	ldr	x12, [x12]
	orr	x11, x12, x11
	ldr	x10, [x10]
	orr	x10, x11, x10
Lloh30:
	adrp	x11, _RX_OFFLOADS@GOTPAGE
Lloh31:
	ldr	x11, [x11, _RX_OFFLOADS@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
	orr	x12, x11, x9
	bic	x9, x9, x11
	tst	x10, x21
	csel	x0, x9, x12, eq
	ldr	w1, [x8, #8]
	bl	_netdev_fix_features
	str	x21, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_11
; %bb.10:
	str	x0, [x8]
	mov	x0, x8
	bl	_netdev_features_change
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_TUN_F_CSUM,8,3                 ; @TUN_F_CSUM
	.comm	_NETIF_F_HW_CSUM,8,3            ; @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,8,3            ; @NETIF_F_TSO_ECN
	.comm	_NETIF_F_TSO,8,3                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,8,3               ; @NETIF_F_TSO6
	.comm	_TUN_F_UFO,8,3                  ; @TUN_F_UFO
	.comm	_NETIF_F_UFO,8,3                ; @NETIF_F_UFO
	.comm	_RX_OFFLOADS,8,3                ; @RX_OFFLOADS
	.no_dead_strip	_set_offload
.subsections_via_symbols
