	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %r14
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_4:
	movq	_DTRACE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_dtrace_open
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %esi
	xorl	%edi, %edi
	callq	_dtrace_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dtrace_program_fcompile
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_fclose
	testq	%r12, %r12
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_dtrace_errno
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dtrace_errmsg
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dtrace_dof_create
	movq	%rax, %r14
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_10:
	leaq	L_.str.6(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_corrupt
	movl	%r13d, %edi
	callq	_close
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memmove
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected D script as argument\n"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't open %s"

	.comm	_DTRACE_VERSION,4,2             ## @DTRACE_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"cannot open dtrace library: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to compile script %s: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"could not allocate copy of %d bytes"

L_.str.6:                               ## @.str.6
	.asciz	"/devices/pseudo/dtrace@0:dtrace"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.7:                               ## @.str.7
	.asciz	"couldn't open DTrace pseudo device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x1, #8]
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_4:
Lloh6:
	adrp	x8, _DTRACE_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DTRACE_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	w1, #0
	bl	_dtrace_open
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w1, [sp, #28]
	bl	_dtrace_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_dtrace_program_fcompile
	mov	x22, x0
	mov	x0, x21
	bl	_fclose
	cbnz	x22, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_dtrace_errno
	mov	x1, x0
	mov	x0, x20
	bl	_dtrace_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fatal
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_dtrace_dof_create
	mov	x19, x0
	ldr	w20, [x0]
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x8, x20
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal
LBB0_10:
Lloh15:
	adrp	x25, _O_RDWR@GOTPAGE
Lloh16:
	ldr	x25, [x25, _O_RDWR@GOTPAGEOFF]
Lloh17:
	adrp	x22, l_.str.6@PAGE
Lloh18:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh19:
	adrp	x23, l_.str.7@PAGE
Lloh20:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_corrupt
	mov	x0, x24
	bl	_close
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_memmove
	ldr	w1, [x25]
	mov	x0, x22
	bl	_open
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_fatal
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected D script as argument\n"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't open %s"

	.comm	_DTRACE_VERSION,4,2             ; @DTRACE_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"cannot open dtrace library: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to compile script %s: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"could not allocate copy of %d bytes"

l_.str.6:                               ; @.str.6
	.asciz	"/devices/pseudo/dtrace@0:dtrace"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.7:                               ; @.str.7
	.asciz	"couldn't open DTrace pseudo device"

.subsections_via_symbols
