	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_file_give_next_buffer    ## -- Begin function input_file_give_next_buffer
	.p2align	4, 0x90
_input_file_give_next_buffer:           ## @input_file_give_next_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_f_in@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_preprocess@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_input_file_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_do_scrub_chars
	testl	%eax, %eax
	js	LBB0_5
LBB0_10:
	je	LBB0_6
## %bb.11:
	movl	%eax, %eax
	addq	%rax, %rbx
	jmp	LBB0_12
LBB0_3:
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_fread
	testl	%eax, %eax
	jns	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_file_name@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_as_bad
LBB0_6:
	movq	(%r15), %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_file_name@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xstrerror
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_as_warn
LBB0_8:
	movq	$0, (%r15)
LBB0_9:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f_in,8,3                       ## @f_in
	.comm	_preprocess,8,3                 ## @preprocess
	.comm	_input_file_get,4,2             ## @input_file_get
	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read from %s: %s"

	.comm	_file_name,4,2                  ## @file_name
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"can't close %s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_file_give_next_buffer    ; -- Begin function input_file_give_next_buffer
	.p2align	2
_input_file_give_next_buffer:           ; @input_file_give_next_buffer
	.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
Lloh0:
	adrp	x21, _f_in@GOTPAGE
Lloh1:
	ldr	x21, [x21, _f_in@GOTPAGEOFF]
	ldr	x3, [x21]
	cbz	x3, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _preprocess@GOTPAGE
Lloh3:
	ldr	x8, [x8, _preprocess@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _input_file_get@GOTPAGE
Lloh6:
	ldr	x8, [x8, _input_file_get@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _BUFFER_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_do_scrub_chars
	tbnz	w0, #31, LBB0_7
LBB0_3:
	cbz	w0, LBB0_8
; %bb.4:
	add	x0, x19, w0, uxtw
	b	LBB0_11
LBB0_5:
	mov	x0, #0
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x8, _BUFFER_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUFFER_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_fread
	tbz	w0, #31, LBB0_3
LBB0_7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x19, x0
Lloh16:
	adrp	x8, _file_name@GOTPAGE
Lloh17:
	ldr	x8, [x8, _file_name@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_xstrerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_as_bad
LBB0_8:
	ldr	x0, [x21]
	bl	_fclose
	cbz	x0, LBB0_10
; %bb.9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
Lloh24:
	adrp	x8, _file_name@GOTPAGE
Lloh25:
	ldr	x8, [x8, _file_name@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_xstrerror
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_as_warn
LBB0_10:
	mov	x0, #0
	str	xzr, [x21]
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_f_in,8,3                       ; @f_in
	.comm	_preprocess,8,3                 ; @preprocess
	.comm	_input_file_get,4,2             ; @input_file_get
	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read from %s: %s"

	.comm	_file_name,4,2                  ; @file_name
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"can't close %s: %s"

.subsections_via_symbols
