	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_zero_page_generic
_pmap_zero_page_generic:                ## @pmap_zero_page_generic
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	__min_bzero_size@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_2
## %bb.1:
	leal	(%r14,%rbx), %eax
	movslq	%eax, %rdi
	movq	_IS_PHYSICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	__arm_bzero
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	_cmtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_L2_S_PROTO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PTE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_L2_S_PROT
	orl	%ebx, %eax
	movq	_cdst_pte@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi)
	callq	_PTE_SYNC
	movq	_cdstp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_cpu_tlb_flushD_SE
	xorl	%eax, %eax
	callq	_cpu_cpwait
	movq	(%rbx), %rdi
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.5:
	callq	_bzero_page
	jmp	LBB0_6
LBB0_4:
	movslq	%r14d, %rax
	addq	%rax, %rdi
	movl	%r15d, %esi
	callq	_bzero
LBB0_6:
	movq	_cmtx@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__min_bzero_size,4,2            ## @_min_bzero_size
	.comm	_IS_PHYSICAL,4,2                ## @IS_PHYSICAL
	.comm	_cmtx,4,2                       ## @cmtx
	.comm	_L2_S_PROTO,4,2                 ## @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ## @PTE_KERNEL
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_cdst_pte,8,3                   ## @cdst_pte
	.comm	_cdstp,8,3                      ## @cdstp
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_pmap_zero_page_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_zero_page_generic
_pmap_zero_page_generic:                ; @pmap_zero_page_generic
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, __min_bzero_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, __min_bzero_size@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_2
; %bb.1:
	add	w8, w20, w21
	sxtw	x0, w8
Lloh3:
	adrp	x8, _IS_PHYSICAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IS_PHYSICAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x19
	bl	__arm_bzero
	cbz	x0, LBB0_7
LBB0_2:
Lloh6:
	adrp	x0, _cmtx@GOTPAGE
Lloh7:
	ldr	x0, [x0, _cmtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh8:
	adrp	x8, _L2_S_PROTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _L2_S_PROTO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh11:
	adrp	x8, _PTE_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTE_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_L2_S_PROT
	orr	w8, w21, w0
Lloh17:
	adrp	x9, _cdst_pte@GOTPAGE
Lloh18:
	ldr	x9, [x9, _cdst_pte@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x9]
	str	w8, [x0]
	bl	_PTE_SYNC
Lloh20:
	adrp	x21, _cdstp@GOTPAGE
Lloh21:
	ldr	x21, [x21, _cdstp@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_cpu_tlb_flushD_SE
	bl	_cpu_cpwait
	ldr	x0, [x21]
	cbnz	w20, LBB0_5
; %bb.3:
Lloh22:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	bl	_bzero_page
	b	LBB0_6
LBB0_5:
	add	x0, x0, w20, sxtw
	mov	x1, x19
	bl	_bzero
LBB0_6:
Lloh25:
	adrp	x0, _cmtx@GOTPAGE
Lloh26:
	ldr	x0, [x0, _cmtx@GOTPAGEOFF]
	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
	b	_mtx_unlock
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	__min_bzero_size,4,2            ; @_min_bzero_size
	.comm	_IS_PHYSICAL,4,2                ; @IS_PHYSICAL
	.comm	_cmtx,4,2                       ; @cmtx
	.comm	_L2_S_PROTO,4,2                 ; @L2_S_PROTO
	.comm	_PTE_KERNEL,4,2                 ; @PTE_KERNEL
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_cdst_pte,8,3                   ; @cdst_pte
	.comm	_cdstp,8,3                      ; @cdstp
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_pmap_zero_page_generic
.subsections_via_symbols
