	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tomoyo_read_pid
_tomoyo_read_pid:                       ## @tomoyo_read_pid
	.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
	cmpq	$0, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	jne	LBB0_7
## %bb.2:
	movl	12(%rbx), %r14d
	movq	_tasklist_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movl	%r14d, %edi
	callq	_find_task_by_vpid
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_tomoyo_real_domain
	movq	%rax, %r15
	movq	_tasklist_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %ecx
	movq	(%r15), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_tomoyo_io_printf
	jmp	LBB0_6
LBB0_3:
	movq	_tasklist_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
LBB0_6:
	movl	$1, 8(%rbx)
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tasklist_lock,4,2              ## @tasklist_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %u %s"

	.no_dead_strip	_tomoyo_read_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tomoyo_read_pid
_tomoyo_read_pid:                       ; @tomoyo_read_pid
	.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
	ldr	x8, [x0]
	cbnz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	w20, [x19, #12]
Lloh0:
	adrp	x0, _tasklist_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tasklist_lock@GOTPAGEOFF]
	bl	_read_lock
	mov	x0, x20
	bl	_find_task_by_vpid
	cbz	x0, LBB0_5
; %bb.3:
	bl	_tomoyo_real_domain
	mov	x21, x0
Lloh2:
	adrp	x0, _tasklist_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _tasklist_lock@GOTPAGEOFF]
	bl	_read_unlock
	cbz	x21, LBB0_6
; %bb.4:
	ldr	w3, [x21, #8]
	ldr	x8, [x21]
	ldr	w4, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_tomoyo_io_printf
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, _tasklist_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _tasklist_lock@GOTPAGEOFF]
	bl	_read_unlock
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_7:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tasklist_lock,4,2              ; @tasklist_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %u %s"

	.no_dead_strip	_tomoyo_read_pid
.subsections_via_symbols
