	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_char
_convert_char:                          ## @convert_char
	.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
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	_SUPPRESS_PTR@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_1
## %bb.7:
	movq	%rsi, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	___fread
	xorl	%r14d, %r14d
	cmpq	$1, %rax
	sbbl	%r14d, %r14d
	orl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rax
	cmpl	%eax, %ebx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %r14
	subl	%eax, %ebx
	addl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	testq	%r14, %r14
	jne	LBB0_8
## %bb.5:
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	%ebx, %ecx
	addq	%rcx, %r14
	subl	%ebx, %eax
	movl	%eax, (%r15)
	addl	%ebx, 4(%r15)
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPRESS_PTR,8,3               ## @SUPPRESS_PTR
	.no_dead_strip	_convert_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_char
_convert_char:                          ; @convert_char
	.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	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPRESS_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPRESS_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #1
	mov	x2, x21
	mov	x3, x20
	bl	___fread
	cmp	x0, #0
	csinv	w19, w0, wzr, ne
	b	LBB0_8
LBB0_2:
	mov	x19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20]
	cmp	w21, w8
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, x8
	sub	w21, w21, w8
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	___srefill
	cbz	x0, LBB0_3
; %bb.5:
	cbnz	x19, LBB0_8
; %bb.6:
	mov	w19, #-1
	b	LBB0_8
LBB0_7:
	add	x19, x19, w21, uxtw
	sub	w8, w8, w21
	ldr	w9, [x20, #4]
	add	w9, w9, w21
	stp	w8, w9, [x20]
LBB0_8:
	mov	x0, x19
	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	_SUPPRESS_PTR,8,3               ; @SUPPRESS_PTR
	.no_dead_strip	_convert_char
.subsections_via_symbols
