	.file	"extr_dtrace.c_dtrace_state_option.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dtrace_state_option, @function
dtrace_state_option:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, dtrace_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, esi
	call	MUTEX_HELD@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	rax, QWORD PTR DTRACE_ACTIVITY_INACTIVE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	mov	eax, DWORD PTR EBUSY[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	DWORD PTR DTRACEOPT_MAX[rip], ebx
	jle	.L6
	cmp	DWORD PTR DTRACEOPT_CPU[rip], ebx
	je	.L5
	test	r12, r12
	js	.L6
	cmp	ebx, 131
	je	.L8
	jg	.L13
	lea	eax, -128[rbx]
	cmp	eax, 2
	ja	.L10
.L14:
	mov	rax, QWORD PTR LONG_MAX[rip]
	lea	rdx, -134217727[rax]
	cmp	rax, r12
	cmovle	r12, rdx
.L10:
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax+rbx*8], r12
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	ebx, 131
	je	.L8
	jg	.L9
	lea	eax, -128[rbx]
	cmp	eax, 2
	ja	.L10
.L11:
	test	r12, r12
	jns	.L14
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	eax, -132[rbx]
	cmp	eax, 1
	ja	.L10
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	lea	eax, -132[rbx]
	cmp	eax, 1
	ja	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR dtrace_destructive_disallow[rip]
	test	eax, eax
	jne	.L24
	mov	DWORD PTR 16[rbp], 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR EACCES[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dtrace_state_option, .-dtrace_state_option
	.comm	dtrace_lock,4,4
	.comm	dtrace_destructive_disallow,4,4
	.comm	LONG_MAX,8,8
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	EACCES,4,4
	.comm	DTRACE_ACTIVITY_INACTIVE,8,8
	.comm	DTRACEOPT_MAX,4,4
	.comm	DTRACEOPT_CPU,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_state_option.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtrace_state_option, %function
dtrace_state_option:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L24
	mov	r4, r1
	mov	r6, r2
	bl	MUTEX_HELD
	bl	ASSERT
	ldr	r3, .L24+4
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L2
	ldr	r3, .L24+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, r4
	ble	.L6
	ldr	r3, .L24+16
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L5
	cmp	r6, #0
	blt	.L6
	cmp	r4, #131
	beq	.L8
	bgt	.L13
	sub	r3, r4, #128
	cmp	r3, #2
	bhi	.L10
.L14:
	ldr	r3, .L24+20
	ldr	r3, [r3]
	cmp	r3, r6
	addle	r6, r3, #-134217727
.L10:
	ldr	r3, [r5, #4]
	mov	r0, #0
	str	r6, [r3, r4, lsl #2]
	pop	{r4, r5, r6, pc}
.L5:
	cmp	r4, #131
	beq	.L8
	bgt	.L9
	sub	r3, r4, #128
	cmp	r3, #2
	bhi	.L10
.L11:
	cmp	r6, #0
	bge	.L14
.L6:
	ldr	r3, .L24+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	sub	r3, r4, #132
	cmp	r3, #1
	bhi	.L10
	b	.L14
.L9:
	sub	r3, r4, #132
	cmp	r3, #1
	bhi	.L10
	b	.L11
.L8:
	ldr	r3, .L24+28
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	streq	r3, [r5, #8]
	beq	.L10
	ldr	r3, .L24+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L25:
	.align	2
.L24:
	.word	dtrace_lock
	.word	DTRACE_ACTIVITY_INACTIVE
	.word	EBUSY
	.word	DTRACEOPT_MAX
	.word	DTRACEOPT_CPU
	.word	LONG_MAX
	.word	EINVAL
	.word	dtrace_destructive_disallow
	.word	EACCES
	.size	dtrace_state_option, .-dtrace_state_option
	.comm	dtrace_lock,4,4
	.comm	dtrace_destructive_disallow,4,4
	.comm	LONG_MAX,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	EACCES,4,4
	.comm	DTRACE_ACTIVITY_INACTIVE,4,4
	.comm	DTRACEOPT_MAX,4,4
	.comm	DTRACEOPT_CPU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
