	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mspec_zero_block
_mspec_zero_block:                      ## @mspec_zero_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	%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
	movl	%esi, %edx
	movq	_is_sn2@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_is_shub2
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	___pa
	movl	%eax, %edi
	callq	_get_node_number
	movl	%eax, %edi
	callq	_nasid_to_cnodeid
	movq	_scratch_page@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_TO_AMO
	movq	_SH2_AMO_CACHE_ENTRIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_FETCHOP_LOAD@GOTPCREL(%rip), %r14
	movq	_FETCHOP_VAR_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_FETCHOP_LOAD_OP
	movslq	(%r15), %rax
	addq	%rax, %r13
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_4
LBB0_5:
	movq	___IA64_UNCACHED_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	notq	%rsi
	andq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	_BTE_WACQUIRE@GOTPCREL(%rip), %rax
	movq	_BTE_ZERO_FILL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bte_copy                       ## TAILCALL
LBB0_6:
	xorl	%esi, %esi
	callq	_memset
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_sn2,8,3                     ## @is_sn2
	.comm	_scratch_page,8,3               ## @scratch_page
	.comm	_SH2_AMO_CACHE_ENTRIES,4,2      ## @SH2_AMO_CACHE_ENTRIES
	.comm	_FETCHOP_LOAD,4,2               ## @FETCHOP_LOAD
	.comm	_FETCHOP_VAR_SIZE,4,2           ## @FETCHOP_VAR_SIZE
	.comm	___IA64_UNCACHED_OFFSET,8,3     ## @__IA64_UNCACHED_OFFSET
	.comm	_BTE_WACQUIRE,4,2               ## @BTE_WACQUIRE
	.comm	_BTE_ZERO_FILL,4,2              ## @BTE_ZERO_FILL
	.no_dead_strip	_mspec_zero_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mspec_zero_block
_mspec_zero_block:                      ; @mspec_zero_block
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _is_sn2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_sn2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	bl	_is_shub2
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	___pa
	bl	_get_node_number
	bl	_nasid_to_cnodeid
Lloh3:
	adrp	x8, _scratch_page@GOTPAGE
Lloh4:
	ldr	x8, [x8, _scratch_page@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, w0, sxtw #2]
	bl	_TO_AMO
Lloh6:
	adrp	x22, _SH2_AMO_CACHE_ENTRIES@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SH2_AMO_CACHE_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, x0
	mov	w23, #0
Lloh8:
	adrp	x24, _FETCHOP_LOAD@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FETCHOP_LOAD@GOTPAGEOFF]
Lloh10:
	adrp	x25, _FETCHOP_VAR_SIZE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _FETCHOP_VAR_SIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_FETCHOP_LOAD_OP
	ldrsw	x8, [x25]
	add	x21, x21, x8
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_5:
Lloh12:
	adrp	x8, ___IA64_UNCACHED_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___IA64_UNCACHED_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	bic	x1, x20, x8
Lloh15:
	adrp	x8, _BTE_WACQUIRE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTE_WACQUIRE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BTE_ZERO_FILL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTE_ZERO_FILL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #0
	mov	x2, x19
	mov	x4, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bte_copy
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_is_sn2,8,3                     ; @is_sn2
	.comm	_scratch_page,8,3               ; @scratch_page
	.comm	_SH2_AMO_CACHE_ENTRIES,4,2      ; @SH2_AMO_CACHE_ENTRIES
	.comm	_FETCHOP_LOAD,4,2               ; @FETCHOP_LOAD
	.comm	_FETCHOP_VAR_SIZE,4,2           ; @FETCHOP_VAR_SIZE
	.comm	___IA64_UNCACHED_OFFSET,8,3     ; @__IA64_UNCACHED_OFFSET
	.comm	_BTE_WACQUIRE,4,2               ; @BTE_WACQUIRE
	.comm	_BTE_ZERO_FILL,4,2              ; @BTE_ZERO_FILL
	.no_dead_strip	_mspec_zero_block
.subsections_via_symbols
