	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ctrl_send_events
_uvc_ctrl_send_events:                  ## @uvc_ctrl_send_events
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	_V4L2_EVENT_CTRL_CH_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edi
	movq	-56(%rbp), %rcx
	movl	(%rbx,%r14,8), %r8d
	movq	%r13, %rdx
	movq	%r15, %r9
	callq	_uvc_ctrl_send_event
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r12, %r14
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	4(%rbx,%r14,8), %esi
	leaq	-56(%rbp), %rdx
	callq	_uvc_find_control
	movq	%rax, %r13
	movq	_UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r15
	jae	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_uvc_ctrl_xctrls_has_control
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %edi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_uvc_ctrl_send_slave_event
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_uvc_ctrl_xctrls_has_control
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_V4L2_EVENT_CTRL_CH_FLAGS@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	jmp	LBB0_13
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EVENT_CTRL_CH_VALUE,8,3   ## @V4L2_EVENT_CTRL_CH_VALUE
	.comm	_UVC_CTRL_FLAG_ASYNCHRONOUS,4,2 ## @UVC_CTRL_FLAG_ASYNCHRONOUS
	.comm	_V4L2_EVENT_CTRL_CH_FLAGS,8,3   ## @V4L2_EVENT_CTRL_CH_FLAGS
	.no_dead_strip	_uvc_ctrl_send_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ctrl_send_events
_uvc_ctrl_send_events:                  ; @uvc_ctrl_send_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w2, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x25, #0
Lloh0:
	adrp	x8, _V4L2_EVENT_CTRL_CH_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w26, w2
Lloh3:
	adrp	x27, _UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _UVC_CTRL_FLAG_ASYNCHRONOUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	ldr	x3, [sp, #8]
	lsl	x8, x25, #3
	ldr	w4, [x20, x8]
	mov	x1, x21
	mov	x2, x23
	mov	x5, x22
	bl	_uvc_ctrl_send_event
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w0, [x21]
	add	x8, x20, x25, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	bl	_uvc_find_control
	ldr	w8, [x0]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x28, #1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_ARRAY_SIZE
	cmp	x28, w0, uxtw
	b.hs	LBB0_11
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	x24, [x8, x28, lsl #3]
	cbz	x24, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_uvc_ctrl_xctrls_has_control
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x21]
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_uvc_ctrl_send_slave_event
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_uvc_ctrl_xctrls_has_control
	cbz	x0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _V4L2_EVENT_CTRL_CH_FLAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_EVENT_CTRL_CH_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	orr	x22, x8, x22
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EVENT_CTRL_CH_VALUE,8,3   ; @V4L2_EVENT_CTRL_CH_VALUE
	.comm	_UVC_CTRL_FLAG_ASYNCHRONOUS,4,2 ; @UVC_CTRL_FLAG_ASYNCHRONOUS
	.comm	_V4L2_EVENT_CTRL_CH_FLAGS,8,3   ; @V4L2_EVENT_CTRL_CH_FLAGS
	.no_dead_strip	_uvc_ctrl_send_events
.subsections_via_symbols
