	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_getc
_dos_getc:                              ## @dos_getc
	.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
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movl	(%rax,%rcx,4), %r14d
	xorl	%eax, %eax
	callq	_disable
	movq	16(%rbx), %rax
	incq	%rax
	movq	_CBSIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	decq	(%rbx)
	xorl	%eax, %eax
	callq	_enable
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBSIZE,4,2                     ## @CBSIZE
	.no_dead_strip	_dos_getc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_getc
_dos_getc:                              ; @dos_getc
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x0, #16]
	ldr	w19, [x8, x9, lsl #2]
	bl	_disable
	ldr	x8, [x20, #16]
	add	x8, x8, #1
Lloh0:
	adrp	x9, _CBSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CBSIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x20, #16]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	bl	_enable
	b	LBB0_3
LBB0_2:
	mov	w19, #-1
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CBSIZE,4,2                     ; @CBSIZE
	.no_dead_strip	_dos_getc
.subsections_via_symbols
