	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ev_token_bucket_update_        ## -- Begin function ev_token_bucket_update_
	.p2align	4, 0x90
_ev_token_bucket_update_:               ## @ev_token_bucket_update_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r8
	xorl	%eax, %eax
	movl	(%rdi), %edx
	movl	%r8d, %ecx
	subl	%edx, %ecx
	je	LBB0_3
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jb	LBB0_3
## %bb.2:
	movl	(%rsi), %r9d
	movl	4(%rsi), %r10d
	movl	8(%rdi), %r11d
	movl	12(%rdi), %r14d
	movl	%r9d, %eax
	subl	%r11d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%r10d, %edx
	imull	%ecx, %edx
	addl	%r11d, %edx
	cmpl	%r10d, %eax
	cmovbl	%r9d, %edx
	movl	%edx, 8(%rdi)
	movl	8(%rsi), %ebx
	movl	12(%rsi), %esi
	movl	%ebx, %eax
	subl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	imull	%esi, %ecx
	addl	%r14d, %ecx
	cmpl	%esi, %eax
	cmovbl	%ebx, %ecx
	movl	%ecx, 12(%rdi)
	movq	%r8, (%rdi)
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ev_token_bucket_update_        ; -- Begin function ev_token_bucket_update_
	.p2align	2
_ev_token_bucket_update_:               ; @ev_token_bucket_update_
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w8, w2, w8
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w8, #0, ne
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	ldp	w9, w10, [x1]
	ldp	w11, w12, [x0, #8]
	sub	w13, w9, w11
	udiv	w13, w13, w8
	madd	w11, w10, w8, w11
	cmp	w13, w10
	csel	w9, w9, w11, lo
	ldp	w10, w11, [x1, #8]
	sub	w13, w10, w12
	madd	w12, w11, w8, w12
	udiv	w8, w13, w8
	cmp	w8, w11
	csel	w8, w10, w12, lo
	stp	w9, w8, [x0, #8]
	str	x2, [x0]
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
