	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioread
_ioread:                                ## @ioread
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SECSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leal	-1(%r14), %eax
	movl	%eax, %r15d
	andl	%r13d, %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	subl	%r15d, %r13d
	movl	(%rbx), %ebx
	movl	%r13d, %edi
	callq	_bytsec
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_ioget
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	subl	%r15d, %eax
	movq	%r12, %rsi
	movslq	%eax, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rbx
	cmoval	%r14d, %ebx
	movslq	%r15d, %rax
	addq	%rax, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_SECSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r13d
	movslq	%ebx, %rcx
	addq	%rcx, %r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	subq	%rcx, %r14
	movq	%r14, %rcx
	decl	%eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_4:
	movl	%ecx, %r15d
	andl	%eax, %r15d
	movslq	%r15d, %rax
	subq	%rax, %rcx
	jne	LBB0_6
## %bb.5:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %r14d
	movl	%r13d, %edi
	movq	%rcx, %rbx
	callq	_bytsec
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ecx
	callq	_ioget
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %r13d
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %ebx
	movl	%r13d, %edi
	callq	_bytsec
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_ioget
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SECSIZ,4,2                     ## @SECSIZ
	.no_dead_strip	_ioread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioread
_ioread:                                ; @ioread
	.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
	sub	sp, sp, #16
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _SECSIZ@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SECSIZ@GOTPAGEOFF]
	ldr	w21, [x26]
	mov	x9, x21
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	sub	w8, w21, #1
	ands	w27, w8, w1
	b.eq	LBB0_3
; %bb.1:
	sub	w23, w23, w27
	ldr	w25, [x22]
	mov	x0, x23
	bl	_bytsec
	mov	x1, x0
	mov	x0, x25
	mov	x2, x20
	mov	x3, x21
	bl	_ioget
	cbnz	w0, LBB0_10
; %bb.2:
	sub	w8, w21, w27
	sxtw	x9, w8
	cmp	x9, x24
	csel	w25, w24, w8, hi
	add	x1, x20, w27, sxtw
	mov	x0, x19
	mov	x2, x25
	bl	_memcpy
	ldr	w8, [x26]
	add	w23, w8, w23
	sxtw	x9, w25
	add	x19, x19, x9
	sub	x24, x24, x9
	sub	w8, w8, #1
LBB0_3:
	and	w25, w8, w24
	sxtw	x8, w25
	subs	x24, x24, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	w26, [x22]
	mov	x0, x23
	bl	_bytsec
	mov	x1, x0
	mov	x0, x26
	mov	x2, x19
	mov	x3, x24
	bl	_ioget
	cbnz	w0, LBB0_10
; %bb.5:
	add	w23, w23, w24
	add	x19, x19, x24
LBB0_6:
	cbz	w25, LBB0_9
; %bb.7:
	ldr	w22, [x22]
	mov	x0, x23
	bl	_bytsec
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_ioget
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_memcpy
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SECSIZ,4,2                     ; @SECSIZ
	.no_dead_strip	_ioread
.subsections_via_symbols
