	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtrace_dof_fini
_dtrace_dof_fini:                       ## @dtrace_dof_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_devnamep@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open64
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_DTRACEHIOC_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_gen@GOTPCREL(%rip), %r14
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_5:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dbg_printf                     ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	$-1, %edx
LBB0_4:
	callq	_dbg_printf
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_devnamep,4,2                   ## @devnamep
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open helper device %s"

	.comm	_DTRACEHIOC_REMOVE,4,2          ## @DTRACEHIOC_REMOVE
	.comm	_gen,4,2                        ## @gen
L_.str.1:                               ## @.str.1
	.asciz	"DTrace ioctl failed to remove DOF (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"DTrace ioctl removed DOF (%d)\n"

	.no_dead_strip	_dtrace_dof_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtrace_dof_fini
_dtrace_dof_fini:                       ; @dtrace_dof_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _devnamep@GOTPAGE
Lloh1:
	ldr	x20, [x20, _devnamep@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open64
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _DTRACEHIOC_REMOVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DTRACEHIOC_REMOVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x20, _gen@GOTPAGE
Lloh9:
	ldr	x20, [x20, _gen@GOTPAGEOFF]
	mov	x2, x20
	bl	_ioctl
	mov	x2, x0
	str	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dbg_printf
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	w0, #1
	bl	_dbg_printf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_devnamep,4,2                   ; @devnamep
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open helper device %s"

	.comm	_DTRACEHIOC_REMOVE,4,2          ; @DTRACEHIOC_REMOVE
	.comm	_gen,4,2                        ; @gen
l_.str.1:                               ; @.str.1
	.asciz	"DTrace ioctl failed to remove DOF (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"DTrace ioctl removed DOF (%d)\n"

	.no_dead_strip	_dtrace_dof_fini
.subsections_via_symbols
