	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_set_chunk_mapping
_dmz_set_chunk_mapping:                 ## @dmz_set_chunk_mapping
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	_DMZ_MAP_ENTRIES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %eax
	shrq	%cl, %rax
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	movq	(%rcx,%rax,8), %r15
	movq	(%r15), %r13
	movq	_DMZ_MAP_ENTRIES_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movslq	%esi, %rbx
	movl	%edx, %edi
	callq	_cpu_to_le32
	shlq	$4, %rbx
	movq	%rax, 8(%r13,%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r13,%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmz_dirty_mblock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMZ_MAP_ENTRIES_SHIFT,4,2      ## @DMZ_MAP_ENTRIES_SHIFT
	.comm	_DMZ_MAP_ENTRIES_MASK,4,2       ## @DMZ_MAP_ENTRIES_MASK
	.no_dead_strip	_dmz_set_chunk_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_set_chunk_mapping
_dmz_set_chunk_mapping:                 ; @dmz_set_chunk_mapping
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x0
Lloh0:
	adrp	x8, _DMZ_MAP_ENTRIES_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMZ_MAP_ENTRIES_SHIFT@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	w8, [x8]
	mov	w10, w1
	lsr	x8, x10, x8
	ldr	x21, [x9, x8, lsl #3]
	ldr	x22, [x21]
Lloh3:
	adrp	x8, _DMZ_MAP_ENTRIES_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMZ_MAP_ENTRIES_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w23, w8, w1
	mov	x0, x2
	bl	_cpu_to_le32
	add	x22, x22, w23, sxtw #4
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_cpu_to_le32
	str	x0, [x22]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dmz_dirty_mblock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMZ_MAP_ENTRIES_SHIFT,4,2      ; @DMZ_MAP_ENTRIES_SHIFT
	.comm	_DMZ_MAP_ENTRIES_MASK,4,2       ; @DMZ_MAP_ENTRIES_MASK
	.no_dead_strip	_dmz_set_chunk_mapping
.subsections_via_symbols
