	.file	"extr_dtrace.c_dtrace_helper_slurp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dtrace"
.LC1:
	.string	"helper"
.LC2:
	.string	"ustack"
.LC3:
	.string	"unmatched helpers"
	.text
	.p2align 4
	.type	dtrace_helper_slurp, @function
dtrace_helper_slurp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	lea	rdi, dtrace_lock[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 24[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsp], 0
	call	MUTEX_HELD@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	r15, QWORD PTR [rbx]
	test	r15, r15
	je	.L25
.L2:
	mov	eax, DWORD PTR B_FALSE[rip]
	lea	rcx, 32[rsp]
	mov	rdi, r14
	xor	edx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	lea	rsi, 4[r15]
	push	rax
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 32[rsp]
	mov	r9d, DWORD PTR [rax]
	mov	r8d, DWORD PTR 4[rax]
	call	dtrace_dof_slurp@PLT
	pop	rsi
	.cfi_def_cfa_offset 120
	pop	rdi
	.cfi_def_cfa_offset 112
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	ecx, DWORD PTR [r14]
	mov	DWORD PTR 12[rsp], 0
	xor	ebx, ebx
	test	ecx, ecx
	jg	.L4
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L5
.L4:
	mov	eax, DWORD PTR 4[r14]
	mov	rsi, QWORD PTR 8[r14]
	imul	eax, ebx
	add	rsi, r14
	cdqe
	add	rsi, rax
	mov	rax, QWORD PTR DOF_SECT_PROVIDER[rip]
	cmp	QWORD PTR [rsi], rax
	jne	.L7
	mov	rdi, r14
	call	dtrace_helper_provider_validate@PLT
	test	rax, rax
	jne	.L23
	add	DWORD PTR 12[rsp], 1
	add	ebx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L4
.L5:
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L9
	xor	ebx, ebx
	lea	rbp, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[rdi]
	mov	rsi, rbp
	mov	r13, QWORD PTR [rax+rbx*8]
	mov	edi, DWORD PTR 8[r13]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR 4[r13]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR DTRACE_HELPER_ACTION_USTACK[rip]
	mov	rdx, r15
	mov	rsi, r13
	call	dtrace_helper_action_add@PLT
	test	eax, eax
	jne	.L27
	add	r12d, 1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 32[rsp]
	add	rbx, 1
	mov	eax, DWORD PTR [rdi]
	cmp	eax, ebx
	jg	.L12
	cmp	eax, r12d
	jg	.L28
.L9:
	mov	r12d, DWORD PTR [r15]
	lea	eax, 1[r12]
	mov	DWORD PTR [r15], eax
	call	dtrace_enabling_destroy@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L13
	mov	rcx, QWORD PTR 16[rsp]
	mov	edx, r12d
	mov	rsi, r15
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rcx], r14d
	mov	rdi, rcx
	mov	DWORD PTR 4[rcx], eax
	call	dtrace_helper_provider_add@PLT
	test	rax, rax
	je	.L29
.L13:
	mov	rdi, r14
	call	dtrace_dof_destroy@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	mov	esi, DWORD PTR [r15]
	mov	rdi, r15
	call	dtrace_helper_destroygen@PLT
.L23:
	mov	rdi, QWORD PTR 32[rsp]
	mov	r12d, -1
	call	dtrace_enabling_destroy@PLT
	mov	rdi, r14
	call	dtrace_dof_destroy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r14
	lea	rsi, .LC3[rip]
	call	dtrace_dof_error@PLT
	mov	rdi, QWORD PTR 32[rsp]
	jmp	.L9
.L29:
	lea	rdi, dtrace_lock[rip]
	call	mutex_exit@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	call	dtrace_helper_provider_register@PLT
	lea	rdi, dtrace_lock[rip]
	call	mutex_enter@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, QWORD PTR 24[rsp]
	call	dtrace_helpers_create@PLT
	mov	r15, rax
	jmp	.L2
.L26:
	mov	DWORD PTR 12[rsp], eax
	jmp	.L5
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dtrace_helper_slurp, .-dtrace_helper_slurp
	.comm	dtrace_lock,4,4
	.comm	DTRACE_HELPER_ACTION_USTACK,4,4
	.comm	DOF_SECT_PROVIDER,8,8
	.comm	B_FALSE,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_dtrace.c_dtrace_helper_slurp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dtrace\000"
	.align	2
.LC1:
	.ascii	"helper\000"
	.align	2
.LC2:
	.ascii	"ustack\000"
	.align	2
.LC3:
	.ascii	"unmatched helpers\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtrace_helper_slurp, %function
dtrace_helper_slurp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	sub	sp, sp, #36
	str	r2, [sp, #20]
	ldr	r2, .L29
	str	r1, [sp, #16]
	mov	r4, r0
	ldr	r0, .L29+4
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp, #24]
	bl	MUTEX_HELD
	bl	ASSERT
	ldr	r10, [r5]
	cmp	r10, #0
	beq	.L24
.L2:
	ldr	r0, [sp, #16]
	ldr	r3, .L29+8
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r3, [r0, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #0
	mov	r0, r4
	add	r3, sp, #24
	add	r1, r10, #4
	bl	dtrace_dof_slurp
	subs	r6, r0, #0
	bne	.L13
	ldr	r2, [r4]
	mov	r8, r6
	cmp	r2, #0
	movgt	r5, r6
	ldrgt	r7, .L29+12
	bgt	.L4
	b	.L5
.L7:
	add	r5, r5, #1
	cmp	r2, r5
	ble	.L5
.L4:
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	mul	r3, r5, r3
	add	r1, r4, r1
	ldr	ip, [r1, r3]
	ldr	r0, [r7]
	add	r1, r1, r3
	cmp	ip, r0
	bne	.L7
	mov	r0, r4
	bl	dtrace_helper_provider_validate
	cmp	r0, #0
	bne	.L22
	ldr	r2, [r4]
	add	r5, r5, #1
	cmp	r2, r5
	add	r8, r8, #1
	bgt	.L4
.L5:
	ldr	r0, [sp, #24]
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L9
	mov	r9, #0
	ldr	r7, .L29+16
	ldr	fp, .L29+20
.L12:
	ldr	r3, [r0, #4]
	mov	r1, r7
	ldr	r5, [r3, r9, lsl #2]
	ldr	r0, [r5, #8]
	bl	strcmp
	cmp	r0, #0
	bne	.L10
	mov	r1, fp
	ldr	r0, [r5, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L10
	ldr	r1, .L29+24
	ldr	r0, [r5]
	bl	strcmp
	cmp	r0, #0
	bne	.L10
	ldr	r3, .L29+28
	mov	r1, r5
	mov	r2, r10
	ldr	r0, [r3]
	bl	dtrace_helper_action_add
	cmp	r0, #0
	bne	.L25
	add	r6, r6, #1
.L10:
	ldr	r0, [sp, #24]
	add	r9, r9, #1
	ldr	r2, [r0]
	cmp	r2, r9
	bgt	.L12
	cmp	r2, r6
	bgt	.L26
.L9:
	ldr	r6, [r10]
	add	r3, r6, #1
	str	r3, [r10]
	bl	dtrace_enabling_destroy
	cmp	r8, #0
	beq	.L13
	ldr	r0, [sp, #16]
	mov	r2, r6
	ldr	r3, [r0]
	mov	r1, r10
	str	r3, [r0, #4]
	str	r4, [r0]
	bl	dtrace_helper_provider_add
	cmp	r0, #0
	beq	.L27
.L13:
	mov	r0, r4
	bl	dtrace_dof_destroy
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r0, r10
	ldr	r1, [r10]
	bl	dtrace_helper_destroygen
.L22:
	ldr	r0, [sp, #24]
	bl	dtrace_enabling_destroy
	mov	r0, r4
	bl	dtrace_dof_destroy
	mvn	r6, #0
	b	.L1
.L26:
	mov	r0, r4
	ldr	r1, .L29+32
	bl	dtrace_dof_error
	ldr	r0, [sp, #24]
	b	.L9
.L27:
	ldr	r0, .L29+4
	bl	mutex_exit
	mov	r1, r10
	ldr	r2, [sp, #16]
	ldr	r0, [sp, #20]
	bl	dtrace_helper_provider_register
	ldr	r0, .L29+4
	bl	mutex_enter
	b	.L1
.L24:
	ldr	r0, [sp, #20]
	bl	dtrace_helpers_create
	mov	r10, r0
	b	.L2
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC4
	.word	dtrace_lock
	.word	B_FALSE
	.word	DOF_SECT_PROVIDER
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	DTRACE_HELPER_ACTION_USTACK
	.word	.LC3
	.size	dtrace_helper_slurp, .-dtrace_helper_slurp
	.comm	dtrace_lock,4,4
	.comm	DTRACE_HELPER_ACTION_USTACK,4,4
	.comm	DOF_SECT_PROVIDER,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
