	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_GetNumber
_Devices_GetNumber:                     ## @Devices_GetNumber
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_Devices_GetIOCB
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	_Devices_ICDNOZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MEMORY_dGetByte
	cmpl	$9, %eax
	jg	LBB0_4
## %bb.2:
	cmpl	$5, %eax
	je	LBB0_4
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$160, (%rax)
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$4, %eax
	jg	LBB0_9
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_h_textmode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_h_iocb@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%ecx, (%rdx,%rsi,4)
LBB0_8:
	decl	%eax
	jmp	LBB0_12
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_h_textmode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_h_iocb@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%ecx, (%rdx,%rsi,4)
LBB0_11:
	addl	$-6, %eax
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_Devices_ICDNOZ,4,2             ## @Devices_ICDNOZ
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_SetN,4,2                   ## @CPU_SetN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_h_textmode,8,3                 ## @h_textmode
	.comm	_h_iocb,8,3                     ## @h_iocb
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_Devices_GetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_GetNumber
_Devices_GetNumber:                     ; @Devices_GetNumber
	.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, x0
	bl	_Devices_GetIOCB
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _Devices_ICDNOZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Devices_ICDNOZ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MEMORY_dGetByte
	cmp	w0, #9
	ccmp	w0, #5, #4, le
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
	mov	w9, #160
Lloh5:
	str	w9, [x8]
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w0, #4
	b.gt	LBB0_9
; %bb.6:
	cbz	w19, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _h_textmode@GOTPAGE
Lloh10:
	ldr	x9, [x9, _h_textmode@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _h_iocb@GOTPAGE
Lloh13:
	ldr	x10, [x10, _h_iocb@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
LBB0_8:
	sub	w0, w0, #1
	b	LBB0_4
LBB0_9:
	cbz	w19, LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _h_textmode@GOTPAGE
Lloh19:
	ldr	x9, [x9, _h_textmode@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _h_iocb@GOTPAGE
Lloh22:
	ldr	x10, [x10, _h_iocb@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
LBB0_11:
	sub	w0, w0, #6
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Devices_ICDNOZ,4,2             ; @Devices_ICDNOZ
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_SetN,4,2                   ; @CPU_SetN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_h_textmode,8,3                 ; @h_textmode
	.comm	_h_iocb,8,3                     ; @h_iocb
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_Devices_GetNumber
.subsections_via_symbols
