	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	80(%rax), %rdi
	callq	_spin_lock_init
	leaq	76(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	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	%r14, 56(%rbx)
	leaq	4(%rbx), %r14
	movq	_MIN_JOBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	__job_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mempool_init_slab_pool
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	leaq	48(%rbx), %rdi
	movq	_do_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	callq	_dm_get_kcopyd_subjob_size
	movl	%eax, (%rbx)
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_UP
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_client_reserve_pages
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_dm_io_client_create
	movl	%eax, 20(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	20(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_client_free_pages
LBB0_9:
	movl	8(%rbx), %edi
	callq	_destroy_workqueue
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movq	%r14, %rdi
	callq	_mempool_exit
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	leaq	16(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x0, #80
	bl	_spin_lock_init
	add	x0, x19, #76
	bl	_INIT_LIST_HEAD
	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	x20, [x19, #56]
	add	x20, x19, #4
Lloh3:
	adrp	x8, _MIN_JOBS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_JOBS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, __job_cache@GOTPAGE
Lloh7:
	ldr	x8, [x8, __job_cache@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mempool_init_slab_pool
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.2:
	add	x0, x19, #48
Lloh9:
	adrp	x8, _do_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _do_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh12:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.3:
	bl	_dm_get_kcopyd_subjob_size
Lloh17:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
	str	w0, [x19]
Lloh19:
	ldr	w8, [x8]
	lsl	w0, w0, w8
Lloh20:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	mov	x1, x0
	stp	xzr, xzr, [x19, #32]
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_client_reserve_pages
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	bl	_dm_io_client_create
	str	w0, [x19, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w0, [x19, #20]
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	bl	_client_free_pages
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_destroy_workqueue
	b	LBB0_9
LBB0_7:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x20
	bl	_mempool_exit
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
LBB0_11:
	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_12:
	add	x0, x19, #16
	bl	_init_waitqueue_head
	add	x0, x19, #12
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
