	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_mkvol_req
_verify_mkvol_req:                      ## @verify_mkvol_req
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	js	LBB0_17
## %bb.1:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_17
## %bb.2:
	movq	16(%rbx), %r8
	testq	%r8, %r8
	js	LBB0_17
## %bb.3:
	movl	24(%rbx), %esi
	testl	%esi, %esi
	js	LBB0_17
## %bb.4:
	movq	32(%rbx), %r10
	testq	%r10, %r10
	js	LBB0_6
## %bb.5:
	cmpq	(%rdi), %r10
	setge	%r9b
	movq	_UBI_VOL_NUM_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r10
	setne	%cl
	testb	%cl, %r9b
	je	LBB0_7
	jmp	LBB0_17
LBB0_6:
	movq	_UBI_VOL_NUM_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r10
	jne	LBB0_17
LBB0_7:
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.9:
	movq	_UBI_DYNAMIC_VOLUME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	je	LBB0_11
## %bb.10:
	movq	_UBI_STATIC_VOLUME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jne	LBB0_17
LBB0_11:
	cmpl	8(%rdi), %eax
	jg	LBB0_17
## %bb.12:
	cmpl	$1, %eax
	je	LBB0_14
## %bb.13:
	movl	12(%rdi), %ecx
	decl	%ecx
	andl	%eax, %ecx
	jne	LBB0_17
LBB0_14:
	movq	_UBI_VOL_NAME_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_16
## %bb.15:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_17
LBB0_16:
	movl	40(%rbx), %edi
	incl	%esi
	callq	_strnlen
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	24(%rbx), %ecx
	je	LBB0_18
LBB0_17:
	negl	%r14d
	leaq	L_.str(%rip), %rdi
	callq	_dbg_err
	movq	%rbx, %rdi
	callq	_ubi_dbg_dump_mkvol_req
	movl	%r14d, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UBI_VOL_NUM_AUTO,8,3           ## @UBI_VOL_NUM_AUTO
	.comm	_UBI_DYNAMIC_VOLUME,8,3         ## @UBI_DYNAMIC_VOLUME
	.comm	_UBI_STATIC_VOLUME,8,3          ## @UBI_STATIC_VOLUME
	.comm	_UBI_VOL_NAME_MAX,4,2           ## @UBI_VOL_NAME_MAX
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad volume creation request"

	.no_dead_strip	_verify_mkvol_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_mkvol_req
_verify_mkvol_req:                      ; @verify_mkvol_req
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x11, [x1]
	tbnz	x11, #63, LBB0_15
; %bb.1:
	ldr	w9, [x19, #8]
	tbnz	w9, #31, LBB0_15
; %bb.2:
	ldr	x10, [x19, #16]
	tbnz	x10, #63, LBB0_15
; %bb.3:
	ldr	w8, [x19, #24]
	tbnz	w8, #31, LBB0_15
; %bb.4:
	ldr	x12, [x19, #32]
	tbnz	x12, #63, LBB0_6
; %bb.5:
Lloh3:
	adrp	x13, _UBI_VOL_NUM_AUTO@GOTPAGE
Lloh4:
	ldr	x13, [x13, _UBI_VOL_NUM_AUTO@GOTPAGEOFF]
	ldr	x14, [x0]
Lloh5:
	ldr	x13, [x13]
	cmp	x12, x13
	ccmp	x12, x14, #8, ne
	ccmp	w9, #0, #4, lt
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_7
	b	LBB0_15
LBB0_6:
Lloh6:
	adrp	x13, _UBI_VOL_NUM_AUTO@GOTPAGE
Lloh7:
	ldr	x13, [x13, _UBI_VOL_NUM_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	cmp	x12, x13
	ccmp	w9, #0, #4, eq
	ccmp	x11, #0, #4, ne
	b.eq	LBB0_15
LBB0_7:
Lloh9:
	adrp	x11, _UBI_DYNAMIC_VOLUME@GOTPAGE
Lloh10:
	ldr	x11, [x11, _UBI_DYNAMIC_VOLUME@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _UBI_STATIC_VOLUME@GOTPAGE
Lloh13:
	ldr	x12, [x12, _UBI_STATIC_VOLUME@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_15
; %bb.8:
	ldr	w10, [x0, #8]
	cmp	w9, w10
	b.gt	LBB0_15
; %bb.9:
	cmp	w9, #1
	b.eq	LBB0_11
; %bb.10:
	ldr	w10, [x0, #12]
	sub	w10, w10, #1
	and	w9, w10, w9
	cbnz	w9, LBB0_15
LBB0_11:
Lloh15:
	adrp	x9, _UBI_VOL_NAME_MAX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UBI_VOL_NAME_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_13:
	ldr	w0, [x19, #40]
	add	w1, w8, #1
	bl	_strnlen
	ldr	w8, [x19, #24]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.14:
	mov	w20, #0
	b	LBB0_16
LBB0_15:
	neg	w20, w20
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_err
	mov	x0, x19
	bl	_ubi_dbg_dump_mkvol_req
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UBI_VOL_NUM_AUTO,8,3           ; @UBI_VOL_NUM_AUTO
	.comm	_UBI_DYNAMIC_VOLUME,8,3         ; @UBI_DYNAMIC_VOLUME
	.comm	_UBI_STATIC_VOLUME,8,3          ; @UBI_STATIC_VOLUME
	.comm	_UBI_VOL_NAME_MAX,4,2           ; @UBI_VOL_NAME_MAX
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad volume creation request"

	.no_dead_strip	_verify_mkvol_req
.subsections_via_symbols
