	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_reader_init_stdio_stream   ## -- Begin function mpc_reader_init_stdio_stream
	.p2align	4, 0x90
_mpc_reader_init_stdio_stream:          ## @mpc_reader_init_stdio_stream
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$56, %edi
	callq	_malloc
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_STDIO_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	%r15, 8(%rbx)
	movq	_MPC_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_ftell
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	%rbx, -48(%rbp)
	movq	_canseek_stdio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_get_size_stdio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_read_stdio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_seek_stdio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_tell_stdio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, 48(%r14)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movl	-72(%rbp), %eax
	movl	%eax, 16(%r14)
	movl	-68(%rbp), %eax
	movl	%eax, 20(%r14)
	movl	-64(%rbp), %eax
	movl	%eax, 24(%r14)
	movl	-60(%rbp), %eax
	movl	%eax, 28(%r14)
	movups	-56(%rbp), %xmm0
	movups	%xmm0, 32(%r14)
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_fclose
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movl	(%r12), %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_STATUS_FAIL,4,2            ## @MPC_STATUS_FAIL
	.comm	_STDIO_MAGIC,4,2                ## @STDIO_MAGIC
	.comm	_MPC_TRUE,4,2                   ## @MPC_TRUE
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_canseek_stdio,4,2              ## @canseek_stdio
	.comm	_get_size_stdio,4,2             ## @get_size_stdio
	.comm	_read_stdio,4,2                 ## @read_stdio
	.comm	_seek_stdio,4,2                 ## @seek_stdio
	.comm	_tell_stdio,4,2                 ## @tell_stdio
	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_reader_init_stdio_stream   ; -- Begin function mpc_reader_init_stdio_stream
	.p2align	2
_mpc_reader_init_stdio_stream:          ; @mpc_reader_init_stdio_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	w0, #56
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh0:
	adrp	x8, _STDIO_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIO_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x21, [x20, #8]
Lloh3:
	adrp	x9, _MPC_TRUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPC_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #48]
Lloh6:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_fseek
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x0, [x20, #8]
	bl	_ftell
	tbnz	w0, #31, LBB0_5
; %bb.3:
	str	w0, [x20]
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	tbnz	w0, #31, LBB0_5
; %bb.4:
	str	x20, [sp, #48]
Lloh12:
	adrp	x8, _canseek_stdio@GOTPAGE
Lloh13:
	ldr	x8, [x8, _canseek_stdio@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh15:
	adrp	x8, _get_size_stdio@GOTPAGE
Lloh16:
	ldr	x8, [x8, _get_size_stdio@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _read_stdio@GOTPAGE
Lloh19:
	ldr	x9, [x9, _read_stdio@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh21:
	adrp	x8, _seek_stdio@GOTPAGE
Lloh22:
	ldr	x8, [x8, _seek_stdio@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _tell_stdio@GOTPAGE
Lloh25:
	ldr	x9, [x9, _tell_stdio@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	ldr	x8, [sp, #56]
	str	x8, [x19, #48]
	ldur	q0, [sp, #8]
	ldur	q1, [sp, #24]
	stp	q0, q1, [x19]
	ldur	q0, [sp, #40]
	str	q0, [x19, #32]
Lloh27:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_fclose
LBB0_7:
	mov	x0, x20
	bl	_free
LBB0_8:
Lloh29:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_STATUS_FAIL,4,2            ; @MPC_STATUS_FAIL
	.comm	_STDIO_MAGIC,4,2                ; @STDIO_MAGIC
	.comm	_MPC_TRUE,4,2                   ; @MPC_TRUE
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_canseek_stdio,4,2              ; @canseek_stdio
	.comm	_get_size_stdio,4,2             ; @get_size_stdio
	.comm	_read_stdio,4,2                 ; @read_stdio
	.comm	_seek_stdio,4,2                 ; @seek_stdio
	.comm	_tell_stdio,4,2                 ; @tell_stdio
	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
.subsections_via_symbols
