	.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
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	16(%rax), %r8
	movq	_TUN_F_CSUM@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$0, %edx
	testq	%rbx, (%rcx)
	je	LBB0_11
## %bb.3:
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TUN_F_TSO4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_TUN_F_TSO6@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, %rdi
	orq	%rcx, %rdi
	testq	%rbx, %rdi
	je	LBB0_11
## %bb.4:
	movq	_TUN_F_TSO_ECN@GOTPCREL(%rip), %r10
	xorl	%r9d, %r9d
	movl	$0, %edi
	testq	%rbx, (%r10)
	je	LBB0_6
## %bb.5:
	movq	_NETIF_F_TSO_ECN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_6:
	orl	%edx, %edi
	testq	%rbx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_8:
	orl	%r9d, %edi
	testq	%rbx, %rsi
	je	LBB0_10
## %bb.9:
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
LBB0_10:
	movl	%edi, %edx
LBB0_11:
	movl	(%r8), %r9d
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movq	_RX_OFFLOADS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%edx, (%rax)
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	orl	%r8d, %edi
	movl	%esi, %ecx
	notl	%ecx
	andl	%r9d, %ecx
	orl	%r9d, %esi
	testl	%edx, %edi
	cmovel	%ecx, %esi
	movq	%rax, %rdi
	callq	*%rbx
	jmp	LBB0_13
LBB0_1:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	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,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	_RX_OFFLOADS,4,2                ## @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	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
	ldr	w0, [x0]
	bl	_rtnl_dereference
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _TUN_F_CSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUN_F_CSUM@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
Lloh3:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
	tst	x11, x19
	b.eq	LBB0_6
; %bb.2:
Lloh7:
	adrp	x11, _NETIF_F_HW_CSUM@GOTPAGE
Lloh8:
	ldr	x11, [x11, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
Lloh10:
	adrp	x12, _TUN_F_TSO4@GOTPAGE
Lloh11:
	ldr	x12, [x12, _TUN_F_TSO4@GOTPAGEOFF]
Lloh12:
	ldr	x13, [x12]
Lloh13:
	adrp	x12, _TUN_F_TSO6@GOTPAGE
Lloh14:
	ldr	x12, [x12, _TUN_F_TSO6@GOTPAGEOFF]
Lloh15:
	ldr	x12, [x12]
	orr	x14, x12, x13
	tst	x14, x19
	b.eq	LBB0_7
; %bb.3:
Lloh16:
	adrp	x14, _TUN_F_TSO_ECN@GOTPAGE
Lloh17:
	ldr	x14, [x14, _TUN_F_TSO_ECN@GOTPAGEOFF]
Lloh18:
	ldr	x14, [x14]
Lloh19:
	adrp	x15, _NETIF_F_TSO_ECN@GOTPAGE
Lloh20:
	ldr	x15, [x15, _NETIF_F_TSO_ECN@GOTPAGEOFF]
Lloh21:
	ldr	w15, [x15]
	tst	x14, x19
	csel	w14, wzr, w15, eq
	orr	w11, w14, w11
	ldr	w14, [x9]
	tst	x13, x19
	csel	w13, wzr, w14, eq
	orr	w11, w11, w13
	tst	x12, x19
	b.eq	LBB0_7
; %bb.4:
	ldr	w12, [x10]
	orr	w11, w12, w11
	b	LBB0_7
LBB0_5:
Lloh22:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
	mov	w11, #0
LBB0_7:
	ldr	w8, [x8]
	ldr	w12, [x9]
	ldr	w10, [x10]
Lloh25:
	adrp	x9, _RX_OFFLOADS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RX_OFFLOADS@GOTPAGEOFF]
Lloh27:
	ldr	w13, [x9]
	str	w11, [x0]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_9
; %bb.8:
	orr	w10, w10, w12
	bic	w12, w8, w13
	orr	w8, w13, w8
	tst	w10, w11
	csel	w1, w12, w8, eq
	blr	x9
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.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	_RX_OFFLOADS,4,2                ; @RX_OFFLOADS
	.no_dead_strip	_set_offload
.subsections_via_symbols
