	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_send_source_change       ## -- Begin function vivid_send_source_change
	.p2align	4, 0x90
_vivid_send_source_change:              ## @vivid_send_source_change
	.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
	movq	_V4L2_EVENT_SRC_CH_RESOLUTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_V4L2_EVENT_SOURCE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	32(%rdi), %r15
	leaq	16(%rdi), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -56(%rbp)
	movq	8(%rbx), %rax
	cmpl	%r14d, (%rax,%r13,4)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_v4l2_event_queue
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_video_is_registered
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_v4l2_event_queue
	jmp	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EVENT_SRC_CH_RESOLUTION,4,2 ## @V4L2_EVENT_SRC_CH_RESOLUTION
	.comm	_V4L2_EVENT_SOURCE_CHANGE,4,2   ## @V4L2_EVENT_SOURCE_CHANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_send_source_change       ; -- Begin function vivid_send_source_change
	.p2align	2
_vivid_send_source_change:              ; @vivid_send_source_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x8, _V4L2_EVENT_SRC_CH_RESOLUTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EVENT_SRC_CH_RESOLUTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_EVENT_SOURCE_CHANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_EVENT_SOURCE_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #4]
	ldr	w8, [x0]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	add	x21, x0, #32
	add	x22, x0, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [sp]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x23, lsl #2]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_video_is_registered
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_v4l2_event_queue
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_video_is_registered
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x22
	bl	_v4l2_event_queue
	b	LBB0_2
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EVENT_SRC_CH_RESOLUTION,4,2 ; @V4L2_EVENT_SRC_CH_RESOLUTION
	.comm	_V4L2_EVENT_SOURCE_CHANGE,4,2   ; @V4L2_EVENT_SOURCE_CHANGE
.subsections_via_symbols
