	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtrace_status                  ## -- Begin function dtrace_status
	.p2align	4, 0x90
_dtrace_status:                         ## @dtrace_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	_DTRACEOPT_STATUSRATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	xorl	%eax, %eax
	callq	_gethrtime
	cmpl	$0, 40(%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_DTRACE_STATUS_STOPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	subq	%rcx, %rax
	cmpq	%r14, %rax
	jge	LBB0_6
LBB0_1:
	movq	_DTRACE_STATUS_NONE@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	addq	%r14, %rcx
	movq	%rcx, %rax
LBB0_7:
	movq	%rax, 16(%rbx)
	movq	_DTRACEIOC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shlq	$4, %r15
	movq	32(%rbx), %rdx
	addq	%r15, %rdx
	movq	%rbx, %rdi
	callq	_dt_ioctl
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.8:
	movslq	(%rbx), %rsi
	xorq	$1, %rsi
	movl	%esi, (%rbx)
	movq	32(%rbx), %rdx
	shlq	$4, %rsi
	addq	%rdx, %rsi
	addq	%r15, %rdx
	movq	%rbx, %rdi
	callq	_dt_handle_status
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.9:
	movq	32(%rbx), %rax
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_13
## %bb.10:
	cmpq	$0, 24(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_dtrace_stop
LBB0_12:
	movq	_DTRACE_STATUS_EXITED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
LBB0_13:
	cmpq	$0, (%rax,%r15)
	je	LBB0_14
## %bb.15:
	movq	8(%rbx), %rax
	movq	_DTRACEOPT_BUFPOLICY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_DTRACEOPT_BUFPOLICY_FILL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.16:
	cmpq	$0, 24(%rbx)
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_dtrace_stop
	cmpl	$-1, %eax
	je	LBB0_20
LBB0_18:
	movq	_DTRACE_STATUS_FILLED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_14:
	movq	_DTRACE_STATUS_OKAY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_DTRACEOPT_STATUSRATE,8,3       ## @DTRACEOPT_STATUSRATE
	.comm	_DTRACE_STATUS_NONE,4,2         ## @DTRACE_STATUS_NONE
	.comm	_DTRACE_STATUS_STOPPED,4,2      ## @DTRACE_STATUS_STOPPED
	.comm	_DTRACEIOC_STATUS,4,2           ## @DTRACEIOC_STATUS
	.comm	_errno,4,2                      ## @errno
	.comm	_DTRACE_STATUS_EXITED,4,2       ## @DTRACE_STATUS_EXITED
	.comm	_DTRACE_STATUS_OKAY,4,2         ## @DTRACE_STATUS_OKAY
	.comm	_DTRACEOPT_BUFPOLICY,8,3        ## @DTRACEOPT_BUFPOLICY
	.comm	_DTRACEOPT_BUFPOLICY_FILL,8,3   ## @DTRACEOPT_BUFPOLICY_FILL
	.comm	_DTRACE_STATUS_FILLED,4,2       ## @DTRACE_STATUS_FILLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtrace_status                  ; -- Begin function dtrace_status
	.p2align	2
_dtrace_status:                         ; @dtrace_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldrsw	x20, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DTRACEOPT_STATUSRATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DTRACEOPT_STATUSRATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	bl	_gethrtime
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _DTRACE_STATUS_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DTRACE_STATUS_STOPPED@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.4:
	sub	x9, x0, x8
	cmp	x9, x21
	b.ge	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _DTRACE_STATUS_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DTRACE_STATUS_NONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x0, x8, x21
LBB0_9:
	str	x0, [x19, #16]
Lloh7:
	adrp	x8, _DTRACEIOC_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DTRACEIOC_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	add	x2, x8, x20, lsl #4
	mov	x0, x19
	bl	_dt_ioctl
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.10:
	ldrsw	x8, [x19]
	eor	x8, x8, #0x1
	str	w8, [x19]
	ldr	x9, [x19, #32]
	add	x1, x9, x8, lsl #4
	add	x2, x9, x20, lsl #4
	mov	x0, x19
	bl	_dt_handle_status
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.11:
	ldr	x8, [x19, #32]
	add	x9, x8, x20, lsl #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_16
; %bb.12:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_dtrace_stop
LBB0_14:
Lloh10:
	adrp	x8, _DTRACE_STATUS_EXITED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DTRACE_STATUS_EXITED@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dt_set_errno
LBB0_16:
	lsl	x9, x20, #4
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _DTRACEOPT_BUFPOLICY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DTRACEOPT_BUFPOLICY@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh18:
	adrp	x9, _DTRACEOPT_BUFPOLICY_FILL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DTRACEOPT_BUFPOLICY_FILL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.18:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_dtrace_stop
	cmn	w0, #1
	b.eq	LBB0_7
LBB0_20:
Lloh21:
	adrp	x8, _DTRACE_STATUS_FILLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DTRACE_STATUS_FILLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_21:
Lloh23:
	adrp	x8, _DTRACE_STATUS_OKAY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DTRACE_STATUS_OKAY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DTRACEOPT_STATUSRATE,8,3       ; @DTRACEOPT_STATUSRATE
	.comm	_DTRACE_STATUS_NONE,4,2         ; @DTRACE_STATUS_NONE
	.comm	_DTRACE_STATUS_STOPPED,4,2      ; @DTRACE_STATUS_STOPPED
	.comm	_DTRACEIOC_STATUS,4,2           ; @DTRACEIOC_STATUS
	.comm	_errno,4,2                      ; @errno
	.comm	_DTRACE_STATUS_EXITED,4,2       ; @DTRACE_STATUS_EXITED
	.comm	_DTRACE_STATUS_OKAY,4,2         ; @DTRACE_STATUS_OKAY
	.comm	_DTRACEOPT_BUFPOLICY,8,3        ; @DTRACEOPT_BUFPOLICY
	.comm	_DTRACEOPT_BUFPOLICY_FILL,8,3   ; @DTRACEOPT_BUFPOLICY_FILL
	.comm	_DTRACE_STATUS_FILLED,4,2       ; @DTRACE_STATUS_FILLED
.subsections_via_symbols
