	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sg_dwiter_get_next_block
_sg_dwiter_get_next_block:              ## @sg_dwiter_get_next_block
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sg_dwiter_is_at_end
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	subq	%rdi, %rax
	xorl	%r15d, %r15d
	movl	$0, %ecx
	cmpq	$4, %rax
	jb	LBB0_3
## %bb.2:
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	callq	_needs_unaligned_copy
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_3:
	movl	%ecx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	leaq	(,%rax,4), %rcx
	addq	16(%rbx), %rcx
	movq	%rcx, (%r14)
	addq	$4, %rax
	movq	%rax, 8(%rbx)
	movl	$1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sg_dwiter_get_next_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sg_dwiter_get_next_block
_sg_dwiter_get_next_block:              ; @sg_dwiter_get_next_block
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_sg_dwiter_is_at_end
	cbnz	x0, LBB0_5
; %bb.1:
	ldp	x9, x8, [x19]
	sub	x9, x9, x8
	cmp	x9, #4
	b.lo	LBB0_3
; %bb.2:
	ldr	x9, [x19, #16]
	add	x0, x9, x8, lsl #2
	bl	_needs_unaligned_copy
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	bl	_likely
	cbz	x0, LBB0_6
LBB0_4:
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x9, lsl #2
	str	x8, [x20]
	add	x8, x9, #4
	str	x8, [x19, #8]
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sg_dwiter_get_next_block
.subsections_via_symbols
