	.file	"extr_dtrace.c_dtrace_probe_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dtrace_probe_create
	.type	dtrace_probe_create, @function
dtrace_probe_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR dtrace_provider[rip], rdi
	mov	DWORD PTR 4[rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	je	.L11
	lea	rdi, dtrace_lock[rip]
	call	lck_mtx_lock@PLT
.L3:
	mov	edi, DWORD PTR dtrace_arena[rip]
	mov	esi, 1
	mov	edx, DWORD PTR VM_BESTFIT[rip]
	or	edx, DWORD PTR VM_SLEEP[rip]
	call	vmem_alloc@PLT
	mov	edi, DWORD PTR dtrace_probe_t_zone[rip]
	mov	r12, rax
	call	zalloc@PLT
	mov	esi, 56
	mov	rdi, rax
	mov	rbx, rax
	call	bzero@PLT
	movsx	rax, DWORD PTR dtrace_probegen[rip]
	mov	DWORD PTR [rbx], r12d
	mov	rdi, r15
	mov	QWORD PTR 48[rbx], rax
	lea	edx, 1[rax]
	mov	DWORD PTR dtrace_probegen[rip], edx
	call	dtrace_strref@PLT
	mov	rdi, r14
	mov	QWORD PTR 40[rbx], rax
	call	dtrace_strref@PLT
	mov	rdi, r13
	mov	QWORD PTR 32[rbx], rax
	call	dtrace_strref@PLT
	mov	QWORD PTR 8[rbx], rbp
	mov	edi, DWORD PTR dtrace_byprov[rip]
	mov	rsi, rbx
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rbx], eax
	call	dtrace_hash_add@PLT
	mov	edi, DWORD PTR dtrace_bymod[rip]
	mov	rsi, rbx
	call	dtrace_hash_add@PLT
	mov	edi, DWORD PTR dtrace_byfunc[rip]
	mov	rsi, rbx
	call	dtrace_hash_add@PLT
	mov	edi, DWORD PTR dtrace_byname[rip]
	mov	rsi, rbx
	call	dtrace_hash_add@PLT
	movsx	rdi, DWORD PTR dtrace_nprobes[rip]
	cmp	edi, r12d
	jge	.L4
	lea	r13, 0[0+rdi*8]
	sal	rdi, 4
	je	.L12
.L5:
	mov	esi, DWORD PTR KM_SLEEP[rip]
	call	kmem_zalloc@PLT
	mov	r15, QWORD PTR dtrace_probes[rip]
	mov	r14, rax
	test	r15, r15
	je	.L13
	mov	rdx, r13
	mov	rsi, rax
	mov	rdi, r15
	call	bcopy@PLT
	xor	eax, eax
	call	dtrace_membar_producer@PLT
	xor	eax, eax
	mov	QWORD PTR dtrace_probes[rip], r14
	call	dtrace_sync@PLT
	mov	rsi, r13
	mov	rdi, r15
	call	kmem_free@PLT
	mov	eax, DWORD PTR dtrace_nprobes[rip]
	add	eax, eax
	mov	DWORD PTR dtrace_nprobes[rip], eax
.L7:
	xor	edi, edi
	cmp	r12d, eax
	setle	dil
	call	ASSERT@PLT
.L4:
	mov	rdx, QWORD PTR dtrace_probes[rip]
	movsx	rax, r12d
	xor	edi, edi
	lea	r13, 0[0+rax*8]
	cmp	QWORD PTR -8[rdx+rax*8], 0
	sete	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR dtrace_probes[rip]
	mov	QWORD PTR -8[rax+r13], rbx
	add	DWORD PTR 0[rbp], 1
	cmp	QWORD PTR dtrace_provider[rip], rbp
	je	.L1
	lea	rdi, dtrace_lock[rip]
	call	lck_mtx_unlock@PLT
.L1:
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR LCK_MTX_ASSERT_OWNED[rip]
	lea	rdi, dtrace_lock[rip]
	call	LCK_MTX_ASSERT@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edi, edi
	test	r13, r13
	sete	dil
	call	ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR dtrace_probes[rip], 0
	sete	dil
	call	ASSERT@PLT
	mov	edi, 8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	xor	edi, edi
	test	r13, r13
	sete	dil
	call	ASSERT@PLT
	mov	QWORD PTR dtrace_probes[rip], r14
	mov	eax, 1
	mov	DWORD PTR dtrace_nprobes[rip], 1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	dtrace_probe_create, .-dtrace_probe_create
	.comm	dtrace_provider,8,8
	.comm	dtrace_probes,8,8
	.comm	dtrace_probegen,4,4
	.comm	dtrace_probe_t_zone,4,4
	.comm	dtrace_nprobes,4,4
	.comm	dtrace_lock,4,4
	.comm	dtrace_byprov,4,4
	.comm	dtrace_byname,4,4
	.comm	dtrace_bymod,4,4
	.comm	dtrace_byfunc,4,4
	.comm	dtrace_arena,4,4
	.comm	VM_SLEEP,4,4
	.comm	VM_BESTFIT,4,4
	.comm	LCK_MTX_ASSERT_OWNED,4,4
	.comm	KM_SLEEP,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_probe_create.c"
	.text
	.align	2
	.global	dtrace_probe_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtrace_probe_create, %function
dtrace_probe_create:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L17
	mov	r9, r1
	ldr	r1, [r10]
	sub	sp, sp, #12
	cmp	r1, r0
	mov	r5, r0
	mov	r8, r2
	mov	r7, r3
	ldr	fp, [sp, #52]
	beq	.L15
	ldr	r0, .L17+4
	bl	lck_mtx_lock
.L3:
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L17+16
	orr	r2, r1, r2
	ldr	r0, [r3]
	mov	r1, #1
	bl	vmem_alloc
	ldr	r3, .L17+20
	mov	r6, r0
	ldr	r0, [r3]
	bl	zalloc
	mov	r4, r0
	mov	r1, #32
	bl	bzero
	ldr	r2, .L17+24
	mov	r0, r9
	ldr	r3, [r2]
	str	r6, [r4]
	str	r3, [r4, #28]
	add	r3, r3, #1
	str	r3, [r2]
	bl	dtrace_strref
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #24]
	bl	dtrace_strref
	mov	r3, r0
	mov	r0, r7
	str	r3, [r4, #20]
	bl	dtrace_strref
	ldr	r2, [sp, #48]
	ldr	r3, .L17+28
	stmib	r4, {r2, r5}
	mov	r1, r4
	str	r0, [r4, #16]
	str	fp, [r4, #12]
	ldr	r0, [r3]
	bl	dtrace_hash_add
	ldr	r3, .L17+32
	mov	r1, r4
	ldr	r0, [r3]
	bl	dtrace_hash_add
	ldr	r3, .L17+36
	mov	r1, r4
	ldr	r0, [r3]
	bl	dtrace_hash_add
	ldr	r3, .L17+40
	ldr	r9, .L17+44
	mov	r1, r4
	ldr	r0, [r3]
	bl	dtrace_hash_add
	ldr	r2, [r9]
	cmp	r2, r6
	blt	.L11
	ldr	r8, .L17+48
.L4:
	ldr	r3, [r8]
	sub	r7, r6, #-1073741823
	ldr	r0, [r3, r7, lsl #2]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r1, [r10]
	ldr	r3, [r5]
	ldr	r2, [r8]
	add	r3, r3, #1
	cmp	r1, r5
	str	r4, [r2, r7, lsl #2]
	str	r3, [r5]
	beq	.L1
	ldr	r0, .L17+4
	bl	lck_mtx_unlock
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	lsls	r0, r2, #3
	lsl	r7, r2, #2
	beq	.L12
	ldr	r8, .L17+48
.L5:
	ldr	r3, .L17+52
	ldr	r1, [r3]
	bl	kmem_zalloc
	ldr	r3, [r8]
	mov	fp, r0
	cmp	r3, #0
	beq	.L16
	mov	r1, r0
	mov	r2, r7
	mov	r0, r3
	str	r3, [sp, #4]
	bl	bcopy
	bl	dtrace_membar_producer
	str	fp, [r8]
	bl	dtrace_sync
	ldr	r3, [sp, #4]
	mov	r1, r7
	mov	r0, r3
	bl	kmem_free
	ldr	r0, [r9]
	lsl	r0, r0, #1
	str	r0, [r9]
.L7:
	cmp	r6, r0
	movgt	r0, #0
	movle	r0, #1
	bl	ASSERT
	b	.L4
.L15:
	ldr	r3, .L17+56
	ldr	r0, .L17+4
	ldr	r1, [r3]
	bl	LCK_MTX_ASSERT
	b	.L3
.L12:
	clz	r0, r7
	ldr	r8, .L17+48
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r0, [r8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r0, #4
	b	.L5
.L16:
	clz	r0, r7
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r0, #1
	str	fp, [r8]
	str	r0, [r9]
	b	.L7
.L18:
	.align	2
.L17:
	.word	dtrace_provider
	.word	dtrace_lock
	.word	VM_BESTFIT
	.word	VM_SLEEP
	.word	dtrace_arena
	.word	dtrace_probe_t_zone
	.word	dtrace_probegen
	.word	dtrace_byprov
	.word	dtrace_bymod
	.word	dtrace_byfunc
	.word	dtrace_byname
	.word	dtrace_nprobes
	.word	dtrace_probes
	.word	KM_SLEEP
	.word	LCK_MTX_ASSERT_OWNED
	.size	dtrace_probe_create, .-dtrace_probe_create
	.comm	dtrace_provider,4,4
	.comm	dtrace_probes,4,4
	.comm	dtrace_probegen,4,4
	.comm	dtrace_probe_t_zone,4,4
	.comm	dtrace_nprobes,4,4
	.comm	dtrace_lock,4,4
	.comm	dtrace_byprov,4,4
	.comm	dtrace_byname,4,4
	.comm	dtrace_bymod,4,4
	.comm	dtrace_byfunc,4,4
	.comm	dtrace_arena,4,4
	.comm	VM_SLEEP,4,4
	.comm	VM_BESTFIT,4,4
	.comm	LCK_MTX_ASSERT_OWNED,4,4
	.comm	KM_SLEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
