	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_window_lock
_verify_window_lock:                    ## @verify_window_lock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r11d
	movl	%edx, %r10d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	addq	$8, %rsi
	movl	8(%rbx), %eax
	cmpl	$47, %eax
	jg	LBB0_2
## %bb.1:
	movl	$48, (%rsi)
	movl	$48, %eax
LBB0_2:
	leaq	12(%rbx), %r14
	movl	12(%rbx), %ecx
	cmpl	$31, %ecx
	jg	LBB0_4
## %bb.3:
	movl	$32, (%r14)
	movl	$32, %ecx
LBB0_4:
	cmpl	$2049, (%rbx)                   ## imm = 0x801
	jl	LBB0_6
## %bb.5:
	movl	$2048, (%rbx)                   ## imm = 0x800
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	4(%rbx), %r15d
	leal	-128(%r15), %edx
	cmpl	$3, %edx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovael	%edx, %r15d
	cmpl	%r15d, %edx
	jne	LBB0_8
## %bb.7:
	movq	16(%r13), %rdx
	xorl	%edi, %edi
	cmpl	$0, 8(%r13)
	movq	(%rdx), %rdx
	setne	%dil
	movl	(%rdx,%rdi,4), %edx
	sarl	%edx
	xorl	%r15d, %r15d
	cmpl	%edx, %ecx
	setg	%r15b
	orl	$128, %r15d
LBB0_8:
	movl	%r15d, 4(%rbx)
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.11:
	movl	(%rcx), %ecx
	addl	$-8, %ecx
	roll	$29, %ecx
	movl	$-1, %r12d
	cmpl	$3, %ecx
	ja	LBB0_15
## %bb.12:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:
	movl	$-4, %r12d
	jmp	LBB0_16
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	jmp	LBB0_10
LBB0_15:
	xorl	%eax, %eax
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_BUG
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movl	(%rsi), %eax
	jmp	LBB0_16
LBB0_14:
	movl	$-2, %r12d
LBB0_16:
	movl	16(%rbx), %ecx
	movl	%r12d, %edx
	notl	%edx
	movl	%ecx, %edi
	andl	%edx, %edi
	subl	%edi, %eax
	movl	%eax, 8(%rbx)
	addl	%ecx, %edx
	andl	%r12d, %edx
	movl	%edx, 16(%rbx)
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	callq	_limit_scaled_size_lock
	addq	$40, %rsp
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_verify_window_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_window_lock
_verify_window_lock:                    ; @verify_window_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x22, x1
	ldr	w8, [x22, #8]!
	cmp	w8, #47
	b.gt	LBB0_2
; %bb.1:
	mov	w8, #48
	str	w8, [x22]
LBB0_2:
	mov	x24, x23
	ldr	w9, [x24, #12]!
	cmp	w9, #31
	b.gt	LBB0_4
; %bb.3:
	mov	w9, #32
	str	w9, [x24]
LBB0_4:
	ldr	w10, [x23]
	cmp	w10, #2049
	b.lt	LBB0_6
; %bb.5:
	mov	w10, #2048
	str	w10, [x23]
LBB0_6:
	stp	xzr, xzr, [x23, #24]
	ldr	w10, [x23, #4]
	sub	w11, w10, #128
Lloh0:
	adrp	x12, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x12, [x12, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	w11, #3
	csel	w25, w10, w12, lo
	cmp	w12, w25
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [x21, #16]
	ldr	x10, [x10]
	ldr	w11, [x21, #8]
	cmp	w11, #0
	cset	w11, ne
	ldr	w10, [x10, w11, uxtw #2]
	cmp	w9, w10, asr #1
	mov	w9, #128
	cinc	w25, w9, gt
LBB0_8:
	str	w25, [x23, #4]
	ldr	x9, [x21]
	cbz	x9, LBB0_12
; %bb.9:
	ldr	w9, [x9]
	sub	w9, w9, #8
	ror	w9, w9, #3
	cmp	w9, #3
	b.hi	LBB0_13
; %bb.10:
	mov	w4, #-1
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_11
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_11:
	mov	w4, #-4
	b	LBB0_15
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	_BUG
	ldr	w8, [x22]
	mov	w4, #-1
	b	LBB0_15
LBB0_14:
	mov	w4, #-2
LBB0_15:
	ldr	w9, [x23, #16]
	mvn	w10, w4
	bic	w11, w9, w4
	sub	w8, w8, w11
	str	w8, [x23, #8]
	add	w8, w9, w10
	and	w8, w8, w4
	str	w8, [x23, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	w5, #0
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_limit_scaled_size_lock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
                                        ; -- End function
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_verify_window_lock
.subsections_via_symbols
