	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_kcopyd_client_create        ## -- Begin function dm_kcopyd_client_create
	.p2align	4, 0x90
_dm_kcopyd_client_create:               ## @dm_kcopyd_client_create
	.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	%rdi, %r15
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	76(%rax), %rdi
	callq	_spin_lock_init
	leaq	72(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	68(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, 56(%rbx)
	movl	52(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MIN_JOBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__job_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_create_slab_pool
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	48(%rbx), %rdi
	movq	_do_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	_RESERVE_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_client_reserve_pages
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_dm_io_client_create
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	16(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_client_free_pages
LBB0_8:
	movl	4(%rbx), %edi
	callq	_destroy_workqueue
LBB0_9:
	movl	(%rbx), %edi
	callq	_mempool_destroy
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_1:
	subl	(%r13), %r12d
	movl	%r12d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	leaq	12(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MIN_JOBS,4,2                   ## @MIN_JOBS
	.comm	__job_cache,4,2                 ## @_job_cache
	.comm	_do_work,4,2                    ## @do_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kcopyd"

	.comm	_RESERVE_PAGES,4,2              ## @RESERVE_PAGES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_kcopyd_client_create        ; -- Begin function dm_kcopyd_client_create
	.p2align	2
_dm_kcopyd_client_create:               ; @dm_kcopyd_client_create
	.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	x21, x0
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w22, [x20]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	neg	w20, w22
	add	x0, x0, #76
	bl	_spin_lock_init
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
	add	x0, x19, #68
	bl	_INIT_LIST_HEAD
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #56]
	ldr	w0, [x19, #52]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh5:
	adrp	x8, _MIN_JOBS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIN_JOBS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, __job_cache@GOTPAGE
Lloh9:
	ldr	x8, [x8, __job_cache@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_mempool_create_slab_pool
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.2:
	add	x0, x19, #48
Lloh11:
	adrp	x8, _do_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _do_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.3:
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #40]
Lloh16:
	adrp	x8, _RESERVE_PAGES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RESERVE_PAGES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_client_reserve_pages
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.4:
	bl	_dm_io_client_create
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_client_free_pages
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
LBB0_7:
	ldr	w0, [x19]
	bl	_mempool_destroy
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_10
LBB0_9:
	ldr	w8, [x20]
	neg	w0, w8
LBB0_10:
	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	_ERR_PTR
LBB0_11:
	add	x0, x19, #12
	bl	_init_waitqueue_head
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MIN_JOBS,4,2                   ; @MIN_JOBS
	.comm	__job_cache,4,2                 ; @_job_cache
	.comm	_do_work,4,2                    ; @do_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kcopyd"

	.comm	_RESERVE_PAGES,4,2              ; @RESERVE_PAGES
.subsections_via_symbols
