	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_vtbl
_create_vtbl:                           ## @create_vtbl
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leal	1(%rdx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_ubi_msg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ubi_zalloc_vid_hdr
	movq	%rax, _create_vtbl.vid_hdr(%rip)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_UBI_LAYOUT_VOLUME_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ubi_scan_find_sv
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ubi_scan_find_seb
LBB0_4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ubi_scan_get_free_peb
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
LBB0_13:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_5:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UBI_VID_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_create_vtbl.vid_hdr(%rip), %rcx
	movl	%eax, 56(%rcx)
	movq	_UBI_LAYOUT_VOLUME_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	_create_vtbl.vid_hdr(%rip), %rcx
	movq	%rax, 48(%rcx)
	movq	_UBI_LAYOUT_VOLUME_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	_create_vtbl.vid_hdr(%rip), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, 24(%rcx)
	movq	%rax, 32(%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be32
	movq	_create_vtbl.vid_hdr(%rip), %rcx
	movq	%rax, 8(%rcx)
	movl	4(%r13), %edi
	incl	%edi
	movl	%edi, 4(%r13)
	callq	_cpu_to_be64
	movq	_create_vtbl.vid_hdr(%rip), %rdx
	movl	%eax, (%rdx)
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_ubi_io_write_vid_hdr
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rbx), %edx
	movl	(%r14), %r8d
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_ubi_io_write_data
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$4, %r12d
	ja	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ubi_scan_get_free_peb
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_13
LBB0_8:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	_create_vtbl.vid_hdr(%rip), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%r9d, %r9d
	callq	_ubi_scan_add_used
	movl	%eax, %r15d
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_14:
	movq	_create_vtbl.vid_hdr(%rip), %rsi
	movq	%r14, %rdi
	callq	_ubi_free_vid_hdr
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_create_vtbl.vid_hdr,8,3 ## @create_vtbl.vid_hdr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create volume table (copy #%d)"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UBI_LAYOUT_VOLUME_ID,4,2       ## @UBI_LAYOUT_VOLUME_ID
	.comm	_UBI_VID_DYNAMIC,4,2            ## @UBI_VID_DYNAMIC
	.comm	_UBI_LAYOUT_VOLUME_COMPAT,4,2   ## @UBI_LAYOUT_VOLUME_COMPAT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_create_vtbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_vtbl
_create_vtbl:                           ; @create_vtbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	w1, w2, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ubi_msg
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ubi_zalloc_vid_hdr
	adrp	x25, _create_vtbl.vid_hdr@PAGE
	str	x0, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x26, _UBI_LAYOUT_VOLUME_ID@GOTPAGE
Lloh6:
	ldr	x26, [x26, _UBI_LAYOUT_VOLUME_ID@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_ubi_scan_find_sv
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x22
	bl	_ubi_scan_find_seb
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ubi_scan_get_free_peb
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
LBB0_4:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x24, x0
LBB0_5:
	ldr	x1, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	mov	x0, x19
	bl	_ubi_free_vid_hdr
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_7:
	mov	x0, x24
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	w27, #0
Lloh10:
	adrp	x21, _UBI_LAYOUT_VOLUME_COMPAT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _UBI_LAYOUT_VOLUME_COMPAT@GOTPAGEOFF]
Lloh12:
	adrp	x28, _EIO@GOTPAGE
Lloh13:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
Lloh14:
	adrp	x8, _UBI_VID_DYNAMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UBI_VID_DYNAMIC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	str	w8, [x9, #56]
	ldr	w0, [x26]
	bl	_cpu_to_be32
	ldr	x8, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	str	x0, [x8, #48]
	ldr	w9, [x21]
	str	w9, [x8, #40]
	mov	w0, #0
	bl	_cpu_to_be32
	ldr	x8, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	stp	x0, x0, [x8, #16]
	str	x0, [x8, #32]
	mov	x0, x22
	bl	_cpu_to_be32
	ldr	x8, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	str	x0, [x8, #8]
	ldr	w8, [x20, #4]
	add	w0, w8, #1
	str	w0, [x20, #4]
	bl	_cpu_to_be64
	ldr	x2, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	str	w0, [x2]
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_ubi_io_write_vid_hdr
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [x23, #8]
	ldr	w4, [x19]
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w3, #0
	bl	_ubi_io_write_data
	mov	x24, x0
	cbz	w0, LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x28]
	cmn	w24, w8
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w27, #4
	b.hi	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w27, #1
	mov	x0, x23
	mov	x1, x20
	bl	_list_add_tail
	mov	x0, x19
	mov	x1, x20
	bl	_ubi_scan_get_free_peb
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
	b	LBB0_4
LBB0_15:
	mov	x0, x23
	bl	_kfree
	b	LBB0_5
LBB0_16:
	ldp	w3, w2, [x23, #4]
	ldr	x4, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	w5, #0
	bl	_ubi_scan_add_used
	mov	x20, x0
	mov	x0, x23
	bl	_kfree
	ldr	x1, [x25, _create_vtbl.vid_hdr@PAGEOFF]
	mov	x0, x19
	bl	_ubi_free_vid_hdr
	mov	x0, x20
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_create_vtbl.vid_hdr,8,3 ; @create_vtbl.vid_hdr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create volume table (copy #%d)"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UBI_LAYOUT_VOLUME_ID,4,2       ; @UBI_LAYOUT_VOLUME_ID
	.comm	_UBI_VID_DYNAMIC,4,2            ; @UBI_VID_DYNAMIC
	.comm	_UBI_LAYOUT_VOLUME_COMPAT,4,2   ; @UBI_LAYOUT_VOLUME_COMPAT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_create_vtbl
.subsections_via_symbols
