	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_rate_limit_group_new ## -- Begin function bufferevent_rate_limit_group_new
	.p2align	4, 0x90
_bufferevent_rate_limit_group_new:      ## @bufferevent_rate_limit_group_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_event_base_gettimeofday_cached
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ev_token_bucket_get_tick_
	movl	%eax, %r12d
	movl	$1, %edi
	movl	$24, %esi
	callq	_mm_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	20(%rbx), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	16(%rbx), %rdi
	callq	_LIST_INIT
	leaq	12(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ev_token_bucket_init_
	movq	%rbx, %r12
	addq	$8, %r12
	movq	_EV_PERSIST@GOTPCREL(%rip), %rax
	movq	_EV_FINALIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_bev_group_refill_callback_@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$-1, %edx
	movq	%rbx, %r9
	callq	_event_assign
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_event_add
	movl	4(%rbx), %edi
	movq	_EVTHREAD_LOCKTYPE_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVTHREAD_ALLOC_LOCK
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_bufferevent_rate_limit_group_set_min_share
	movl	-40(%rbp), %esi
	addl	%ebx, %esi
	addl	-48(%rbp), %esi
	movq	%rbx, %rdi
	callq	_evutil_weakrand_seed_
LBB0_2:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ## @EV_FINALIZE
	.comm	_bev_group_refill_callback_,4,2 ## @bev_group_refill_callback_
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ## @EVTHREAD_LOCKTYPE_RECURSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_rate_limit_group_new ; -- Begin function bufferevent_rate_limit_group_new
	.p2align	2
_bufferevent_rate_limit_group_new:      ; @bufferevent_rate_limit_group_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
	mov	x1, sp
	bl	_event_base_gettimeofday_cached
	mov	x0, sp
	mov	x1, x20
	bl	_ev_token_bucket_get_tick_
	mov	x22, x0
	mov	w0, #1
	mov	w1, #24
	bl	_mm_calloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #20
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #16
	bl	_LIST_INIT
	add	x0, x19, #12
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	bl	_ev_token_bucket_init_
	add	x22, x19, #8
Lloh0:
	adrp	x8, _EV_PERSIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_PERSIST@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EV_FINALIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_FINALIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh6:
	adrp	x8, _bev_group_refill_callback_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bev_group_refill_callback_@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #-1
	mov	x5, x19
	bl	_event_assign
	mov	x0, x22
	mov	x1, x20
	bl	_event_add
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_EVTHREAD_ALLOC_LOCK
	mov	x0, x19
	mov	w1, #64
	bl	_bufferevent_rate_limit_group_set_min_share
	ldr	w8, [sp, #8]
	ldr	w9, [sp]
	add	w8, w8, w19
	add	w1, w8, w9
	mov	x0, x19
	bl	_evutil_weakrand_seed_
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ; @EV_FINALIZE
	.comm	_bev_group_refill_callback_,4,2 ; @bev_group_refill_callback_
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ; @EVTHREAD_LOCKTYPE_RECURSIVE
.subsections_via_symbols
