	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bev_group_refill_callback_
_bev_group_refill_callback_:            ## @bev_group_refill_callback_
	.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
	movq	%rdx, %rbx
	leaq	60(%rdx), %rdi
	callq	_event_get_base
	leaq	-32(%rbp), %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_event_base_gettimeofday_cached
	movq	%rbx, %rdi
	callq	_LOCK_GROUP
	leaq	56(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ev_token_bucket_get_tick_
	leaq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ev_token_bucket_update_
	cmpq	$0, 48(%rbx)
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_bev_group_unsuspend_reading_
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_bev_group_unsuspend_writing_
LBB0_8:
	movq	%rbx, %rdi
	callq	_UNLOCK_GROUP
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_3
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.6:
	movq	16(%rbx), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bev_group_refill_callback_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bev_group_refill_callback_
_bev_group_refill_callback_:            ; @bev_group_refill_callback_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	add	x0, x2, #60
	bl	_event_get_base
	add	x1, sp, #8
	bl	_event_base_gettimeofday_cached
	mov	x0, x19
	bl	_LOCK_GROUP
	add	x20, x19, #56
	add	x0, sp, #8
	mov	x1, x20
	bl	_ev_token_bucket_get_tick_
	mov	x2, x0
	add	x0, x19, #8
	mov	x1, x20
	bl	_ev_token_bucket_update_
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
LBB0_1:
	mov	x0, x19
	bl	_bev_group_unsuspend_reading_
LBB0_2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_bev_group_unsuspend_writing_
LBB0_4:
	mov	x0, x19
	bl	_UNLOCK_GROUP
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
; %bb.6:
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.ge	LBB0_1
	b	LBB0_2
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bev_group_refill_callback_
.subsections_via_symbols
