	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function app_func_event
_app_func_event:                        ## @app_func_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.2:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.4:
	movq	%rcx, %r14
	movl	%esi, %r15d
	cmpq	$8, %rcx
	jne	LBB0_8
## %bb.5:
	movq	_AVAPP_EVENT_IO_TRAFFIC@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.7:
	addl	%esi, 20(%rbx)
	leaq	16(%rbx), %rdi
	callq	_SDL_SpeedSampler2Add
	movl	(%rbx), %edi
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	$12, %r14
	jne	LBB0_11
## %bb.9:
	movq	_AVAPP_EVENT_ASYNC_STATISTIC@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
LBB0_11:
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inject_callback                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVAPP_EVENT_IO_TRAFFIC,4,2     ## @AVAPP_EVENT_IO_TRAFFIC
	.comm	_AVAPP_EVENT_ASYNC_STATISTIC,4,2 ## @AVAPP_EVENT_ASYNC_STATISTIC
	.no_dead_strip	_app_func_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function app_func_event
_app_func_event:                        ; @app_func_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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_8
; %bb.2:
	ldr	x22, [x0]
	cbz	x22, LBB0_8
; %bb.3:
	ldr	w0, [x22]
	cbz	w0, LBB0_8
; %bb.4:
	mov	x19, x3
	mov	x21, x1
	cmp	x3, #8
	b.ne	LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _AVAPP_EVENT_IO_TRAFFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVAPP_EVENT_IO_TRAFFIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.6:
	ldr	x1, [x20]
	cmp	x1, #1
	b.lt	LBB0_12
; %bb.7:
	ldr	w8, [x22, #20]
	add	w8, w8, w1
	str	w8, [x22, #20]
	add	x0, x22, #16
	bl	_SDL_SpeedSampler2Add
	ldr	w0, [x22]
	b	LBB0_12
LBB0_8:
	mov	w0, #0
	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_9:
	cmp	x19, #12
	b.ne	LBB0_12
; %bb.10:
Lloh3:
	adrp	x8, _AVAPP_EVENT_ASYNC_STATISTIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVAPP_EVENT_ASYNC_STATISTIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x20, #8]
	str	w8, [x22, #12]
	ldr	d0, [x20]
	stur	d0, [x22, #4]
LBB0_12:
	mov	x1, x21
	mov	x2, x20
	mov	x3, 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	_inject_callback
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVAPP_EVENT_IO_TRAFFIC,4,2     ; @AVAPP_EVENT_IO_TRAFFIC
	.comm	_AVAPP_EVENT_ASYNC_STATISTIC,4,2 ; @AVAPP_EVENT_ASYNC_STATISTIC
	.no_dead_strip	_app_func_event
.subsections_via_symbols
