	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sg_dwiter_read_buffer
_sg_dwiter_read_buffer:                 ## @sg_dwiter_read_buffer
	.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	%rdi, %r15
	leaq	-36(%rbp), %r14
	movl	$4, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	subq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_min
	movq	%rax, %rbx
	movq	(%r15), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_memcpy
	addq	%rbx, (%r15)
	subq	%rbx, %r12
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %r14
	movq	%r15, %rdi
	callq	_sg_dwiter_next
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
LBB0_4:
	movl	-36(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sg_dwiter_read_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sg_dwiter_read_buffer
_sg_dwiter_read_buffer:                 ; @sg_dwiter_read_buffer
	.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, x0
	add	x20, sp, #12
	mov	w19, #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	sub	x0, x8, x9
	mov	x1, x19
	bl	_min
	mov	x22, x0
	ldp	x9, x8, [x21]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, x22
	str	x8, [x21]
	subs	x19, x19, x22
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x20, x20, x22
	mov	x0, x21
	bl	_sg_dwiter_next
	cbnz	x0, LBB0_1
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_memset
LBB0_4:
	ldr	w0, [sp, #12]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sg_dwiter_read_buffer
.subsections_via_symbols
