	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_ratelimiter_create         ## -- Begin function isc_ratelimiter_create
	.p2align	4, 0x90
_isc_ratelimiter_create:                ## @isc_ratelimiter_create
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r14)
	sete	%dil
LBB0_2:
	callq	_INSIST
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, 48(%rax)
	movl	$1, (%rax)
	movq	%r13, 24(%rax)
	leaq	40(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_isc_interval_set
	movq	$0, 16(%rbx)
	movl	$1, 4(%rbx)
	movq	_isc_ratelimiter_idle@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edi
	callq	_ISC_LIST_INIT
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_isc_mutex_init
	movq	%rax, %r12
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_8
## %bb.5:
	leaq	16(%rbx), %rax
	movq	_isc_timertype_inactive@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	24(%rbx), %r8
	movq	_ratelimiter_tick@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rax, 8(%rsp)
	movq	%rbx, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_isc_timer_create
	movq	%rax, %r12
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_7
## %bb.6:
	incl	(%rbx)
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	%rax, %r15
	movq	_ISC_RATELIMITEREVENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ratelimiter_shutdowncomplete@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%rbx, 8(%rsp)
	movq	%rbx, (%rsp)
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ISC_EVENT_INIT
	movq	%rbx, (%r14)
	movq	(%r15), %r12
	jmp	LBB0_9
LBB0_3:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	callq	_DESTROYLOCK
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$56, %edx
	callq	_isc_mem_put
LBB0_9:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ## @ISC_R_NOMEMORY
	.comm	_isc_ratelimiter_idle,4,2       ## @isc_ratelimiter_idle
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_isc_timertype_inactive,4,2     ## @isc_timertype_inactive
	.comm	_ratelimiter_tick,4,2           ## @ratelimiter_tick
	.comm	_ISC_RATELIMITEREVENT_SHUTDOWN,4,2 ## @ISC_RATELIMITEREVENT_SHUTDOWN
	.comm	_ratelimiter_shutdowncomplete,4,2 ## @ratelimiter_shutdowncomplete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_ratelimiter_create         ; -- Begin function isc_ratelimiter_create
	.p2align	2
_isc_ratelimiter_create:                ; @isc_ratelimiter_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	cbz	x3, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_INSIST
	mov	x0, x21
	mov	w1, #56
	bl	_isc_mem_get
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	str	x21, [x0, #48]
	mov	w24, #1
	str	w24, [x0]
	str	x23, [x0, #24]
	add	x0, x0, #40
	mov	w1, #0
	mov	w2, #0
	bl	_isc_interval_set
	mov	x25, x20
	str	xzr, [x25, #16]!
	stur	w24, [x25, #-12]
Lloh0:
	adrp	x8, _isc_ratelimiter_idle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _isc_ratelimiter_idle@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x25, #20]
	ldr	w0, [x25, #16]
	bl	_ISC_LIST_INIT
	sub	x23, x25, #8
	mov	x0, x23
	bl	_isc_mutex_init
	mov	x24, x0
Lloh3:
	adrp	x26, _ISC_R_SUCCESS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
Lloh5:
	adrp	x8, _isc_timertype_inactive@GOTPAGE
Lloh6:
	ldr	x8, [x8, _isc_timertype_inactive@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x4, [x20, #24]
Lloh8:
	adrp	x8, _ratelimiter_tick@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ratelimiter_tick@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x2, #0
	mov	x3, #0
	mov	x6, x20
	mov	x7, x25
	bl	_isc_timer_create
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x0, x20, #12
Lloh11:
	adrp	x8, _ISC_RATELIMITEREVENT_SHUTDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISC_RATELIMITEREVENT_SHUTDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _ratelimiter_shutdowncomplete@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ratelimiter_shutdowncomplete@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	stp	xzr, xzr, [sp]
	mov	w1, #4
	mov	w2, #0
	mov	x3, #0
	mov	x6, x20
	mov	x7, x20
	bl	_ISC_EVENT_INIT
	str	x20, [x19]
	ldr	x24, [x26]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
Lloh19:
	ldr	x24, [x8]
	b	LBB0_10
LBB0_8:
	mov	x24, x0
	mov	x0, x23
	bl	_DESTROYLOCK
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #56
	bl	_isc_mem_put
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ; @ISC_R_NOMEMORY
	.comm	_isc_ratelimiter_idle,4,2       ; @isc_ratelimiter_idle
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_isc_timertype_inactive,4,2     ; @isc_timertype_inactive
	.comm	_ratelimiter_tick,4,2           ; @ratelimiter_tick
	.comm	_ISC_RATELIMITEREVENT_SHUTDOWN,4,2 ; @ISC_RATELIMITEREVENT_SHUTDOWN
	.comm	_ratelimiter_shutdowncomplete,4,2 ; @ratelimiter_shutdowncomplete
.subsections_via_symbols
