	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_rx_batched
_tun_rx_batched:                        ## @tun_rx_batched
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.5:
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_skb_queue_len
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___skb_queue_tail
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_2:
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	callq	_local_bh_disable
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_skb_record_rx_queue
	movq	%r14, %rdi
	callq	_netif_receive_skb
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_bh_enable                ## TAILCALL
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_lock
LBB0_6:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	___skb_queue_head_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_splice_tail_init
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	%rbx, %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_skb_record_rx_queue
	movq	%rbx, %rdi
	callq	_netif_receive_skb
	movq	%r15, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_skb_record_rx_queue
	movq	%r14, %rdi
	callq	_netif_receive_skb
	xorl	%eax, %eax
	callq	_local_bh_enable
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tun_rx_batched
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_rx_batched
_tun_rx_batched:                        ; @tun_rx_batched
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	ldr	x22, [x0]
	cbz	x22, LBB0_5
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	cbz	w3, LBB0_4
; %bb.2:
	bl	_spin_lock
	mov	x0, x21
	bl	_skb_queue_len
	cmp	x0, x22
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	___skb_queue_tail
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_spin_unlock
LBB0_4:
	bl	_skb_queue_empty
	cbz	x0, LBB0_6
LBB0_5:
	bl	_local_bh_disable
	ldr	w1, [x20]
	mov	x0, x19
	bl	_skb_record_rx_queue
	mov	x0, x19
	bl	_netif_receive_skb
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_local_bh_enable
LBB0_6:
	mov	x0, x21
	bl	_spin_lock
LBB0_7:
	add	x0, sp, #8
	bl	___skb_queue_head_init
	add	x1, sp, #8
	mov	x0, x21
	bl	_skb_queue_splice_tail_init
	mov	x0, x21
	bl	_spin_unlock
	bl	_local_bh_disable
	add	x0, sp, #8
	bl	___skb_dequeue
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x21
	bl	_skb_record_rx_queue
	mov	x0, x21
	bl	_netif_receive_skb
	add	x0, sp, #8
	bl	___skb_dequeue
	mov	x21, x0
	cbnz	x0, LBB0_9
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_skb_record_rx_queue
	mov	x0, x19
	bl	_netif_receive_skb
	bl	_local_bh_enable
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tun_rx_batched
.subsections_via_symbols
