	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_volume
_add_volume:                            ## @add_volume
	.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	%rcx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	20(%rcx), %edi
	callq	_be32_to_cpu
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_ubi_assert
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ubi_find_or_add_av
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, -28(%rbp)
	je	LBB0_6
## %bb.2:
	movl	16(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, (%rbx)
	movl	12(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, 4(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	(%r14), %rax
	movq	_UBI_VID_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_UBI_DYNAMIC_VOLUME@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_UBI_STATIC_VOLUME@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UBI_VID_DYNAMIC,8,3            ## @UBI_VID_DYNAMIC
	.comm	_UBI_DYNAMIC_VOLUME,4,2         ## @UBI_DYNAMIC_VOLUME
	.comm	_UBI_STATIC_VOLUME,4,2          ## @UBI_STATIC_VOLUME
	.no_dead_strip	_add_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_volume
_add_volume:                            ; @add_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x3, #20]
	bl	_be32_to_cpu
	cmp	w0, w20
	cset	w0, eq
	bl	_ubi_assert
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_ubi_find_or_add_av
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_be32_to_cpu
	str	w0, [x20]
	ldr	w0, [x19, #12]
	bl	_be32_to_cpu
	str	w0, [x20, #4]
	ldr	w8, [x19, #8]
	str	w8, [x20, #12]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _UBI_VID_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UBI_VID_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _UBI_DYNAMIC_VOLUME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UBI_DYNAMIC_VOLUME@GOTPAGEOFF]
Lloh5:
	adrp	x11, _UBI_STATIC_VOLUME@GOTPAGE
Lloh6:
	ldr	x11, [x11, _UBI_STATIC_VOLUME@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UBI_VID_DYNAMIC,8,3            ; @UBI_VID_DYNAMIC
	.comm	_UBI_DYNAMIC_VOLUME,4,2         ; @UBI_DYNAMIC_VOLUME
	.comm	_UBI_STATIC_VOLUME,4,2          ; @UBI_STATIC_VOLUME
	.no_dead_strip	_add_volume
.subsections_via_symbols
