	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	js	LBB0_22
## %bb.1:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_22
## %bb.2:
	movq	16(%rbx), %r9
	testq	%r9, %r9
	js	LBB0_22
## %bb.3:
	movl	24(%rbx), %esi
	testl	%esi, %esi
	js	LBB0_22
## %bb.4:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_6
## %bb.5:
	cmpq	(%r14), %rdi
	setge	%r8b
	movq	_UBI_VOL_NUM_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	setne	%cl
	testb	%cl, %r8b
	je	LBB0_7
	jmp	LBB0_22
LBB0_6:
	movq	_UBI_VOL_NUM_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_22
LBB0_7:
	testl	%eax, %eax
	je	LBB0_22
## %bb.8:
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.9:
	movq	_UBI_DYNAMIC_VOLUME@GOTPCREL(%rip), %rcx
	movq	_UBI_STATIC_VOLUME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rcx), %r9
	je	LBB0_11
## %bb.10:
	cmpq	%rdx, %r9
	jne	LBB0_22
LBB0_11:
	movl	40(%rbx), %edi
	movq	_UBI_VOL_VALID_FLGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %edi
	jne	LBB0_22
## %bb.12:
	movq	_UBI_VOL_SKIP_CRC_CHECK_FLG@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_14
## %bb.13:
	cmpq	%rdx, %r9
	jne	LBB0_22
LBB0_14:
	cmpl	8(%r14), %eax
	jg	LBB0_22
## %bb.15:
	cmpl	$1, %eax
	je	LBB0_17
## %bb.16:
	movl	12(%r14), %ecx
	decl	%ecx
	andl	%eax, %ecx
	jne	LBB0_22
LBB0_17:
	movq	48(%rbx), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_22
## %bb.18:
	testl	%esi, %esi
	je	LBB0_22
## %bb.19:
	movq	_UBI_VOL_NAME_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_21
## %bb.20:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_22
LBB0_21:
	incl	%esi
	callq	_strnlen
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	24(%rbx), %ecx
	je	LBB0_23
LBB0_22:
	negl	%r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ubi_err
	movq	%rbx, %rdi
	callq	_ubi_dump_mkvol_req
	movl	%r15d, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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_VALID_FLGS,4,2         ## @UBI_VOL_VALID_FLGS
	.comm	_UBI_VOL_SKIP_CRC_CHECK_FLG,4,2 ## @UBI_VOL_SKIP_CRC_CHECK_FLG
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x11, [x1]
	tbnz	x11, #63, LBB0_19
; %bb.1:
	ldr	w9, [x19, #8]
	tbnz	w9, #31, LBB0_19
; %bb.2:
	ldr	x10, [x19, #16]
	tbnz	x10, #63, LBB0_19
; %bb.3:
	ldr	w8, [x19, #24]
	tbnz	w8, #31, LBB0_19
; %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, [x20]
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_19
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_19
LBB0_7:
Lloh9:
	adrp	x11, _UBI_DYNAMIC_VOLUME@GOTPAGE
Lloh10:
	ldr	x11, [x11, _UBI_DYNAMIC_VOLUME@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x11]
Lloh12:
	adrp	x11, _UBI_STATIC_VOLUME@GOTPAGE
Lloh13:
	ldr	x11, [x11, _UBI_STATIC_VOLUME@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x12
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_19
; %bb.8:
	ldr	w12, [x19, #40]
Lloh15:
	adrp	x13, _UBI_VOL_VALID_FLGS@GOTPAGE
Lloh16:
	ldr	x13, [x13, _UBI_VOL_VALID_FLGS@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	bics	wzr, w12, w13
	b.ne	LBB0_19
; %bb.9:
Lloh18:
	adrp	x13, _UBI_VOL_SKIP_CRC_CHECK_FLG@GOTPAGE
Lloh19:
	ldr	x13, [x13, _UBI_VOL_SKIP_CRC_CHECK_FLG@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
	and	w12, w13, w12
	cmp	w12, #0
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_19
; %bb.10:
	ldr	w10, [x20, #8]
	cmp	w9, w10
	b.gt	LBB0_19
; %bb.11:
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.12:
	ldr	w10, [x20, #12]
	sub	w10, w10, #1
	and	w9, w10, w9
	cbnz	w9, LBB0_19
LBB0_13:
	ldr	x0, [x19, #48]
	ldr	w9, [x0]
	cbz	w9, LBB0_19
; %bb.14:
	cbz	w8, LBB0_19
; %bb.15:
Lloh21:
	adrp	x9, _UBI_VOL_NAME_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UBI_VOL_NAME_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_17
; %bb.16:
Lloh24:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_17:
	add	w1, w8, #1
	bl	_strnlen
	ldr	w8, [x19, #24]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.18:
	mov	w21, #0
	b	LBB0_20
LBB0_19:
	neg	w21, w21
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ubi_err
	mov	x0, x19
	bl	_ubi_dump_mkvol_req
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.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_VALID_FLGS,4,2         ; @UBI_VOL_VALID_FLGS
	.comm	_UBI_VOL_SKIP_CRC_CHECK_FLG,4,2 ; @UBI_VOL_SKIP_CRC_CHECK_FLG
	.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
