	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_el_wgetc                       ## -- Begin function el_wgetc
	.p2align	4, 0x90
_el_wgetc:                              ## @el_wgetc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_terminal__flush
	cmpq	$0, 16(%rbx)
	js	LBB0_4
## %bb.1:
	leaq	16(%rbx), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rax
	movq	(%rcx), %rcx
	cmpb	$0, (%rcx,%rax)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_read_pop
	cmpq	$0, (%r12)
	jns	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_tty_rawmode
	testq	%rax, %rax
	js	LBB0_5
## %bb.8:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_10
LBB0_6:
	leaq	1(%rax), %rdx
	movq	%rdx, 32(%rbx)
	movb	(%rcx,%rax), %al
	movb	%al, (%r14)
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	(%rax), %rax
	movl	$1, %r14d
	cmpb	$0, (%rax,%rcx)
	jne	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	callq	_read_pop
	jmp	LBB0_10
LBB0_5:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_el_wgetc                       ; -- Begin function el_wgetc
	.p2align	2
_el_wgetc:                              ; @el_wgetc
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	_terminal__flush
	mov	x21, x22
	ldr	x8, [x21, #16]!
	tbnz	x8, #63, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x22, #24]
	ldr	x9, [x9]
	ldrb	w10, [x9, x8]
	cbnz	w10, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_read_pop
	ldr	x8, [x21]
	tbz	x8, #63, LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_tty_rawmode
	tbnz	x0, #63, LBB0_9
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbz	w0, #31, LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #8]
	b	LBB0_10
LBB0_6:
	add	x10, x8, #1
	str	x10, [x22, #32]
	ldrb	w8, [x9, x8]
	strb	w8, [x20]
	ldp	x8, x9, [x22, #24]
	ldr	x8, [x8]
	ldrb	w8, [x8, x9]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_read_pop
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
