	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msc_buffer_iterate
_msc_buffer_iterate:                    ## @msc_buffer_iterate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	48(%rdi), %rsi
	callq	_msc_iter_win_start
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_msc_iter_bdesc
	movq	%rax, %rdi
	callq	_msc_data_sz
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_msc_iter_bdesc
	movq	_MSC_BDESC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	%rax, %rsi
	movq	(%r13), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, 16(%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_DATA_IN_PAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r14, %rax
	addq	%r14, %rsi
	movq	%rax, %r14
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r13), %rax
	subq	%rax, %r14
	addq	%rax, %rsi
	cmpq	%r14, %r15
	movq	%r14, %rbx
	cmovbq	%r15, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	subq	%rax, %rbx
	movq	%r15, %r12
	subq	%rbx, %r12
	movdqu	24(%r13), %xmm0
	movq	%rbx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 24(%r13)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r15
	jae	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r12
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_msc_iter_block_advance
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %r15
	testq	%r12, %r12
	jne	LBB0_5
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%r12, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MSC_BDESC,4,2                  ## @MSC_BDESC
	.comm	_DATA_IN_PAGE,8,3               ## @DATA_IN_PAGE
	.no_dead_strip	_msc_buffer_iterate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msc_buffer_iterate
_msc_buffer_iterate:                    ; @msc_buffer_iterate
	.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
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x1, [x0, #48]
	bl	_msc_iter_win_start
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	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_4:
Lloh0:
	adrp	x25, _MSC_BDESC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSC_BDESC@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DATA_IN_PAGE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DATA_IN_PAGE@GOTPAGEOFF]
	mov	x24, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_msc_iter_bdesc
	bl	_msc_data_sz
	mov	x23, x0
	mov	x0, x22
	bl	_msc_iter_bdesc
	ldrsw	x8, [x25]
	add	x8, x0, x8
	ldp	x9, x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #16]
	cmp	w9, #2
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x26]
	add	x8, x8, x23
	sub	x23, x9, x23
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x23, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #32]
	add	x1, x8, x9
	sub	x27, x23, x9
	cmp	x24, x27
	csel	x23, x24, x27, lo
	mov	x0, x21
	mov	x2, x23
	blr	x20
	cmp	x0, #0
	ccmp	x24, x27, #0, eq
	sub	x8, x23, x0
	sub	x24, x24, x8
	ldur	q0, [x22, #24]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	stur	q0, [x22, #24]
	b.lo	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_msc_iter_block_advance
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x24, LBB0_5
LBB0_12:
	sub	x0, x19, x24
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MSC_BDESC,4,2                  ; @MSC_BDESC
	.comm	_DATA_IN_PAGE,8,3               ; @DATA_IN_PAGE
	.no_dead_strip	_msc_buffer_iterate
.subsections_via_symbols
