	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_hex_digit
_get_hex_digit:                         ## @get_hex_digit
	.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
	movl	%edi, %ebx
	movq	_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_readchar
                                        ## kill: def $eax killed $eax def $rax
	leal	-48(%rax), %ecx
	cmpl	$10, %ecx
	jb	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_expect_prompt
	movq	%r14, %rdi
	callq	_error
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	callq	_readchar
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-48, %ecx
	cmpl	$9, %ecx
	jbe	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-65(%rax), %ecx
	cmpl	$5, %ecx
	jbe	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-97(%rax), %ecx
	cmpl	$5, %ecx
	jbe	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$32, %eax
	je	LBB0_3
	jmp	LBB0_2
LBB0_8:
	addl	$-55, %eax
	jmp	LBB0_10
LBB0_9:
	addl	$-87, %eax
LBB0_10:
	movl	%eax, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout,4,2                    ## @timeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid hex digit from remote system."

	.no_dead_strip	_get_hex_digit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_hex_digit
_get_hex_digit:                         ; @get_hex_digit
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _timeout@GOTPAGE
Lloh1:
	ldr	x21, [x21, _timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_readchar
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_10
; %bb.1:
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_expect_prompt
	mov	x0, x20
	bl	_error
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	bl	_readchar
	sub	w8, w0, #48
	cmp	w8, #9
	b.ls	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w0, #65
	cmp	w8, #5
	b.ls	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, #97
	cmp	w8, #5
	b.ls	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w19, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #32
	b.eq	LBB0_3
	b	LBB0_2
LBB0_8:
	sub	w8, w0, #55
	b	LBB0_10
LBB0_9:
	sub	w8, w0, #87
LBB0_10:
	mov	x0, x8
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout,4,2                    ; @timeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid hex digit from remote system."

	.no_dead_strip	_get_hex_digit
.subsections_via_symbols
