	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_car_q_event                 ## -- Begin function ng_car_q_event
	.p2align	4, 0x90
_ng_car_q_event:                        ## @ng_car_q_event
	.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, %edi
	callq	_NG_HOOK_PRIVATE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ng_car_refillhook
	cmpq	$0, (%rbx)
	js	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	_NG_CAR_QUEUE_SIZE@GOTPCREL(%rip), %r14
	movq	_NG_CAR_COUNT_PACKETS@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	addq	$-128, %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, (%rbx)
	testq	%rdx, %rdx
	js	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movl	48(%rbx), %esi
	callq	_NG_SEND_DATA_ONLY
	incl	40(%rbx)
	movq	8(%rbx), %rax
	incq	%rax
	cmpq	(%r14), %rax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rbx)
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	testl	%edx, 24(%rbx)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	movq	32(%rbx), %rsi
	movq	(%rsi,%rax,8), %rsi
	subq	(%rsi), %rdx
	jmp	LBB0_9
LBB0_1:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
LBB0_10:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ng_car_schedule                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_CAR_QUEUE_SIZE,8,3          ## @NG_CAR_QUEUE_SIZE
	.comm	_NG_CAR_COUNT_PACKETS,4,2       ## @NG_CAR_COUNT_PACKETS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_car_q_event                 ; -- Begin function ng_car_q_event
	.p2align	2
_ng_car_q_event:                        ; @ng_car_q_event
	.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	x0, x1
	bl	_NG_HOOK_PRIVATE
	mov	x19, x0
	bl	_ng_car_refillhook
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _NG_CAR_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NG_CAR_QUEUE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _NG_CAR_COUNT_PACKETS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NG_CAR_COUNT_PACKETS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19]
	sub	x10, x10, #128
	str	x10, [x19]
	tbnz	x10, #63, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	x2, [x9, x8, lsl #3]
	ldr	w1, [x19, #48]
	bl	_NG_SEND_DATA_ONLY
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldp	x8, x9, [x19, #8]
	add	x10, x8, #1
	ldr	x11, [x20]
	cmp	x10, x11
	csinc	x8, xzr, x8, hs
	str	x8, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19, #24]
	ldr	w11, [x21]
	tst	w11, w10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19, #32]
	ldr	x10, [x10, x8, lsl #3]
	ldr	x10, [x10]
	ldr	x11, [x19]
	sub	x10, x11, x10
	str	x10, [x19]
	tbz	x10, #63, LBB0_3
LBB0_6:
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_7:
	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_8:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_9:
	mov	x0, 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	_ng_car_schedule
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_CAR_QUEUE_SIZE,8,3          ; @NG_CAR_QUEUE_SIZE
	.comm	_NG_CAR_COUNT_PACKETS,4,2       ; @NG_CAR_COUNT_PACKETS
.subsections_via_symbols
