	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_caps_changed
_tun_caps_changed:                      ## @tun_caps_changed
	.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	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_TUN_LOCK_ASSERT
	movl	(%rbx), %eax
	movq	_IFCAP_TXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CSUM_TCP@GOTPCREL(%rip), %rdx
	movq	_CSUM_UDP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	andl	%eax, %ecx
	testl	%ecx, %ecx
	cmovel	%ecx, %esi
	movq	_IFCAP_TXCSUM_IPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CSUM_TCP_IPV6@GOTPCREL(%rip), %rdi
	movq	_CSUM_UDP_IPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdi), %ecx
	andl	%eax, %edx
	testl	%edx, %edx
	cmovel	%edx, %ecx
	orl	%esi, %ecx
	movq	_IFCAP_TSO4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	_CSUM_IP_TSO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	%edx, %ecx
	movq	_IFCAP_TSO6@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_4
## %bb.3:
	movq	_CSUM_IP6_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFCAP_TXCSUM,4,2               ## @IFCAP_TXCSUM
	.comm	_CSUM_TCP,4,2                   ## @CSUM_TCP
	.comm	_CSUM_UDP,4,2                   ## @CSUM_UDP
	.comm	_IFCAP_TXCSUM_IPV6,4,2          ## @IFCAP_TXCSUM_IPV6
	.comm	_CSUM_TCP_IPV6,4,2              ## @CSUM_TCP_IPV6
	.comm	_CSUM_UDP_IPV6,4,2              ## @CSUM_UDP_IPV6
	.comm	_IFCAP_TSO4,4,2                 ## @IFCAP_TSO4
	.comm	_CSUM_IP_TSO,4,2                ## @CSUM_IP_TSO
	.comm	_IFCAP_TSO6,4,2                 ## @IFCAP_TSO6
	.comm	_CSUM_IP6_TSO,4,2               ## @CSUM_IP6_TSO
	.no_dead_strip	_tun_caps_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_caps_changed
_tun_caps_changed:                      ; @tun_caps_changed
	.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, x0
	ldr	x0, [x0, #8]
	bl	_TUN_LOCK_ASSERT
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFCAP_TXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFCAP_TXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CSUM_TCP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CSUM_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _CSUM_UDP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CSUM_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh9:
	adrp	x10, _IFCAP_TXCSUM_IPV6@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IFCAP_TXCSUM_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _CSUM_TCP_IPV6@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CSUM_TCP_IPV6@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _CSUM_UDP_IPV6@GOTPAGE
Lloh16:
	ldr	x12, [x12, _CSUM_UDP_IPV6@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w10, w8
	csel	w10, wzr, w11, eq
Lloh18:
	adrp	x11, _IFCAP_TSO4@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IFCAP_TSO4@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh20:
	ldr	w10, [x11]
Lloh21:
	adrp	x11, _CSUM_IP_TSO@GOTPAGE
Lloh22:
	ldr	x11, [x11, _CSUM_IP_TSO@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _IFCAP_TSO6@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IFCAP_TSO6@GOTPAGEOFF]
Lloh26:
	adrp	x11, _CSUM_IP6_TSO@GOTPAGE
Lloh27:
	ldr	x11, [x11, _CSUM_IP6_TSO@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFCAP_TXCSUM,4,2               ; @IFCAP_TXCSUM
	.comm	_CSUM_TCP,4,2                   ; @CSUM_TCP
	.comm	_CSUM_UDP,4,2                   ; @CSUM_UDP
	.comm	_IFCAP_TXCSUM_IPV6,4,2          ; @IFCAP_TXCSUM_IPV6
	.comm	_CSUM_TCP_IPV6,4,2              ; @CSUM_TCP_IPV6
	.comm	_CSUM_UDP_IPV6,4,2              ; @CSUM_UDP_IPV6
	.comm	_IFCAP_TSO4,4,2                 ; @IFCAP_TSO4
	.comm	_CSUM_IP_TSO,4,2                ; @CSUM_IP_TSO
	.comm	_IFCAP_TSO6,4,2                 ; @IFCAP_TSO6
	.comm	_CSUM_IP6_TSO,4,2               ; @CSUM_IP6_TSO
	.no_dead_strip	_tun_caps_changed
.subsections_via_symbols
