	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_or_set_control_cluster
_try_or_set_control_cluster:            ## @try_or_set_control_cluster
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	testl	%esi, %esi
	sete	%r12b
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_cur_to_new
	movl	$1, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	testl	%r13d, %r13d
	jne	LBB0_19
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	xorl	%r13d, %r13d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%rdi)
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_CTRL_FLAG_GRABBED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_8
	jmp	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_validate_new
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_9:
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	xorl	%r13d, %r13d
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	*%rcx
	movl	%eax, %r13d
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.13:
	testl	%r13d, %r13d
	jne	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	callq	_cluster_changed
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	16(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	cmpl	$0, (%r14)
	movl	$0, %r13d
	jle	LBB0_19
## %bb.17:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_new_to_cur
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
	jmp	LBB0_19
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ## @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_try_or_set_control_cluster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_or_set_control_cluster
_try_or_set_control_cluster:            ; @try_or_set_control_cluster
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x21, #0
	cmp	w1, #0
	cset	w22, eq
Lloh0:
	adrp	x23, _V4L2_CTRL_FLAG_GRABBED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V4L2_CTRL_FLAG_GRABBED@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_cur_to_new
	mov	w0, #0
	mov	w22, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cbnz	w0, LBB0_21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_validate_new
	b	LBB0_2
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w22, #0, #4, ne
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	cbnz	w20, LBB0_13
	b	LBB0_21
LBB0_12:
	mov	x0, x19
	blr	x8
	cbz	w20, LBB0_21
LBB0_13:
	cbnz	w0, LBB0_21
; %bb.14:
	mov	x0, x19
	bl	_cluster_changed
	cbz	x0, LBB0_21
; %bb.15:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_21
; %bb.16:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x20, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_new_to_cur
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_18
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ; @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_try_or_set_control_cluster
.subsections_via_symbols
