	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_mc_validate_format
_rvin_mc_validate_format:               ## @rvin_mc_validate_format
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	(%rdx), %eax
	movl	%eax, -24(%rbp)
	movq	_get_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r8
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movl	-48(%rbp), %eax
	leal	-137(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_10
## %bb.3:
	movl	%eax, (%r14)
	movl	-44(%rbp), %eax
	leal	-128(%rax), %ecx
	cmpl	$8, %ecx
	jae	LBB0_4
LBB0_8:
	movq	-32(%rbp), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_10
## %bb.9:
	movslq	-40(%rbp), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, 16(%r14)
	jne	LBB0_10
	jmp	LBB0_12
LBB0_4:
	cmpl	$136, %eax
	jne	LBB0_10
## %bb.5:
	movl	24(%r14), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_10
## %bb.6:
	movl	$118, %ecx
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.7:
	shll	-40(%rbp)
	jmp	LBB0_8
LBB0_10:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_get_fmt,4,2                    ## @get_fmt
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_rvin_mc_validate_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_mc_validate_format
_rvin_mc_validate_format:               ; @rvin_mc_validate_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x2
	mov	x19, x0
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x2]
	stp	w10, w9, [sp, #24]
Lloh3:
	adrp	x9, _get_fmt@GOTPAGE
Lloh4:
	ldr	x9, [x9, _get_fmt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	mov	x4, sp
	mov	x0, x1
	mov	x1, x8
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w8, [sp]
	sub	w9, w8, #137
	cmp	w9, #4
	b.hi	LBB0_10
; %bb.2:
	str	w8, [x19]
	ldr	w8, [sp, #4]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hs	LBB0_6
LBB0_3:
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldrsw	x8, [sp, #8]
	ldr	x9, [x19, #16]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	cmp	w8, #136
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #24]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.8:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #118
	tst	w8, w9
	b.eq	LBB0_3
; %bb.9:
	ldr	w8, [sp, #8]
	lsl	w8, w8, #1
	str	w8, [sp, #8]
	b	LBB0_3
LBB0_10:
Lloh6:
	adrp	x8, _EPIPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_get_fmt,4,2                    ; @get_fmt
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_rvin_mc_validate_format
.subsections_via_symbols
