	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_readchar
_debug_readchar:                        ## @debug_readchar
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_monitor_readchar
	movl	%eax, %r14d
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movzbl	%r14b, %edx
	leaq	L_.str(%rip), %rsi
	leaq	-34(%rbp), %rdi
	callq	_sprintf
	jmp	LBB0_6
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movb	%r14b, -34(%rbp)
	movb	$0, -33(%rbp)
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-34(%rbp), %rdi
	callq	_strcpy
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rdx
	leaq	-34(%rbp), %rsi
	callq	_puts_debug
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_debug,8,3               ## @remote_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%02x]"

L_.str.1:                               ## @.str.1
	.asciz	"\\0"

L_.str.2:                               ## @.str.2
	.asciz	"Read -->"

L_.str.3:                               ## @.str.3
	.asciz	"<--"

	.no_dead_strip	_debug_readchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_readchar
_debug_readchar:                        ; @debug_readchar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_monitor_readchar
	mov	x19, x0
Lloh3:
	adrp	x8, _remote_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
	and	w2, w19, #0xff
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #14
	bl	_sprintf
	b	LBB0_6
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
	strb	w19, [sp, #14]
	strb	wzr, [sp, #15]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #14
	bl	_strcpy
LBB0_6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x1, sp, #14
	bl	_puts_debug
LBB0_7:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_debug,8,3               ; @remote_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%02x]"

l_.str.1:                               ; @.str.1
	.asciz	"\\0"

l_.str.2:                               ; @.str.2
	.asciz	"Read -->"

l_.str.3:                               ; @.str.3
	.asciz	"<--"

	.no_dead_strip	_debug_readchar
.subsections_via_symbols
