	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_ip_ratelimit_inc         ## -- Begin function infra_ip_ratelimit_inc
	.p2align	4, 0x90
_infra_ip_ratelimit_inc:                ## @infra_ip_ratelimit_inc
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_infra_ip_ratelimit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, %ebx
	movl	$1, %edx
	callq	_infra_find_ip_ratedata
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r13
	movl	4(%rax), %edi
	movl	%r15d, %esi
	callq	_infra_rate_max
	movl	%eax, %ebx
	movl	4(%r13), %edi
	movl	%r15d, %esi
	callq	_infra_rate_find_second
	incl	(%rax)
	movl	4(%r13), %edi
	movl	%r15d, %esi
	callq	_infra_rate_max
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_lock_rw_unlock
	movq	_infra_ip_ratelimit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.4:
	cmpl	%eax, %r15d
	jl	LBB0_17
## %bb.5:
	movl	%r15d, -180(%rbp)               ## 4-byte Spill
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addl	$25, %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %esi
	addq	$4, %r14
	leaq	-176(%rbp), %rdx
	movq	%r14, %rdi
	movl	$128, %ecx
	callq	_addr_to_str
	movb	$0, (%r15)
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sldns_buffer_limit
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jle	LBB0_15
## %bb.6:
	movq	%rbx, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %edi
	callq	_LDNS_QDCOUNT
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_sldns_buffer_at
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_sldns_buffer_limit
	subq	(%r12), %rax
	movl	%r14d, %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_sldns_wire2str_rrquestion_buf
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%r15)
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r15)
LBB0_10:
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	-192(%rbp), %r14                ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movb	$32, (%rax)
LBB0_12:
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	_infra_ip_ratelimit@GOTPCREL(%rip), %rbx
	je	LBB0_14
## %bb.13:
	movb	$32, (%rax)
LBB0_14:
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-176(%rbp), %rdx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_verbose
	jmp	LBB0_16
LBB0_1:
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_infra_ip_create_ratedata
	jmp	LBB0_19
LBB0_15:
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_infra_ip_ratelimit@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %rdx
	xorl	%eax, %eax
	callq	_verbose
	movq	-192(%rbp), %r14                ## 8-byte Reload
LBB0_16:
	movq	%r14, %rsp
	movl	(%rbx), %eax
	movl	-180(%rbp), %r15d               ## 4-byte Reload
LBB0_17:
	xorl	%ebx, %ebx
	cmpl	%eax, %r15d
	setle	%bl
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_infra_ip_ratelimit,4,2         ## @infra_ip_ratelimit
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ## @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_HEADER_SIZE,8,3           ## @LDNS_HEADER_SIZE
	.comm	_VERB_OPS,4,2                   ## @VERB_OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_ratelimit exceeded %s %d %s"

L_.str.1:                               ## @.str.1
	.asciz	"ip_ratelimit exceeded %s %d (no query name)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_infra_ip_ratelimit_inc         ; -- Begin function infra_ip_ratelimit_inc
	.p2align	2
_infra_ip_ratelimit_inc:                ; @infra_ip_ratelimit_inc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #144
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _infra_ip_ratelimit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _infra_ip_ratelimit@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	w2, #1
	bl	_infra_find_ip_ratedata
	cbz	x0, LBB0_13
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #4]
	mov	x1, x19
	bl	_infra_rate_max
	mov	x23, x0
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_infra_rate_find_second
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_infra_rate_max
	mov	x19, x0
	mov	x0, x20
	bl	_lock_rw_unlock
	ldr	w8, [x24]
	cmp	w23, w8
	ccmp	w19, w8, #8, lt
	b.lt	LBB0_17
; %bb.3:
	mov	x25, sp
Lloh5:
	adrp	x8, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w23, w8, #25
	mov	x9, x23
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	w1, [x22], #4
	sub	x2, x29, #200
	mov	x0, x22
	mov	w3, #128
	bl	_addr_to_str
	strb	wzr, [x20]
	mov	x0, x21
	bl	_sldns_buffer_limit
Lloh10:
	adrp	x26, _LDNS_HEADER_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _LDNS_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.le	LBB0_15
; %bb.4:
	mov	x0, x21
	bl	_sldns_buffer_begin
	bl	_LDNS_QDCOUNT
	cbz	x0, LBB0_15
; %bb.5:
	ldr	x1, [x26]
	mov	x0, x21
	bl	_sldns_buffer_at
	mov	x22, x0
	mov	x0, x21
	bl	_sldns_buffer_limit
	ldr	x8, [x26]
	sub	x1, x0, x8
	mov	x0, x22
	mov	x2, x20
	mov	x3, x23
	bl	_sldns_wire2str_rrquestion_buf
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	sturb	wzr, [x8, #-1]
LBB0_8:
	mov	x0, x20
	mov	w1, #9
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.9:
	mov	w8, #32
	strb	w8, [x0]
LBB0_10:
	mov	x0, x20
	mov	w1, #9
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:
	mov	w8, #32
	strb	w8, [x0]
LBB0_12:
Lloh12:
	adrp	x8, _VERB_OPS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VERB_OPS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w3, [x24]
	str	x20, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #200
	bl	_verbose
	add	sp, sp, #16
	b	LBB0_16
LBB0_13:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_infra_ip_create_ratedata
LBB0_14:
	mov	w0, #1
	b	LBB0_18
LBB0_15:
Lloh17:
	adrp	x8, _VERB_OPS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VERB_OPS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w3, [x24]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #200
	bl	_verbose
LBB0_16:
	mov	sp, x25
	ldr	w8, [x24]
LBB0_17:
	cmp	w19, w8
	cset	w0, le
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_infra_ip_ratelimit,4,2         ; @infra_ip_ratelimit
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ; @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_HEADER_SIZE,8,3           ; @LDNS_HEADER_SIZE
	.comm	_VERB_OPS,4,2                   ; @VERB_OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_ratelimit exceeded %s %d %s"

l_.str.1:                               ; @.str.1
	.asciz	"ip_ratelimit exceeded %s %d (no query name)"

.subsections_via_symbols
