	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_next                 ## -- Begin function v4l2_ctrl_next
	.p2align	4, 0x90
_v4l2_ctrl_next:                        ## @v4l2_ctrl_next
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_V4L2_CTRL_ID2CLASS
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.1:
	movq	%rax, %r12
	movq	_V4L2_CTRL_FLAG_NEXT_CTRL@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:
	movq	_V4L2_CTRL_ID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r14
	addq	$8, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	callq	_V4L2_CTRL_ID2CLASS
	cmpq	%r12, %rax
	jge	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_26
LBB0_7:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.8:
	addq	$8, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	callq	_V4L2_CTRL_ID2CLASS
	cmpq	%r12, %rax
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_26
LBB0_12:
	movq	-8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$8, %rax
	cmpq	%r14, %r15
	jle	LBB0_13
LBB0_15:
	testq	%r15, %r15
	jne	LBB0_26
## %bb.16:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.17:
	movq	(%rax), %r15
	jmp	LBB0_26
LBB0_19:
	movq	-8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$8, %rax
	cmpq	%r14, %rcx
	jne	LBB0_20
LBB0_22:
	testq	%rcx, %rcx
	cmoveq	%rcx, %r14
	movq	%r14, %r15
	jmp	LBB0_26
LBB0_25:
	xorl	%r15d, %r15d
LBB0_26:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_NEXT_CTRL,8,3   ## @V4L2_CTRL_FLAG_NEXT_CTRL
	.comm	_V4L2_CTRL_ID_MASK,8,3          ## @V4L2_CTRL_ID_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_next                 ; -- Begin function v4l2_ctrl_next
	.p2align	2
_v4l2_ctrl_next:                        ; @v4l2_ctrl_next
	.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	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_V4L2_CTRL_ID2CLASS
	cbz	x21, LBB0_18
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_CTRL_FLAG_NEXT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_NEXT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_18
; %bb.3:
Lloh3:
	adrp	x9, _V4L2_CTRL_ID_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CTRL_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x22, x9, x20
	add	x20, x21, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	bl	_V4L2_CTRL_ID2CLASS
	cmp	x0, x19
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20], #8
	cbnz	x8, LBB0_4
	b	LBB0_18
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_18
; %bb.7:
	add	x21, x21, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	bl	_V4L2_CTRL_ID2CLASS
	cmp	x0, x19
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21], #8
	cbnz	x8, LBB0_8
	b	LBB0_18
LBB0_10:
	ldur	x8, [x20, #-8]
	cbz	x8, LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8], #8
	cmp	x0, #0
	ccmp	x0, x22, #0, ne
	b.le	LBB0_11
; %bb.12:
	cbnz	x0, LBB0_19
; %bb.13:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	x0, [x8]
	b	LBB0_19
LBB0_15:
	ldur	x8, [x21, #-8]
	cbz	x8, LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	cmp	x9, #0
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_16
; %bb.17:
	cmp	x9, #0
	csel	x0, xzr, x20, eq
	b	LBB0_19
LBB0_18:
	mov	x0, #0
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_NEXT_CTRL,8,3   ; @V4L2_CTRL_FLAG_NEXT_CTRL
	.comm	_V4L2_CTRL_ID_MASK,8,3          ; @V4L2_CTRL_ID_MASK
.subsections_via_symbols
