	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stream_chunk_get_wstr          ## -- Begin function stream_chunk_get_wstr
	.p2align	4, 0x90
_stream_chunk_get_wstr:                 ## @stream_chunk_get_wstr
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	%rcx, %rsi
	callq	_min
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_IStream_Read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	-40(%rbp), %rdi
	decq	%r12
	movq	%r12, %rsi
	callq	_min
	movq	$0, (%r15,%rax,8)
	movq	-40(%rbp), %rax
	cmpq	(%r14), %rax
	jge	LBB0_3
## %bb.2:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_FALSE,4,2                    ## @S_FALSE
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stream_chunk_get_wstr          ; -- Begin function stream_chunk_get_wstr
	.p2align	2
_stream_chunk_get_wstr:                 ; @stream_chunk_get_wstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x0, [x1]
	mov	x1, x3
	bl	_min
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_IStream_Read
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	sub	x1, x21, #1
	bl	_min
	str	xzr, [x20, x0, lsl #3]
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x8]
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_S_FALSE,4,2                    ; @S_FALSE
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
