	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_context
_alloc_context:                         ## @alloc_context
	.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	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_mirror@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	72(%rax), %rdi
	callq	_spin_lock_init
	leaq	68(%rbx), %rdi
	callq	_bio_list_init
	leaq	64(%rbx), %rdi
	callq	_bio_list_init
	leaq	60(%rbx), %rdi
	callq	_bio_list_init
	leaq	56(%rbx), %rdi
	callq	_bio_list_init
	movq	%r14, 16(%rbx)
	movl	%r13d, (%rbx)
	movl	12(%r14), %edi
	movl	%r12d, %esi
	callq	_dm_sector_div_up
	movl	%eax, 12(%rbx)
	leaq	28(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_DEFAULT_MIRROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	xorl	%eax, %eax
	callq	_dm_io_client_create
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_4:
	movq	_dispatch_bios@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_wakeup_mirrord@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wakeup_all_recovery_waiters@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%rbx), %rax
	movl	8(%rax), %r8d
	movq	_MAX_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	12(%rbx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r12
	pushq	%r15
	callq	_dm_region_hash_create
	addq	$32, %rsp
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	movl	4(%rbx), %edi
	callq	_dm_io_client_destroy
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mirror,4,2                     ## @mirror
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate mirror context"

	.comm	_DEFAULT_MIRROR,4,2             ## @DEFAULT_MIRROR
L_.str.1:                               ## @.str.1
	.asciz	"Error creating dm_io client"

	.comm	_dispatch_bios,4,2              ## @dispatch_bios
	.comm	_wakeup_mirrord,4,2             ## @wakeup_mirrord
	.comm	_wakeup_all_recovery_waiters,4,2 ## @wakeup_all_recovery_waiters
	.comm	_MAX_RECOVERY,4,2               ## @MAX_RECOVERY
L_.str.2:                               ## @.str.2
	.asciz	"Error creating dirty region hash"

	.comm	_ms,8,3                         ## @ms
	.no_dead_strip	_alloc_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_context
_alloc_context:                         ; @alloc_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _mirror@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mirror@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_struct_size
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #72
	bl	_spin_lock_init
	add	x0, x19, #68
	bl	_bio_list_init
	add	x0, x19, #64
	bl	_bio_list_init
	add	x0, x19, #60
	bl	_bio_list_init
	add	x0, x19, #56
	bl	_bio_list_init
	str	x20, [x19, #16]
	str	w23, [x19]
	ldr	w0, [x20, #12]
	mov	x1, x22
	bl	_dm_sector_div_up
	str	w0, [x19, #12]
	add	x0, x19, #28
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #32]
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #24
Lloh6:
	adrp	x8, _DEFAULT_MIRROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFAULT_MIRROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_atomic_set
	bl	_dm_io_client_create
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _dispatch_bios@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dispatch_bios@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _wakeup_mirrord@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wakeup_mirrord@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _wakeup_all_recovery_waiters@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wakeup_all_recovery_waiters@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	ldr	x8, [x19, #16]
	ldr	w4, [x8, #8]
Lloh22:
	adrp	x8, _MAX_RECOVERY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX_RECOVERY@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	ldr	w8, [x19, #12]
	str	w8, [sp]
	mov	x0, x19
	mov	x6, x21
	mov	x7, x22
	bl	_dm_region_hash_create
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
Lloh25:
	adrp	x8, l_.str.2@PAGE
Lloh26:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20]
	ldr	w0, [x19, #4]
	bl	_dm_io_client_destroy
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_mirror,4,2                     ; @mirror
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate mirror context"

	.comm	_DEFAULT_MIRROR,4,2             ; @DEFAULT_MIRROR
l_.str.1:                               ; @.str.1
	.asciz	"Error creating dm_io client"

	.comm	_dispatch_bios,4,2              ; @dispatch_bios
	.comm	_wakeup_mirrord,4,2             ; @wakeup_mirrord
	.comm	_wakeup_all_recovery_waiters,4,2 ; @wakeup_all_recovery_waiters
	.comm	_MAX_RECOVERY,4,2               ; @MAX_RECOVERY
l_.str.2:                               ; @.str.2
	.asciz	"Error creating dirty region hash"

	.comm	_ms,8,3                         ; @ms
	.no_dead_strip	_alloc_context
.subsections_via_symbols
