	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comc_getchar
_comc_getchar:                          ## @comc_getchar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_comc_ischar
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_comc_port@GOTPCREL(%rip), %rax
	movq	_com_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	popq	%rbp
	jmp	_inb                            ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comc_port,8,3                  ## @comc_port
	.comm	_com_data,8,3                   ## @com_data
	.no_dead_strip	_comc_getchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comc_getchar
_comc_getchar:                          ; @comc_getchar
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_comc_ischar
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _comc_port@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comc_port@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _com_data@GOTPAGE
Lloh4:
	ldr	x9, [x9, _com_data@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_inb
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_comc_port,8,3                  ; @comc_port
	.comm	_com_data,8,3                   ; @com_data
	.no_dead_strip	_comc_getchar
.subsections_via_symbols
