	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_putc
_dos_putc:                              ## @dos_putc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rsi), %rcx
	movq	_CBSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	decq	%rdx
	movl	$-1, %eax
	cmpl	%edx, %ecx
	jge	LBB0_2
## %bb.1:
	movq	8(%rsi), %r8
	movslq	16(%rsi), %rax
	addq	%rcx, %rax
	andq	%rdx, %rax
	movl	%edi, (%r8,%rax,4)
	incl	(%rsi)
	xorl	%eax, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBSIZE,4,2                     ## @CBSIZE
	.no_dead_strip	_dos_putc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_putc
_dos_putc:                              ; @dos_putc
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _CBSIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CBSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x11, [x1, #8]
	ldr	w12, [x1, #16]
	add	w9, w12, w9
	and	w9, w9, w10
	str	w8, [x11, w9, sxtw #2]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	ret
LBB0_2:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CBSIZE,4,2                     ; @CBSIZE
	.no_dead_strip	_dos_putc
.subsections_via_symbols
