	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ev_token_bucket_cfg_new        ## -- Begin function ev_token_bucket_cfg_new
	.p2align	4, 0x90
_ev_token_bucket_cfg_new:               ## @ev_token_bucket_cfg_new
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	testq	%r8, %r8
	jne	LBB0_2
## %bb.1:
	movq	$1, -56(%rbp)
	leaq	-56(%rbp), %r14
LBB0_2:
	xorl	%ebx, %ebx
	cmpq	%r12, %r13
	jbe	LBB0_3
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testq	%r13, %r13
	je	LBB0_12
## %bb.4:
	leaq	-1(%rdx), %rax
	cmpq	%r15, %rax
	jae	LBB0_12
## %bb.5:
	movq	_EV_RATE_LIMIT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	%r15, %rax
	jb	LBB0_12
## %bb.6:
	cmpq	%r12, %rax
	jb	LBB0_12
## %bb.7:
	cmpq	%r13, %rax
	jb	LBB0_12
## %bb.8:
	cmpq	%rdx, %rax
	jb	LBB0_12
## %bb.9:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$40, %esi
	callq	_mm_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	%r13, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%r12, 16(%rbx)
	movq	%r15, 24(%rbx)
	movq	%rbx, %rdi
	addq	$36, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	imull	$1000, (%r14), %eax             ## imm = 0x3E8
	movq	_COMMON_TIMEOUT_MICROSECONDS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r14), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, 32(%rbx)
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_RATE_LIMIT_MAX,8,3          ## @EV_RATE_LIMIT_MAX
	.comm	_COMMON_TIMEOUT_MICROSECONDS_MASK,4,2 ## @COMMON_TIMEOUT_MICROSECONDS_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ev_token_bucket_cfg_new
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ev_token_bucket_cfg_new
	.p2align	2
_ev_token_bucket_cfg_new:               ; @ev_token_bucket_cfg_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	cbz	x4, LBB0_2
; %bb.1:
	cmp	x24, x22
	b.ls	LBB0_3
	b	LBB0_8
LBB0_2:
	add	x19, sp, #8
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	cmp	x24, x22
	b.hi	LBB0_8
LBB0_3:
	mov	x21, #0
	cbz	x24, LBB0_9
; %bb.4:
	sub	x8, x23, #1
	cmp	x8, x20
	b.hs	LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _EV_RATE_LIMIT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_RATE_LIMIT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	x8, x22, #0, hs
	ccmp	x8, x24, #0, hs
	ccmp	x8, x23, #0, hs
	b.lo	LBB0_8
; %bb.6:
	mov	w0, #1
	mov	w1, #40
	bl	_mm_calloc
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.7:
	stp	x24, x23, [x21]
	add	x0, x21, #36
	stp	x22, x20, [x21, #16]
	mov	x1, x19
	mov	w2, #8
	bl	_memcpy
	mov	w8, #1000
	ldp	w9, w10, [x19]
Lloh5:
	adrp	x11, _COMMON_TIMEOUT_MICROSECONDS_MASK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _COMMON_TIMEOUT_MICROSECONDS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	and	w10, w11, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #6
	madd	w8, w9, w8, w10
	str	w8, [x21, #32]
	b	LBB0_9
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_RATE_LIMIT_MAX,8,3          ; @EV_RATE_LIMIT_MAX
	.comm	_COMMON_TIMEOUT_MICROSECONDS_MASK,4,2 ; @COMMON_TIMEOUT_MICROSECONDS_MASK
.subsections_via_symbols
