	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_stream_iovecin             ## -- Begin function ogg_stream_iovecin
	.p2align	4, 0x90
_ogg_stream_iovecin:                    ## @ogg_stream_iovecin
	.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
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_ogg_stream_check
	movl	$-1, %r9d
	testq	%rax, %rax
	je	LBB0_1
LBB0_29:
	movl	%r9d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.5:
	movl	%r14d, %ecx
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	shlq	$4, %rcx
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rdx), %rsi
	movq	%rax, %rdi
	subq	%rsi, %rdi
	jl	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %r12
	jg	LBB0_29
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%rsi, %r12
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_2:
	xorl	%r9d, %r9d
	jmp	LBB0_29
LBB0_4:
	xorl	%r12d, %r12d
LBB0_9:
	movabsq	$-9187201950435737471, %rcx     ## imm = 0x8080808080808081
	movq	%r12, %rax
	imulq	%rcx
	movq	%rdx, %rbx
	movq	56(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.10:
	movq	40(%r15), %rdx
	subq	%rsi, %rdx
	movq	%rdx, 40(%r15)
	je	LBB0_12
## %bb.11:
	movq	48(%r15), %rdi
	addq	%rdi, %rsi
	callq	_memmove
LBB0_12:
	movq	$0, 56(%r15)
LBB0_13:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__os_body_expand
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$-1, %r9d
	jmp	LBB0_29
LBB0_15:
	addq	%r12, %rbx
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$7, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	__os_lacing_expand
	testq	%rax, %rax
	movl	$-1, %r9d
	jne	LBB0_29
## %bb.16:
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %rax
	shlq	$8, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	subq	%rax, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.17:
	movl	%r14d, %ebx
	movq	40(%r15), %rdi
	shlq	$4, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	addq	48(%r15), %rdi
	movl	8(%r13,%r14), %esi
	movq	(%r13,%r14), %rdx
	callq	_memcpy
	movslq	(%r13,%r14), %rdi
	addq	40(%r15), %rdi
	movq	%rdi, 40(%r15)
	addq	$16, %r14
	cmpq	%r14, %rbx
	jne	LBB0_18
LBB0_19:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	addq	%r12, %r9
	movq	(%r15), %rax
	cmpq	$254, %r12
	jle	LBB0_20
## %bb.21:
	movq	24(%r15), %rcx
	addq	$-255, %r12
	xorl	%edx, %edx
	cmpq	$255, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_24
## %bb.22:
	movq	%rbx, %r8
	andq	$-2, %r8
	xorl	%edx, %edx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	addl	%edx, %edi
	movslq	%edi, %rdi
	movl	$255, (%rax,%rdi,4)
	movl	32(%r15), %edi
	movl	8(%r15), %esi
	addl	%edx, %esi
	movslq	%esi, %rsi
	movl	%edi, (%rcx,%rsi,4)
	movl	8(%r15), %esi
	addl	%edx, %esi
	incl	%esi
	movslq	%esi, %rsi
	movl	$255, (%rax,%rsi,4)
	movl	8(%r15), %esi
	movl	32(%r15), %edi
	addl	%edx, %esi
	incl	%esi
	movslq	%esi, %rsi
	movl	%edi, (%rcx,%rsi,4)
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_23
LBB0_24:
	testb	$1, %bl
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_26
## %bb.25:
	movslq	8(%r15), %rsi
	movslq	%edx, %rdx
	addq	%rdx, %rsi
	movl	$255, (%rax,%rsi,4)
	movl	32(%r15), %esi
	movslq	8(%r15), %rdi
	addq	%rdx, %rdi
	movl	%esi, (%rcx,%rdi,4)
LBB0_26:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_20:
	movq	24(%r15), %rcx
	xorl	%esi, %esi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_27:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movslq	8(%r15), %rdx
	movslq	%esi, %rsi
	addq	%rsi, %rdx
	movl	%r9d, (%rax,%rdx,4)
	movslq	8(%r15), %rdx
	addq	%rsi, %rdx
	movl	%ebx, (%rcx,%rdx,4)
	movl	%ebx, 32(%r15)
	movslq	8(%r15), %rcx
	orl	$256, (%rax,%rcx,4)             ## imm = 0x100
	addl	%edi, 8(%r15)
	incl	16(%r15)
	xorl	%r9d, %r9d
	testq	%r8, %r8
	je	LBB0_29
## %bb.28:
	movl	$1, 12(%r15)
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ogg_stream_iovecin             ; -- Begin function ogg_stream_iovecin
	.p2align	2
_ogg_stream_iovecin:                    ; @ogg_stream_iovecin
	.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	x21, x4
	mov	x20, x3
	mov	x25, x2
	mov	x23, x1
	mov	x19, x0
	bl	_ogg_stream_check
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
LBB0_3:
	cbz	x23, LBB0_9
; %bb.4:
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x22, #0
Lloh0:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, w25
	mov	x10, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	subs	x12, x8, x11
	ccmp	x22, x12, #0, ge
	b.gt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x11, x22
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_6
; %bb.8:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_11
	b	LBB0_14
LBB0_9:
	mov	w0, #0
	b	LBB0_2
LBB0_10:
	mov	x22, #0
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_14
LBB0_11:
	ldr	x9, [x19, #40]
	subs	x2, x9, x8
	str	x2, [x19, #40]
	b.eq	LBB0_13
; %bb.12:
	ldr	x0, [x19, #48]
	add	x1, x0, x8
	bl	_memmove
LBB0_13:
	str	xzr, [x19, #56]
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	bl	__os_body_expand
	cbnz	x0, LBB0_1
; %bb.15:
	mov	x8, #-9187201950435737472
	movk	x8, #32897
	smulh	x8, x22, x8
	add	x8, x8, x22
	asr	x9, x8, #7
	add	x26, x9, x8, lsr #63
	add	x24, x26, #1
	mov	x0, x19
	mov	x1, x24
	bl	__os_lacing_expand
	cbnz	x0, LBB0_1
; %bb.16:
	cmp	w25, #1
	b.lt	LBB0_19
; %bb.17:
	mov	w25, w25
	ldr	x8, [x19, #40]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	add	x0, x8, x9
	ldr	w1, [x23, #8]
	ldr	x2, [x23]
	bl	_memcpy
	ldrsw	x8, [x23]
	ldr	x9, [x19, #40]
	add	x8, x8, x9
	str	x8, [x19, #40]
	add	x23, x23, #16
	subs	x25, x25, #1
	b.ne	LBB0_18
LBB0_19:
	ldr	x8, [x19]
	cmp	x22, #254
	b.le	LBB0_23
; %bb.20:
	mov	x10, #0
	ldr	x9, [x19, #24]
	mov	w11, #255
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x19, #8]
	add	w12, w10, w12
	str	w11, [x8, w12, sxtw #2]
	ldr	w12, [x19, #32]
	ldr	w13, [x19, #8]
	add	w13, w10, w13
	str	w12, [x9, w13, sxtw #2]
	add	x10, x10, #1
	cmp	x26, x10
	b.ne	LBB0_21
; %bb.22:
	mov	x10, x26
	b	LBB0_24
LBB0_23:
	mov	w10, #0
	ldr	x9, [x19, #24]
LBB0_24:
	sub	w11, w26, w26, lsl #8
	add	w11, w22, w11
	ldr	w12, [x19, #8]
	add	w12, w12, w10
	str	w11, [x8, w12, sxtw #2]
	ldr	w11, [x19, #8]
	add	w10, w11, w10
	str	w21, [x9, w10, sxtw #2]
	str	w21, [x19, #32]
	ldrsw	x9, [x19, #8]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, #0x100
	str	w10, [x8, x9]
	ldr	w8, [x19, #8]
	add	w8, w8, w24
	str	w8, [x19, #8]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	w0, #0
	cbz	x20, LBB0_2
; %bb.25:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
.subsections_via_symbols
