	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_trace_ready                ## -- Begin function fpm_trace_ready
	.p2align	4, 0x90
_fpm_trace_ready:                       ## @fpm_trace_ready
	.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
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mach_task_self
	movq	_target@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_task_for_pid
	movq	%rax, %rbx
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.1:
	movq	_KERN_FAILURE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r14
	cmoveq	%rax, %r14
	movq	_ZLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mach_error_string
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_zlog
	movl	$-1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_target,4,2                     ## @target
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_KERN_FAILURE,8,3               ## @KERN_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	" It seems that master process does not have enough privileges to trace processes."

	.comm	_ZLOG_ERROR,4,2                 ## @ZLOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"task_for_pid() failed: %s (%d)%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_trace_ready                ; -- Begin function fpm_trace_ready
	.p2align	2
_fpm_trace_ready:                       ; @fpm_trace_ready
	.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
	bl	_mach_task_self
Lloh0:
	adrp	x2, _target@GOTPAGE
Lloh1:
	ldr	x2, [x2, _target@GOTPAGEOFF]
	mov	x1, x19
	bl	_task_for_pid
Lloh2:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x8, _KERN_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_FAILURE@GOTPAGEOFF]
Lloh7:
	adrp	x9, l_.str@PAGE
Lloh8:
	add	x9, x9, l_.str@PAGEOFF
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x20, x10, x9, eq
Lloh12:
	adrp	x8, _ZLOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZLOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	bl	_mach_error_string
	mov	x2, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	mov	x4, x20
	bl	_zlog
	mov	w0, #-1
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_target,4,2                     ; @target
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_KERN_FAILURE,8,3               ; @KERN_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	" It seems that master process does not have enough privileges to trace processes."

	.comm	_ZLOG_ERROR,4,2                 ; @ZLOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"task_for_pid() failed: %s (%d)%s"

.subsections_via_symbols
