	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmz_put_chunk_mapping          ## -- Begin function dmz_put_chunk_mapping
	.p2align	4, 0x90
_dmz_put_chunk_mapping:                 ## @dmz_put_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_dmz_lock_map
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_dmz_weight
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rsi
	callq	_dmz_lru_zone
	movb	$1, %bl
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rsi
	callq	_dmz_unmap_zone
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dmz_free_zone
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_dmz_deactivate_zone
	movq	%r15, %rdi
	callq	_dmz_is_active
	testb	%bl, %bl
	jne	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_dmz_weight
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dmz_lru_zone
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dmz_unmap_zone
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dmz_free_zone
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmz_unlock_map                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmz_put_chunk_mapping          ; -- Begin function dmz_put_chunk_mapping
	.p2align	2
_dmz_put_chunk_mapping:                 ; @dmz_put_chunk_mapping
	.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	x20, x1
	mov	x19, x0
	bl	_dmz_lock_map
	ldr	x21, [x20]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_dmz_weight
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_lru_zone
	mov	w21, #1
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_unmap_zone
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_free_zone
	mov	w21, #0
LBB0_4:
	mov	x0, x20
	bl	_dmz_deactivate_zone
	mov	x0, x20
	bl	_dmz_is_active
	tbnz	w21, #0, LBB0_7
; %bb.5:
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_dmz_weight
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_dmz_lru_zone
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_dmz_unmap_zone
	mov	x0, x19
	mov	x1, x20
	bl	_dmz_free_zone
LBB0_9:
	mov	x0, x19
	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	_dmz_unlock_map
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
