	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inf_set_pid                    ## -- Begin function inf_set_pid
	.p2align	4, 0x90
_inf_set_pid:                           ## @inf_set_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_inf_debug
	testq	%r14, %r14
	js	LBB0_1
## %bb.2:
	movq	_proc_server@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rsi
	callq	_proc_pid2task
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_error
	jmp	LBB0_4
LBB0_1:
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
LBB0_4:
	movq	-32(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_inf_debug
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	callq	_task_suspend
LBB0_6:
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	movq	(%r15), %rax
	cmpq	-32(%rbp), %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_inf_validate_procs
	movq	%r15, %rdi
	callq	__proc_free
LBB0_9:
	movq	-32(%rbp), %rsi
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_10
## %bb.11:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	movl	%r14d, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.14:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 8(%rax)
	jmp	LBB0_16
LBB0_10:
	movq	_PROC_TID_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_make_proc
	movq	%rax, 8(%rbx)
	movq	$0, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
LBB0_15:
	movl	$-1, (%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pid: %d"

	.comm	_MACH_PORT_NULL,8,3             ## @MACH_PORT_NULL
	.comm	_proc_server,4,2                ## @proc_server
L_.str.1:                               ## @.str.1
	.asciz	"Error getting task for pid %d: %s"

L_.str.2:                               ## @.str.2
	.asciz	"setting task: %d"

	.comm	_PROC_TID_TASK,4,2              ## @PROC_TID_TASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inf_set_pid                    ; -- Begin function inf_set_pid
	.p2align	2
_inf_set_pid:                           ; @inf_set_pid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_inf_debug
Lloh2:
	adrp	x22, _MACH_PORT_NULL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MACH_PORT_NULL@GOTPAGEOFF]
	tbnz	x20, #63, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _proc_server@GOTPAGE
Lloh5:
	ldr	x8, [x8, _proc_server@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	bl	_proc_pid2task
	cbz	x0, LBB0_4
; %bb.2:
	bl	_safe_strerror
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_error
	b	LBB0_4
LBB0_3:
	ldr	x8, [x22]
	str	x8, [sp, #8]
LBB0_4:
	ldr	x2, [sp, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_inf_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_task_suspend
LBB0_6:
	cbz	x21, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_inf_validate_procs
	mov	x0, x21
	bl	__proc_free
LBB0_9:
	ldr	x1, [sp, #8]
	ldr	x8, [x22]
	cmp	x1, x8
	b.ne	LBB0_13
; %bb.10:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_14
LBB0_11:
	str	w20, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.12:
	movi.2s	v0, #1
	str	d0, [x0, #8]
	b	LBB0_15
LBB0_13:
Lloh11:
	adrp	x8, _PROC_TID_TASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PROC_TID_TASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_make_proc
	str	x0, [x19, #8]
	str	xzr, [x19, #24]
	cbnz	x0, LBB0_11
LBB0_14:
	mov	w8, #-1
	str	w8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pid: %d"

	.comm	_MACH_PORT_NULL,8,3             ; @MACH_PORT_NULL
	.comm	_proc_server,4,2                ; @proc_server
l_.str.1:                               ; @.str.1
	.asciz	"Error getting task for pid %d: %s"

l_.str.2:                               ; @.str.2
	.asciz	"setting task: %d"

	.comm	_PROC_TID_TASK,4,2              ; @PROC_TID_TASK
.subsections_via_symbols
