	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScuTestInterruptMask           ## -- Begin function ScuTestInterruptMask
	.p2align	4, 0x90
_ScuTestInterruptMask:                  ## @ScuTestInterruptMask
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ScuRegs@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rcx), %eax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	4(%rcx), %edx
	movq	8(%rcx), %rcx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %esi
	shlq	$4, %rsi
	testl	%edx, (%rcx,%rsi)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	decq	%rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_4:
	decl	%eax
	movq	_MSH2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	shlq	$4, %rax
	movl	8(%rcx,%rax), %edx
	movl	12(%rcx,%rax), %esi
	callq	_SH2SendInterrupt
	movq	(%r14), %rax
	movq	8(%rax), %rdx
	movl	(%rax), %ecx
	movl	%ecx, %r12d
	subl	%ebx, %r12d
	movq	%r12, %rdi
	shlq	$4, %rdi
	movl	4(%rdx,%rdi), %esi
	notl	%esi
	andl	%esi, 16(%rax)
	decl	%ecx
	cmpl	%ecx, %r12d
	jae	LBB0_8
## %bb.5:
	addq	%rdx, %rdi
	leaq	1(%r12), %r15
	movq	%r15, %rsi
	shlq	$4, %rsi
	addq	%rdx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	(%rax), %ecx
	decl	%ecx
	cmpq	%rcx, %r15
	jae	LBB0_8
## %bb.6:
	shlq	$4, %r12
	addq	$32, %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	leaq	(%rsi,%r12), %rdi
	addq	$-16, %rdi
	addq	%r12, %rsi
	incq	%r15
	movl	$4, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	(%rax), %ecx
	decl	%ecx
	addq	$16, %r12
	cmpq	%rcx, %r15
	jb	LBB0_7
LBB0_8:
	movl	%ecx, (%rax)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ScuRegs,8,3                    ## @ScuRegs
	.comm	_MSH2,4,2                       ## @MSH2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScuTestInterruptMask           ; -- Begin function ScuTestInterruptMask
	.p2align	2
_ScuTestInterruptMask:                  ; @ScuTestInterruptMask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _ScuRegs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ScuRegs@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	w8, [x9]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, #0
	ldr	w10, [x9, #4]
	ldr	x9, [x9, #8]
	sub	x11, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w11, w20
	lsl	x12, x12, #4
	ldr	w12, [x9, x12]
	tst	w12, w10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x20, x20, #1
	cmn	x8, x20
	b.ne	LBB0_2
	b	LBB0_10
LBB0_4:
	add	w8, w8, w20
	sub	w8, w8, #1
Lloh2:
	adrp	x10, _MSH2@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MSH2@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x10]
	add	x8, x9, w8, uxtw #4
	ldp	w2, w1, [x8, #8]
	bl	_SH2SendInterrupt
	ldr	x8, [x19]
	ldr	x10, [x8, #8]
	ldr	w22, [x8]
	add	x9, x22, x20
	sub	x11, x9, #1
	add	x9, x10, w11, uxtw #4
	ldr	w9, [x9, #4]
	ldr	w12, [x8, #16]
	bic	w9, w12, w9
	str	w9, [x8, #16]
	sub	w9, w22, #1
	cmp	w11, w9
	b.hs	LBB0_9
; %bb.5:
	and	x8, x11, #0xffffffff
	add	x0, x10, x8, lsl #4
	add	x21, x8, #1
	add	x1, x10, x21, lsl #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #1
	cmp	x21, x9
	b.hs	LBB0_9
; %bb.6:
	add	w9, w22, w20
	sub	w9, w9, #1
	lsl	x9, x9, #4
	add	x20, x9, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x20
	sub	x0, x1, #16
	add	x21, x21, #1
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w9, [x8]
	sub	w9, w9, #1
	add	x20, x20, #16
	cmp	x21, x9
	b.lo	LBB0_7
; %bb.8:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_9:
	str	w9, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ScuRegs,8,3                    ; @ScuRegs
	.comm	_MSH2,4,2                       ; @MSH2
.subsections_via_symbols
