	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_modify_flag
_proc_modify_flag:                      ## @proc_modify_flag
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_find_procinfo_or_die
	movq	%rax, %rdi
LBB0_2:
	cmpq	$128, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	cmpq	$129, %rbx
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rcx, %rsi
	movq	$0, 8(%rdi)
	movq	_FLAG_RESET@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_warning
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"procfs: modify_flag failed to turn %s %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"PR_RLC"

L_.str.3:                               ## @.str.3
	.asciz	"<unknown flag>"

	.comm	_FLAG_RESET,8,3                 ## @FLAG_RESET
L_.str.4:                               ## @.str.4
	.asciz	"off"

L_.str.5:                               ## @.str.5
	.asciz	"on"

	.comm	_FLAG_SET,8,3                   ## @FLAG_SET
	.comm	_GDBRESET,8,3                   ## @GDBRESET
	.comm	_PCSET,8,3                      ## @PCSET
	.comm	_PIOCRESET,4,2                  ## @PIOCRESET
	.comm	_PIOCRFORK,4,2                  ## @PIOCRFORK
	.comm	_PIOCRRLC,4,2                   ## @PIOCRRLC
	.comm	_PIOCSET,4,2                    ## @PIOCSET
	.comm	_PIOCSFORK,4,2                  ## @PIOCSFORK
	.comm	_PIOCSRLC,4,2                   ## @PIOCSRLC
	.comm	_PR_ASYNC,8,3                   ## @PR_ASYNC
	.comm	_PR_KLC,8,3                     ## @PR_KLC
	.no_dead_strip	_proc_modify_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_modify_flag
_proc_modify_flag:                      ; @proc_modify_flag
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x8
	mov	w1, #0
	bl	_find_procinfo_or_die
LBB0_2:
Lloh0:
	adrp	x8, l_.str.3@PAGE
Lloh1:
	add	x8, x8, l_.str.3@PAGEOFF
	str	xzr, [x0, #8]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x20, #128
	csel	x8, x9, x8, eq
	cmp	x20, #129
	csel	x1, x10, x8, eq
Lloh6:
	adrp	x8, _FLAG_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAG_RESET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, l_.str.5@PAGE
Lloh10:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh11:
	adrp	x10, l_.str.4@PAGE
Lloh12:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, x19
	csel	x2, x10, x9, eq
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"procfs: modify_flag failed to turn %s %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"PR_RLC"

l_.str.3:                               ; @.str.3
	.asciz	"<unknown flag>"

	.comm	_FLAG_RESET,8,3                 ; @FLAG_RESET
l_.str.4:                               ; @.str.4
	.asciz	"off"

l_.str.5:                               ; @.str.5
	.asciz	"on"

	.comm	_FLAG_SET,8,3                   ; @FLAG_SET
	.comm	_GDBRESET,8,3                   ; @GDBRESET
	.comm	_PCSET,8,3                      ; @PCSET
	.comm	_PIOCRESET,4,2                  ; @PIOCRESET
	.comm	_PIOCRFORK,4,2                  ; @PIOCRFORK
	.comm	_PIOCRRLC,4,2                   ; @PIOCRRLC
	.comm	_PIOCSET,4,2                    ; @PIOCSET
	.comm	_PIOCSFORK,4,2                  ; @PIOCSFORK
	.comm	_PIOCSRLC,4,2                   ; @PIOCSRLC
	.comm	_PR_ASYNC,8,3                   ; @PR_ASYNC
	.comm	_PR_KLC,8,3                     ; @PR_KLC
	.no_dead_strip	_proc_modify_flag
.subsections_via_symbols
