	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_build_skb
_tun_build_skb:                         ## @tun_build_skb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %r13d
	movq	_TUN_RX_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_rcu_dereference
	movl	$0, %r14d
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	addl	%r12d, %r14d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leal	(%r14,%r12), %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %ebx
	addl	%r13d, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	(%r15), %edi
	movq	_SMP_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movl	%eax, (%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_skb_page_frag_refill
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	callq	_page_address
	movq	%rax, %r13
	movslq	(%r15), %rbx
	movl	4(%r15), %edi
	leal	(%rbx,%r14), %esi
	movl	%r12d, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	callq	_copy_page_from_iter
	movq	%rax, %rcx
	movslq	%r12d, %rax
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.7:
	addq	%rbx, %r13
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	%r13, %rbx
	jne	LBB0_23
## %bb.8:
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_23
## %bb.9:
	movq	%rcx, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_local_bh_disable
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r12
	movq	%rbx, -112(%rbp)
	movslq	%r14d, %rax
	addq	%rbx, %rax
	movq	%rax, -104(%rbp)
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_xdp_set_data_meta_invalid
	addq	-104(%rbp), %r13
	movq	%r13, -96(%rbp)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, -88(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bpf_prog_run_xdp
	movq	%rax, %r14
	movq	_XDP_REDIRECT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_13
## %bb.12:
	movq	_XDP_TX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
LBB0_13:
	movl	4(%r15), %edi
	callq	_get_page
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r15)
LBB0_14:
	leaq	-112(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_tun_xdp_act
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	movl	%eax, %r14d
	movl	%eax, %eax
	movq	_XDP_REDIRECT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_xdp_do_flush_map
LBB0_17:
	movq	_XDP_PASS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_21
## %bb.18:
	movq	%rbx, %r12
	movl	-104(%rbp), %eax
	movl	-96(%rbp), %ebx
	subl	%eax, %ebx
	movl	%eax, %r14d
	subl	-112(%rbp), %r14d
	jmp	LBB0_19
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_23:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___tun_build_skb                ## TAILCALL
LBB0_10:
	movq	%rbx, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	xorl	%eax, %eax
	callq	_local_bh_enable
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	___tun_build_skb
	movq	%rax, %rbx
	jmp	LBB0_22
LBB0_20:
	movl	4(%r15), %edi
	callq	_put_page
LBB0_21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	xorl	%eax, %eax
	callq	_local_bh_enable
LBB0_22:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_TUN_RX_PAD,4,2                 ## @TUN_RX_PAD
	.comm	_XDP_PACKET_HEADROOM,8,3        ## @XDP_PACKET_HEADROOM
	.comm	_SMP_CACHE_BYTES,4,2            ## @SMP_CACHE_BYTES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_XDP_REDIRECT,8,3               ## @XDP_REDIRECT
	.comm	_XDP_TX,8,3                     ## @XDP_TX
	.comm	_XDP_PASS,4,2                   ## @XDP_PASS
	.no_dead_strip	_tun_build_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_build_skb
_tun_build_skb:                         ; @tun_build_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x5
	mov	x23, x4
	mov	x22, x3
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x26, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	mov	x20, x0
Lloh3:
	adrp	x8, _TUN_RX_PAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TUN_RX_PAD@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	bl	_rcu_read_lock
	ldr	w0, [x25]
	bl	_rcu_dereference
	mov	x28, x0
Lloh6:
	adrp	x8, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w8, wzr, ne
	add	w24, w8, w21
	add	w0, w24, w23
	bl	_SKB_DATA_ALIGN
	add	w21, w0, w20
	bl	_rcu_read_unlock
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _SMP_CACHE_BYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMP_CACHE_BYTES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ALIGN
	str	w0, [x19]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_skb_page_frag_refill
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	stp	x25, x26, [sp, #8]              ; 16-byte Folded Spill
	ldr	w0, [x19, #4]
	bl	_page_address
	mov	x20, x0
	ldp	w26, w0, [x19]
                                        ; kill: def $w26 killed $w26 def $x26
	sxtw	x26, w26
	add	w1, w26, w24
	mov	x2, x23
	ldr	x3, [sp, #24]                   ; 8-byte Folded Reload
	bl	_copy_page_from_iter
	cmp	x0, w23, sxtw
	b.ne	LBB0_15
; %bb.3:
	add	x20, x20, x26
	ldr	x8, [x22]
	cbnz	x8, LBB0_17
; %bb.4:
	cbz	x28, LBB0_17
; %bb.5:
	mov	x25, x0
	str	wzr, [x27]
	bl	_local_bh_disable
	bl	_rcu_read_lock
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w0, [x22]
	bl	_rcu_dereference
	cbz	x0, LBB0_14
; %bb.6:
	mov	x26, x0
	add	x8, x20, w24, sxtw
	mov	x27, x20
	stp	x20, x8, [sp, #32]
	add	x0, sp, #32
	bl	_xdp_set_data_meta_invalid
	ldr	x8, [sp, #40]
	add	x8, x8, x25
	str	x8, [sp, #48]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [sp, #56]
	add	x1, sp, #32
	mov	x0, x26
	bl	_bpf_prog_run_xdp
	mov	x23, x0
Lloh17:
	adrp	x24, _XDP_REDIRECT@GOTPAGE
Lloh18:
	ldr	x24, [x24, _XDP_REDIRECT@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _XDP_TX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XDP_TX@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_9
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_get_page
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
LBB0_9:
	add	x2, sp, #32
	mov	x0, x22
	mov	x1, x26
	mov	x3, x23
	bl	_tun_xdp_act
	tbnz	w0, #31, LBB0_18
; %bb.10:
	mov	x20, x0
	ldr	x8, [x24]
	cmp	x8, w0, uxtw
	b.ne	LBB0_12
; %bb.11:
	bl	_xdp_do_flush_map
LBB0_12:
Lloh22:
	adrp	x8, _XDP_PASS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XDP_PASS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_19
; %bb.13:
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	sub	w24, w8, w9
	ldr	w9, [sp, #48]
	sub	w23, w9, w8
	mov	x20, x27
LBB0_14:
	bl	_rcu_read_unlock
	bl	_local_bh_enable
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	bl	___tun_build_skb
	b	LBB0_20
LBB0_15:
Lloh25:
	adrp	x8, _EFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_ERR_PTR
LBB0_17:
	mov	w8, #1
	str	w8, [x27]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	___tun_build_skb
LBB0_18:
	ldr	w0, [x19, #4]
	bl	_put_page
LBB0_19:
	bl	_rcu_read_unlock
	bl	_local_bh_enable
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_TUN_RX_PAD,4,2                 ; @TUN_RX_PAD
	.comm	_XDP_PACKET_HEADROOM,8,3        ; @XDP_PACKET_HEADROOM
	.comm	_SMP_CACHE_BYTES,4,2            ; @SMP_CACHE_BYTES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_XDP_REDIRECT,8,3               ; @XDP_REDIRECT
	.comm	_XDP_TX,8,3                     ; @XDP_TX
	.comm	_XDP_PASS,4,2                   ; @XDP_PASS
	.no_dead_strip	_tun_build_skb
.subsections_via_symbols
