	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_stateless_params_flags
_validate_stateless_params_flags:       ## @validate_stateless_params_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$3, 4(%rdi)
	jl	LBB0_2
## %bb.1:
	movl	(%rdi), %r8d
	movq	_FWHT_FL_CHROMA_FULL_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	xorl	%r9d, %r9d
	cmpl	$1, %eax
	movl	$0, %edx
	adcl	$1, %edx
	movq	_FWHT_FL_CHROMA_FULL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	cmpl	$1, %eax
	adcl	$1, %r9d
	movq	_FWHT_FL_COMPONENTS_NUM_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	movq	_FWHT_FL_COMPONENTS_NUM_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	incl	%eax
	movq	_FWHT_FL_PIXENC_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r8d
	movq	%rsi, %rdi
	movl	%r9d, %esi
	movl	%eax, %ecx
	callq	_v4l2_fwht_validate_fmt
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FWHT_FL_CHROMA_FULL_WIDTH,4,2  ## @FWHT_FL_CHROMA_FULL_WIDTH
	.comm	_FWHT_FL_CHROMA_FULL_HEIGHT,4,2 ## @FWHT_FL_CHROMA_FULL_HEIGHT
	.comm	_FWHT_FL_COMPONENTS_NUM_MSK,4,2 ## @FWHT_FL_COMPONENTS_NUM_MSK
	.comm	_FWHT_FL_COMPONENTS_NUM_OFFSET,4,2 ## @FWHT_FL_COMPONENTS_NUM_OFFSET
	.comm	_FWHT_FL_PIXENC_MSK,4,2         ## @FWHT_FL_PIXENC_MSK
	.no_dead_strip	_validate_stateless_params_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_stateless_params_flags
_validate_stateless_params_flags:       ; @validate_stateless_params_flags
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0, #4]
	cmp	w8, #3
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _FWHT_FL_CHROMA_FULL_HEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FWHT_FL_CHROMA_FULL_HEIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #1
	cinc	w2, w8, eq
Lloh3:
	adrp	x10, _FWHT_FL_CHROMA_FULL_WIDTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FWHT_FL_CHROMA_FULL_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
Lloh6:
	adrp	x10, _FWHT_FL_COMPONENTS_NUM_MSK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FWHT_FL_COMPONENTS_NUM_MSK@GOTPAGEOFF]
	cinc	w8, w8, eq
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh9:
	adrp	x11, _FWHT_FL_COMPONENTS_NUM_OFFSET@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FWHT_FL_COMPONENTS_NUM_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	asr	w10, w10, w11
	add	w3, w10, #1
Lloh12:
	adrp	x10, _FWHT_FL_PIXENC_MSK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FWHT_FL_PIXENC_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w4, w10, w9
	mov	x0, x1
	mov	x1, x8
	bl	_v4l2_fwht_validate_fmt
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FWHT_FL_CHROMA_FULL_WIDTH,4,2  ; @FWHT_FL_CHROMA_FULL_WIDTH
	.comm	_FWHT_FL_CHROMA_FULL_HEIGHT,4,2 ; @FWHT_FL_CHROMA_FULL_HEIGHT
	.comm	_FWHT_FL_COMPONENTS_NUM_MSK,4,2 ; @FWHT_FL_COMPONENTS_NUM_MSK
	.comm	_FWHT_FL_COMPONENTS_NUM_OFFSET,4,2 ; @FWHT_FL_COMPONENTS_NUM_OFFSET
	.comm	_FWHT_FL_PIXENC_MSK,4,2         ; @FWHT_FL_PIXENC_MSK
	.no_dead_strip	_validate_stateless_params_flags
.subsections_via_symbols
