	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_empty_lvol
_create_empty_lvol:                     ## @create_empty_lvol
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	4(%rdi), %edi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	movq	_UBI_VTBL_RECORD_SIZE@GOTPCREL(%rip), %r15
	movq	_empty_vtbl_record@GOTPCREL(%rip), %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	incq	%r14
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	_UBI_LAYOUT_VOLUME_EBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_create_vtbl
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	_UBI_LAYOUT_VOLUME_EBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_8
LBB0_11:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_vfree
LBB0_10:
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_empty_vtbl_record,4,2          ## @empty_vtbl_record
	.comm	_UBI_VTBL_RECORD_SIZE,4,2       ## @UBI_VTBL_RECORD_SIZE
	.comm	_UBI_LAYOUT_VOLUME_EBS,4,2      ## @UBI_LAYOUT_VOLUME_EBS
	.no_dead_strip	_create_empty_lvol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_empty_lvol
_create_empty_lvol:                     ; @create_empty_lvol
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_vmalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	w2, [x20, #4]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _UBI_VTBL_RECORD_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _UBI_VTBL_RECORD_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _empty_vtbl_record@GOTPAGE
Lloh3:
	ldr	x22, [x22, _empty_vtbl_record@GOTPAGEOFF]
	mov	x23, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_memcpy
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
Lloh4:
	adrp	x24, _UBI_LAYOUT_VOLUME_EBS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _UBI_LAYOUT_VOLUME_EBS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_create_vtbl
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_6
LBB0_8:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_10:
	mov	x23, x0
	mov	x0, x21
	bl	_vfree
LBB0_11:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_empty_vtbl_record,4,2          ; @empty_vtbl_record
	.comm	_UBI_VTBL_RECORD_SIZE,4,2       ; @UBI_VTBL_RECORD_SIZE
	.comm	_UBI_LAYOUT_VOLUME_EBS,4,2      ; @UBI_LAYOUT_VOLUME_EBS
	.no_dead_strip	_create_empty_lvol
.subsections_via_symbols
