	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leal	1(%rdx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg_gen
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ubi_alloc_vid_buf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ubi_get_vid_hdr
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ubi_early_get_peb
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
LBB0_10:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UBI_LAYOUT_VOLUME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	_UBI_LAYOUT_VOLUME_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 48(%r13)
	movq	_UBI_LAYOUT_VOLUME_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r13)
	movq	%rax, 24(%r13)
	movq	%rax, 32(%r13)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be32
	movq	%rax, 8(%r13)
	movl	4(%rbx), %edi
	incl	%edi
	movl	%edi, 4(%rbx)
	callq	_cpu_to_be64
	movl	%eax, (%r13)
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ubi_io_write_vid_hdr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %edx
	movl	(%r15), %r8d
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_ubi_io_write_data
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %eax
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_list_add
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ubi_early_get_peb
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
	jmp	LBB0_10
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_6:
	movl	4(%r12), %ecx
	movl	8(%r12), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	_ubi_add_to_av
	movl	%eax, %r14d
	movq	%rbx, %rdi
LBB0_12:
	movq	%r12, %rsi
	callq	_ubi_free_aeb
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ubi_free_vid_buf
LBB0_14:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_TYPE,4,2     ## @UBI_LAYOUT_VOLUME_TYPE
	.comm	_UBI_LAYOUT_VOLUME_ID,4,2       ## @UBI_LAYOUT_VOLUME_ID
	.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	x23, x2
	mov	x20, x1
	mov	x21, x0
	add	w1, w2, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_gen
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ubi_alloc_vid_buf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_ubi_get_vid_hdr
	mov	x25, x0
	mov	x0, x21
	mov	x1, x20
	bl	_ubi_early_get_peb
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
LBB0_2:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x26, x0
LBB0_3:
	mov	x0, x19
	bl	_ubi_free_vid_buf
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_5:
	mov	x0, x26
LBB0_6:
	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_7:
	mov	w27, #0
Lloh8:
	adrp	x28, _UBI_LAYOUT_VOLUME_COMPAT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _UBI_LAYOUT_VOLUME_COMPAT@GOTPAGEOFF]
Lloh10:
	adrp	x22, _EIO@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EIO@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
Lloh12:
	adrp	x8, _UBI_LAYOUT_VOLUME_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UBI_LAYOUT_VOLUME_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x25, #56]
Lloh15:
	adrp	x8, _UBI_LAYOUT_VOLUME_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UBI_LAYOUT_VOLUME_ID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [x25, #48]
	ldr	w8, [x28]
	str	w8, [x25, #40]
	mov	w0, #0
	bl	_cpu_to_be32
	stp	x0, x0, [x25, #16]
	str	x0, [x25, #32]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x25, #8]
	ldr	w8, [x20, #4]
	add	w0, w8, #1
	str	w0, [x20, #4]
	bl	_cpu_to_be64
	str	w0, [x25]
	ldr	w1, [x24, #8]
	mov	x0, x21
	mov	x2, x19
	bl	_ubi_io_write_vid_hdr
	mov	x26, x0
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x24, #8]
	ldr	w4, [x21]
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w3, #0
	bl	_ubi_io_write_data
	mov	x26, x0
	cbz	w0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	cmn	w26, w8
	ccmp	w27, #4, #2, eq
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w27, w27, #1
	mov	x0, x24
	mov	x1, x20
	bl	_list_add
	mov	x0, x21
	mov	x1, x20
	bl	_ubi_early_get_peb
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
	b	LBB0_2
LBB0_12:
	mov	x0, x20
	mov	x1, x24
	bl	_ubi_free_aeb
	b	LBB0_3
LBB0_13:
	ldp	w3, w2, [x24, #4]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x25
	mov	w5, #0
	bl	_ubi_add_to_av
	mov	x21, x0
	mov	x0, x20
	mov	x1, x24
	bl	_ubi_free_aeb
	mov	x0, x19
	bl	_ubi_free_vid_buf
	mov	x0, x21
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.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_TYPE,4,2     ; @UBI_LAYOUT_VOLUME_TYPE
	.comm	_UBI_LAYOUT_VOLUME_ID,4,2       ; @UBI_LAYOUT_VOLUME_ID
	.comm	_UBI_LAYOUT_VOLUME_COMPAT,4,2   ; @UBI_LAYOUT_VOLUME_COMPAT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_create_vtbl
.subsections_via_symbols
