	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mconsole_stack                 ## -- Begin function mconsole_stack
	.p2align	4, 0x90
_mconsole_stack:                        ## @mconsole_stack
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	$-1, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	callq	_skip_spaces
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	-20(%rbp), %edi
	movq	_init_pid_ns@GOTPCREL(%rip), %rsi
	callq	_find_task_by_pid_ns
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$0, -20(%rbp)
	je	LBB0_5
## %bb.6:
	movq	_stack_proc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_with_console
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mconsole_reply
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stack"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"Please specify a pid"

	.comm	_init_pid_ns,4,2                ## @init_pid_ns
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't find that pid"

	.comm	_stack_proc,4,2                 ## @stack_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mconsole_stack                 ; -- Begin function mconsole_stack
	.p2align	2
_mconsole_stack:                        ; @mconsole_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	x0, x20, w0, sxtw
	bl	_skip_spaces
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [sp, #12]
Lloh4:
	adrp	x1, _init_pid_ns@GOTPAGE
Lloh5:
	ldr	x1, [x1, _init_pid_ns@GOTPAGEOFF]
	bl	_find_task_by_pid_ns
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_mconsole_reply
	b	LBB0_6
LBB0_5:
	mov	x2, x0
Lloh10:
	adrp	x8, _stack_proc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stack_proc@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_with_console
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stack"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"Please specify a pid"

	.comm	_init_pid_ns,4,2                ; @init_pid_ns
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't find that pid"

	.comm	_stack_proc,4,2                 ; @stack_proc
.subsections_via_symbols
