	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_vnethdr_set
_tun_vnethdr_set:                       ## @tun_vnethdr_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_TUN_LOCK_ASSERT
	cmpl	%r14d, (%r15)
	jne	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_TAP_VNET_HDR_CAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	orl	(%rbx), %eax
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	andl	(%rbx), %eax
LBB0_4:
	movl	%eax, (%rbx)
	andl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_tun_caps_changed
	movl	%r14d, (%r15)
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TUNDEBUG                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TAP_VNET_HDR_CAPS,4,2          ## @TAP_VNET_HDR_CAPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vnet_hdr_len=%d, if_capabilities=%x\n"

	.no_dead_strip	_tun_vnethdr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_vnethdr_set
_tun_vnethdr_set:                       ; @tun_vnethdr_set
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_TUN_LOCK_ASSERT
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh0:
	adrp	x8, _TAP_VNET_HDR_CAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAP_VNET_HDR_CAPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w19, LBB0_4
; %bb.3:
	ldr	w9, [x20]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x20]
	ldr	w9, [x20, #4]
	and	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_tun_caps_changed
	str	w19, [x21]
	ldr	w3, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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
	b	_TUNDEBUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TAP_VNET_HDR_CAPS,4,2          ; @TAP_VNET_HDR_CAPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vnet_hdr_len=%d, if_capabilities=%x\n"

	.no_dead_strip	_tun_vnethdr_set
.subsections_via_symbols
