	.file	"extr_statsd.c_check_if_metric_is_for_app.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"metric '%s' matches app '%s'"
	.text
	.p2align 4
	.type	check_if_metric_is_for_app, @function
check_if_metric_is_for_app:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	r13, QWORD PTR statsd[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	test	r13, r13
	je	.L1
	mov	r12, rsi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r13, QWORD PTR 32[r13]
	test	r13, r13
	je	.L1
.L2:
	mov	edi, DWORD PTR 28[r13]
	mov	rsi, QWORD PTR [r12]
	call	simple_pattern_matches@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L9
	mov	ecx, DWORD PTR 24[r13]
	mov	rdx, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR D_STATSD[rip]
	call	debug@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	eax, DWORD PTR STATSD_METRIC_OPTION_PRIVATE_CHART_ENABLED[rip]
	test	esi, eax
	je	.L5
	or	eax, DWORD PTR 8[r12]
	mov	edx, eax
.L6:
	mov	ecx, DWORD PTR STATSD_METRIC_OPTION_SHOW_GAPS_WHEN_NOT_COLLECTED[rip]
	mov	eax, ecx
	mov	edi, ecx
	not	eax
	or	edi, edx
	and	eax, edx
	test	esi, ecx
	cmovne	eax, edi
	or	eax, DWORD PTR STATSD_METRIC_OPTION_PRIVATE_CHART_CHECKED[rip]
	mov	DWORD PTR 8[r12], eax
	mov	rax, QWORD PTR 16[r13]
	mov	QWORD PTR -80[rbp], rax
	test	rax, rax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR -80[rbp]
	mov	r14, QWORD PTR [rax]
	test	r14, r14
	jne	.L10
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 28[r14]
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR 16[r12]
	cmp	QWORD PTR 16[r14], rax
	je	.L49
.L20:
	mov	r14, QWORD PTR 48[r14]
	test	r14, r14
	je	.L23
.L10:
	mov	edi, DWORD PTR [r14]
	call	unlikely@PLT
	test	rax, rax
	je	.L12
	mov	rsi, QWORD PTR 8[r14]
	mov	r15, rsp
	mov	rdi, rsi
	mov	QWORD PTR -72[rbp], rsi
	call	strlen@PLT
	mov	rdi, QWORD PTR [r12]
	mov	rbx, rax
	call	strlen@PLT
	mov	rsi, rsp
	add	rax, rbx
	lea	rcx, 1[rax]
	add	rax, 16
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	mov	rsi, QWORD PTR -72[rbp]
	cmp	rsp, rax
	je	.L14
.L50:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L50
.L14:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L15
	or	QWORD PTR -8[rsp+rdx], 0
.L15:
	mov	rdi, rsp
	mov	QWORD PTR -88[rbp], rcx
	mov	QWORD PTR -72[rbp], rsp
	call	strcpy@PLT
	mov	rcx, QWORD PTR -88[rbp]
	mov	edi, DWORD PTR [r14]
	lea	rdx, [rsp+rbx]
	mov	rsi, QWORD PTR [r12]
	sub	rcx, rbx
	call	simple_pattern_matches_extract@PLT
	test	rax, rax
	je	.L16
	xor	ebx, ebx
	cmp	QWORD PTR 8[r13], 0
	mov	r8d, 1
	jne	.L51
.L17:
	mov	edi, r8d
	call	unlikely@PLT
	mov	r9d, DWORD PTR 40[r14]
	mov	r8d, DWORD PTR 44[r14]
	mov	rdi, r13
	test	rax, rax
	mov	eax, DWORD PTR 32[r14]
	cmovne	rbx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [r12]
	mov	rsi, QWORD PTR -80[rbp]
	push	rax
	mov	eax, DWORD PTR 36[r14]
	mov	rcx, rbx
	push	rax
	call	add_dimension_to_app_chart@PLT
	pop	rdx
	pop	rcx
.L16:
	mov	r14, QWORD PTR 48[r14]
	mov	rsp, r15
	test	r14, r14
	jne	.L10
.L23:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
	test	rax, rax
	jne	.L11
	mov	r13, QWORD PTR 32[r13]
	test	r13, r13
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L52
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[r14]
	mov	rsi, QWORD PTR [r12]
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, r14
	mov	rsi, r12
	mov	rdi, r13
	call	link_metric_to_app_dimension@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L51:
	movsx	edi, BYTE PTR [rsp]
	mov	DWORD PTR -88[rbp], r8d
	call	likely@PLT
	mov	r8d, DWORD PTR -88[rbp]
	test	rax, rax
	jne	.L53
.L18:
	mov	edi, r8d
	mov	DWORD PTR -88[rbp], r8d
	call	unlikely@PLT
	mov	r8d, DWORD PTR -88[rbp]
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR [r12]
	call	dictionary_get@PLT
	xor	r8d, r8d
	test	rax, rax
	mov	rbx, rax
	sete	r8b
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, rsp
	call	dictionary_get@PLT
	xor	r8d, r8d
	test	rax, rax
	mov	rbx, rax
	sete	r8b
	jmp	.L18
.L5:
	not	eax
	and	eax, DWORD PTR 8[r12]
	mov	edx, eax
	jmp	.L6
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_if_metric_is_for_app, .-check_if_metric_is_for_app
	.comm	statsd,8,8
	.comm	STATSD_METRIC_OPTION_SHOW_GAPS_WHEN_NOT_COLLECTED,4,4
	.comm	STATSD_METRIC_OPTION_PRIVATE_CHART_ENABLED,4,4
	.comm	STATSD_METRIC_OPTION_PRIVATE_CHART_CHECKED,4,4
	.comm	D_STATSD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_statsd.c_check_if_metric_is_for_app.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"metric '%s' matches app '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_if_metric_is_for_app, %function
check_if_metric_is_for_app:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	ldr	r3, .L48
	ldr	r9, [r3]
	ldr	r3, .L48+4
	cmp	r9, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L1
	mov	r7, r1
	b	.L2
.L9:
	ldr	r9, [r9, #20]
	cmp	r9, #0
	beq	.L1
.L2:
	ldr	r1, [r7]
	ldr	r0, [r9, #16]
	bl	simple_pattern_matches
	bl	unlikely
	cmp	r0, #0
	beq	.L9
	ldr	r0, .L48+8
	ldr	r3, [r9, #12]
	ldr	r2, [r7]
	ldr	r1, .L48+12
	ldr	r0, [r0]
	bl	debug
	ldr	r3, .L48+16
	ldr	r2, [r9]
	ldr	r3, [r3]
	ldr	r1, [r7, #4]
	tst	r2, r3
	orrne	r3, r3, r1
	biceq	r3, r1, r3
	ldr	r1, .L48+20
	ldr	r1, [r1]
	tst	r2, r1
	ldr	r2, .L48+24
	orrne	r3, r1, r3
	biceq	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, [r9, #8]
	orr	r3, r2, r3
	cmp	r1, #0
	str	r3, [r7, #4]
	beq	.L9
	str	r9, [fp, #-48]
	mov	r9, r1
.L11:
	ldr	r4, [r9]
	cmp	r4, #0
	strne	r9, [fp, #-52]
	bne	.L10
	b	.L20
.L12:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L17
	ldr	r2, [r4, #8]
	ldr	r3, [r7, #8]
	cmp	r2, r3
	beq	.L43
.L17:
	ldr	r4, [r4, #36]
	cmp	r4, #0
	beq	.L44
.L10:
	ldr	r0, [r4]
	bl	unlikely
	cmp	r0, #0
	beq	.L12
	ldr	r9, [r4, #4]
	mov	r10, sp
	mov	r0, r9
	bl	strlen
	ldr	r8, [r7]
	mov	r5, r0
	mov	r0, r8
	bl	strlen
	add	r0, r0, r5
	add	r3, r0, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r6, sp, #16
	mov	r1, r9
	add	r2, r5, #1
	add	r9, r0, #1
	mov	r0, r6
	bl	memcpy
	mov	r1, r8
	ldr	r0, [r4]
	sub	r3, r9, r5
	add	r2, r6, r5
	bl	simple_pattern_matches_extract
	cmp	r0, #0
	beq	.L13
	ldr	r3, [fp, #-48]
	ldr	r5, [r3, #4]
	cmp	r5, #0
	moveq	r8, #1
	bne	.L45
.L14:
	mov	r0, r8
	bl	unlikely
	ldr	r3, [r4, #20]
	ldr	r2, [r7]
	str	r3, [sp, #12]
	ldr	r1, [r4, #24]
	cmp	r0, #0
	str	r1, [sp, #8]
	ldr	r1, [r4, #28]
	moveq	r3, r5
	str	r1, [sp, #4]
	ldr	r0, [r4, #32]
	ldr	r1, [fp, #-52]
	str	r0, [sp]
	movne	r3, r6
	ldr	r0, [fp, #-48]
	bl	add_dimension_to_app_chart
.L13:
	ldr	r4, [r4, #36]
	mov	sp, r10
	cmp	r4, #0
	bne	.L10
.L44:
	ldr	r9, [fp, #-52]
.L20:
	ldr	r9, [r9, #4]
	cmp	r9, #0
	bne	.L11
	ldr	r9, [fp, #-48]
	ldr	r9, [r9, #20]
	cmp	r9, #0
	bne	.L2
.L1:
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldr	r1, [r7]
	ldr	r0, [r4, #12]
	bl	strcmp
	cmp	r0, #0
	bne	.L17
	mov	r3, r4
	mov	r1, r7
	ldr	r2, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	link_metric_to_app_dimension
	b	.L17
.L45:
	ldrb	r0, [r6]	@ zero_extendqisi2
	bl	likely
	subs	r5, r0, #0
	moveq	r8, #1
	bne	.L47
.L15:
	mov	r0, r8
	bl	unlikely
	cmp	r0, #0
	beq	.L14
	ldr	r3, [fp, #-48]
	ldr	r1, [r7]
	ldr	r0, [r3, #4]
	bl	dictionary_get
	clz	r8, r0
	mov	r5, r0
	lsr	r8, r8, #5
	b	.L14
.L47:
	ldr	r3, [fp, #-48]
	mov	r1, r6
	ldr	r0, [r3, #4]
	bl	dictionary_get
	clz	r8, r0
	mov	r5, r0
	lsr	r8, r8, #5
	b	.L15
.L46:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	statsd
	.word	.LC1
	.word	D_STATSD
	.word	.LC0
	.word	STATSD_METRIC_OPTION_PRIVATE_CHART_ENABLED
	.word	STATSD_METRIC_OPTION_SHOW_GAPS_WHEN_NOT_COLLECTED
	.word	STATSD_METRIC_OPTION_PRIVATE_CHART_CHECKED
	.size	check_if_metric_is_for_app, .-check_if_metric_is_for_app
	.comm	statsd,4,4
	.comm	STATSD_METRIC_OPTION_SHOW_GAPS_WHEN_NOT_COLLECTED,4,4
	.comm	STATSD_METRIC_OPTION_PRIVATE_CHART_ENABLED,4,4
	.comm	STATSD_METRIC_OPTION_PRIVATE_CHART_CHECKED,4,4
	.comm	D_STATSD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
