	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgetc
_bgetc:                                 ## @bgetc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cantell@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_fseekp@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	je	LBB0_1
## %bb.9:
	movq	_fbobp@GOTPCREL(%rip), %rbx
	movq	_feobp@GOTPCREL(%rip), %r14
	cmpq	(%rbx), %rsi
	jl	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	cmpq	%rax, %rsi
	jg	LBB0_11
## %bb.12:
	cmpq	%rax, %rsi
	je	LBB0_13
	jmp	LBB0_16
LBB0_1:
	movq	_feobp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_2
LBB0_24:
	movq	_fbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_BUFSIZE@GOTPCREL(%rip), %rdi
	movl	%esi, %eax
	cltd
	idivl	(%rdi)
	cltq
	movq	(%rcx,%rax,8), %rax
	movslq	%edx, %rcx
	jmp	LBB0_25
LBB0_11:
	movq	%rsi, (%r14)
	movq	%rsi, (%rbx)
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_L_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	(%r15), %rsi
	movq	(%r14), %rax
	cmpq	%rax, %rsi
	jne	LBB0_16
LBB0_13:
	movq	%rax, (%rbx)
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_wide_read
	testl	%eax, %eax
	jle	LBB0_14
## %bb.15:
	movl	%eax, %eax
	addq	%rax, (%r14)
	movq	(%r15), %rsi
LBB0_16:
	movq	_fbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, %rcx
	subq	(%rbx), %rcx
	movq	(%rax), %rax
LBB0_25:
	movb	(%rax,%rcx), %al
	incq	%rsi
	movq	%rsi, (%r15)
	jmp	LBB0_26
LBB0_2:
	movq	_BUFSIZE@GOTPCREL(%rip), %r14
	movq	_fbuf@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%r14)
	movq	%r14, %r12
	movl	%edx, %r14d
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_balloc
	movq	%r12, %r15
	movl	(%r12), %edx
	subl	%r14d, %edx
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movslq	%r14d, %rsi
	addq	(%rax,%rcx,8), %rsi
	xorl	%ecx, %ecx
	callq	_wide_read
	movl	%eax, %ecx
	testl	%eax, %eax
	jle	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	movq	_feobp@GOTPCREL(%rip), %rbx
	addq	%rax, (%rbx)
	movq	%r15, %r14
	movq	_fseekp@GOTPCREL(%rip), %r15
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	movq	(%rbx), %rax
	cmpq	%rax, %rsi
	jl	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_editing@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_intty@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_Inputl
	movl	%eax, %ecx
	testl	%eax, %eax
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rbx, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%r14)
	movl	%edx, %r15d
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_balloc
	movl	(%r14), %eax
	subl	%r15d, %eax
	cmpl	%r13d, %eax
	cmovgel	%r13d, %eax
	movq	_fbuf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movslq	%r15d, %rdi
	addq	(%rcx,%rdx,8), %rdi
	movl	%r13d, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%rcx, %rsi
	movq	_InputBuf@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movslq	%eax, %rbx
	movl	%ebx, %edx
	callq	_memcpy
	movq	%rbx, %rax
	addq	(%r12), %rax
	movq	%rax, (%r12)
	subl	%ebx, %r13d
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_fseekp@GOTPCREL(%rip), %r15
	movq	%r12, %rbx
	movq	_fbuf@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_20
	jmp	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r14
	movq	_fseekp@GOTPCREL(%rip), %r15
	movq	_feobp@GOTPCREL(%rip), %rbx
	testl	%ecx, %ecx
	je	LBB0_14
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	jns	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fixio
	cmpl	$-1, %eax
	jne	LBB0_23
LBB0_14:
	movq	_CHAR_ERR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
LBB0_26:
	movsbl	%al, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cantell,8,3                    ## @cantell
	.comm	_fseekp,8,3                     ## @fseekp
	.comm	_fbobp,8,3                      ## @fbobp
	.comm	_feobp,8,3                      ## @feobp
	.comm	_SHIN,4,2                       ## @SHIN
	.comm	_L_SET,4,2                      ## @L_SET
	.comm	_fbuf,8,3                       ## @fbuf
	.comm	_BUFSIZE,4,2                    ## @BUFSIZE
	.comm	_CHAR_ERR,1,0                   ## @CHAR_ERR
	.comm	_editing,8,3                    ## @editing
	.comm	_intty,8,3                      ## @intty
	.comm	_InputBuf,8,3                   ## @InputBuf
	.comm	_errno,4,2                      ## @errno
	.comm	_ERR_SYSTEM,4,2                 ## @ERR_SYSTEM
	.comm	_fclens,8,3                     ## @fclens
	.comm	_filec,8,3                      ## @filec
	.comm	_progname,4,2                   ## @progname
	.comm	_windowchg,8,3                  ## @windowchg
	.no_dead_strip	_bgetc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgetc
_bgetc:                                 ; @bgetc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _cantell@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cantell@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _fseekp@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fseekp@GOTPAGEOFF]
	ldr	x1, [x22]
	cbz	x8, LBB0_7
; %bb.1:
Lloh5:
	adrp	x19, _fbobp@GOTPAGE
Lloh6:
	ldr	x19, [x19, _fbobp@GOTPAGEOFF]
Lloh7:
	adrp	x20, _feobp@GOTPAGE
Lloh8:
	ldr	x20, [x20, _feobp@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x8, [x20]
	cmp	x1, x9
	ccmp	x1, x8, #0, ge
Lloh9:
	adrp	x21, _SHIN@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SHIN@GOTPAGEOFF]
	b.le	LBB0_3
; %bb.2:
	str	x1, [x20]
	str	x1, [x19]
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _L_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _L_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_lseek
	ldr	x1, [x22]
	ldr	x8, [x20]
LBB0_3:
Lloh14:
	adrp	x23, _fbuf@GOTPAGE
Lloh15:
	ldr	x23, [x23, _fbuf@GOTPAGEOFF]
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.4:
	str	x8, [x19]
	ldr	w0, [x21]
	ldr	x8, [x23]
	ldr	x1, [x8]
Lloh16:
	adrp	x8, _BUFSIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BUFSIZE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_wide_read
	cmp	w0, #0
	b.le	LBB0_22
; %bb.5:
	ldr	x8, [x20]
	add	x8, x8, w0, uxtw
	str	x8, [x20]
	ldr	x1, [x22]
LBB0_6:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x9, [x19]
	sub	x9, x1, x9
	ldrb	w8, [x8, x9]
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x23, _feobp@GOTPAGE
Lloh20:
	ldr	x23, [x23, _feobp@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x1, x8
	b.ge	LBB0_10
LBB0_8:
Lloh21:
	adrp	x8, _fbuf@GOTPAGE
Lloh22:
	ldr	x8, [x8, _fbuf@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _BUFSIZE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BUFSIZE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	sdiv	w10, w1, w9
	ldr	x8, [x8, w10, sxtw #3]
	msub	w9, w10, w9, w1
	ldrb	w8, [x8, w9, sxtw]
LBB0_9:
	add	x9, x1, #1
	str	x9, [x22]
	b	LBB0_23
LBB0_10:
Lloh27:
	adrp	x21, _editing@GOTPAGE
Lloh28:
	ldr	x21, [x21, _editing@GOTPAGEOFF]
Lloh29:
	adrp	x24, _intty@GOTPAGE
Lloh30:
	ldr	x24, [x24, _intty@GOTPAGEOFF]
Lloh31:
	adrp	x26, _BUFSIZE@GOTPAGE
Lloh32:
	ldr	x26, [x26, _BUFSIZE@GOTPAGEOFF]
Lloh33:
	adrp	x28, _fbuf@GOTPAGE
Lloh34:
	ldr	x28, [x28, _fbuf@GOTPAGEOFF]
Lloh35:
	adrp	x27, _InputBuf@GOTPAGE
Lloh36:
	ldr	x27, [x27, _InputBuf@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x26]
	sdiv	w19, w8, w9
	msub	w20, w19, w9, w8
	mov	x0, x19
	bl	_balloc
	ldr	w8, [x26]
	sub	w2, w8, w20
Lloh37:
	adrp	x8, _SHIN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SHIN@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [x28]
	ldr	x8, [x8, w19, sxtw #3]
	add	x1, x8, w20, sxtw
	mov	w3, #0
	bl	_wide_read
	mov	x25, x0
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23]
	add	x8, x8, w25, uxtw
	str	x8, [x23]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x22]
	ldr	x8, [x23]
	cmp	x1, x8
	b.lt	LBB0_8
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x9, [x21]
	ldr	x10, [x24]
	cmp	x9, #0
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	x8, [x22]
	bl	_Inputl
	mov	x25, x0
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w24, w25
	ldr	x8, [x23]
	mov	x19, x25
LBB0_17:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x26]
	sdiv	w20, w8, w9
	msub	w22, w20, w9, w8
	mov	x0, x20
	bl	_balloc
	ldr	w8, [x26]
	sub	w8, w8, w22
	cmp	w8, w19
	csel	w21, w8, w19, lt
	ldr	x8, [x28]
	ldr	x8, [x8, w20, sxtw #3]
	add	x0, x8, w22, sxtw
	ldr	x8, [x27]
	sub	x9, x24, w19, uxtw
	add	x1, x9, x8
	mov	x2, x21
	bl	_memcpy
	sub	w19, w19, w21
	ldr	x8, [x23]
	add	x8, x8, w21, sxtw
	str	x8, [x23]
	cmp	w19, #0
	b.gt	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh40:
	adrp	x22, _fseekp@GOTPAGE
Lloh41:
	ldr	x22, [x22, _fseekp@GOTPAGEOFF]
Lloh42:
	adrp	x21, _editing@GOTPAGE
Lloh43:
	ldr	x21, [x21, _editing@GOTPAGEOFF]
Lloh44:
	adrp	x24, _intty@GOTPAGE
Lloh45:
	ldr	x24, [x24, _intty@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w25, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	tbz	w25, #31, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh46:
	adrp	x8, _SHIN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SHIN@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x8, _errno@GOTPAGE
Lloh50:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_fixio
	cmn	w0, #1
	b.ne	LBB0_13
LBB0_22:
Lloh52:
	adrp	x8, _CHAR_ERR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CHAR_ERR@GOTPAGEOFF]
	ldrb	w8, [x8]
LBB0_23:
	sxtb	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_cantell,8,3                    ; @cantell
	.comm	_fseekp,8,3                     ; @fseekp
	.comm	_fbobp,8,3                      ; @fbobp
	.comm	_feobp,8,3                      ; @feobp
	.comm	_SHIN,4,2                       ; @SHIN
	.comm	_L_SET,4,2                      ; @L_SET
	.comm	_fbuf,8,3                       ; @fbuf
	.comm	_BUFSIZE,4,2                    ; @BUFSIZE
	.comm	_CHAR_ERR,1,0                   ; @CHAR_ERR
	.comm	_editing,8,3                    ; @editing
	.comm	_intty,8,3                      ; @intty
	.comm	_InputBuf,8,3                   ; @InputBuf
	.comm	_errno,4,2                      ; @errno
	.comm	_ERR_SYSTEM,4,2                 ; @ERR_SYSTEM
	.comm	_fclens,8,3                     ; @fclens
	.comm	_filec,8,3                      ; @filec
	.comm	_progname,4,2                   ; @progname
	.comm	_windowchg,8,3                  ; @windowchg
	.no_dead_strip	_bgetc
.subsections_via_symbols
