	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fread                          ## -- Begin function fread
	.p2align	4, 0x90
_fread:                                 ## @fread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdx, %rax
	mulq	%rsi
	movq	%rax, %r14
	seto	%al
	movl	(%rcx), %ecx
	movq	___FILE_CAN_READ@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	testb	%al, %al
	jne	LBB0_15
## %bb.3:
	testq	%r14, %r14
	je	LBB0_15
## %bb.4:
	movq	%rdi, %r13
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.6:
	movq	$0, 8(%r15)
	movb	4(%r15), %al
	movb	%al, (%r13)
	movl	$1, %ebx
	cmpq	$1, %r14
	je	LBB0_15
## %bb.7:
	cmpq	%r14, %rbx
	jb	LBB0_8
	jmp	LBB0_14
LBB0_1:
	movq	___FILE_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	%r14, %rbx
	jae	LBB0_14
LBB0_8:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	%al, (%r13,%rbx)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_9
LBB0_14:
	movq	%r12, %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_11:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	___FILE_CAN_READ,4,2            ## @__FILE_CAN_READ
	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fread                          ; -- Begin function fread
	.p2align	2
_fread:                                 ; @fread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	umulh	x8, x2, x1
	cmp	xzr, x8
	cset	w8, ne
	ldr	w9, [x3]
Lloh0:
	adrp	x10, ___FILE_CAN_READ@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___FILE_CAN_READ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.1:
	mov	x23, #0
	tbnz	w8, #0, LBB0_13
; %bb.2:
	mov	x20, x2
	mov	x21, x1
	mul	x24, x2, x1
	cbz	x24, LBB0_13
; %bb.3:
	mov	x22, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	str	xzr, [x19, #8]
	ldrb	w8, [x19, #4]
	strb	w8, [x22]
	mov	w23, #1
	cmp	x24, #1
	b.eq	LBB0_13
; %bb.5:
	cmp	x23, x24
	b.lo	LBB0_8
	b	LBB0_11
LBB0_6:
	mov	x23, #0
Lloh3:
	adrp	x8, ___FILE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___FILE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_13
LBB0_7:
	mov	x23, #0
	cmp	x23, x24
	b.hs	LBB0_11
LBB0_8:
Lloh6:
	adrp	x25, _EOF@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fgetc
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w0, [x22, x23]
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_9
LBB0_11:
	mov	x23, x20
	b	LBB0_13
LBB0_12:
	udiv	x23, x23, x21
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___FILE_CAN_READ,4,2            ; @__FILE_CAN_READ
	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
