	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_queue_chunk_work
_dmz_queue_chunk_work:                  ## @dmz_queue_chunk_work
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_dmz_bio_chunk
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	12(%r15), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_radix_tree_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
LBB0_2:
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_bio_list_add
	movq	%rbx, %rdi
	callq	_dmz_get_chunk_work
	movl	8(%r15), %edi
	callq	_dmz_reclaim_bio_acc
	movl	4(%r15), %edi
	leaq	4(%rbx), %rsi
	callq	_queue_work
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_dmz_get_chunk_work
	jmp	LBB0_8
LBB0_4:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_6:
	leaq	4(%rbx), %rdi
	movq	_dmz_chunk_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	movq	%r15, 16(%rbx)
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_bio_list_init
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_radix_tree_insert
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dmz_chunk_work,4,2             ## @dmz_chunk_work
	.no_dead_strip	_dmz_queue_chunk_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_queue_chunk_work
_dmz_queue_chunk_work:                  ; @dmz_queue_chunk_work
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_dmz_bio_chunk
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	add	x23, x19, #12
	mov	x0, x23
	mov	x1, x22
	bl	_radix_tree_lookup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w22, #0
LBB0_2:
	add	x0, x21, #8
	mov	x1, x20
	bl	_bio_list_add
	mov	x0, x21
	bl	_dmz_get_chunk_work
	ldr	w0, [x19, #8]
	bl	_dmz_reclaim_bio_acc
	ldr	w0, [x19, #4]
	add	x1, x21, #4
	bl	_queue_work
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_dmz_get_chunk_work
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	add	x0, x21, #4
Lloh6:
	adrp	x8, _dmz_chunk_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dmz_chunk_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #24
	mov	w1, #0
	bl	_refcount_set
	str	x19, [x21, #16]
	str	w22, [x21]
	add	x0, x21, #8
	bl	_bio_list_init
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_radix_tree_insert
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.7:
	mov	x0, x21
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dmz_chunk_work,4,2             ; @dmz_chunk_work
	.no_dead_strip	_dmz_queue_chunk_work
.subsections_via_symbols
