	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __v4l2_event_queue_fh
___v4l2_event_queue_fh:                 ## @__v4l2_event_queue_fh
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %edx
	movl	8(%rsi), %esi
	callq	_v4l2_event_subscribed
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	incq	16(%r12)
	movl	(%rax), %eax
	cmpl	4(%r14), %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_7
## %bb.2:
	movq	16(%r14), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sev_pos
	cltq
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %rdi
	addq	%r13, %rdi
	callq	_list_del
	decl	(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sev_pos
	movl	%eax, 8(%r14)
	decl	4(%r12)
	cmpl	$1, 4(%r14)
	movq	24(%r14), %rax
	jne	LBB0_11
## %bb.3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(,%rax,8), %rdi
	addq	%r13, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	movb	$1, %r13b
	jmp	LBB0_8
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.13:
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sev_pos
	cltq
	movq	24(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,8), %rdi
	addq	$8, %rdi
	leaq	(%rax,%rax,4), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rsi
	addq	$8, %rsi
	callq	*(%rcx)
	jmp	LBB0_8
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	16(%r14), %rbx
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_sev_pos
	cltq
	movl	8(%r15), %ecx
	leaq	(%rax,%rax,4), %rax
	movl	%ecx, 24(%rbx,%rax,8)
	testb	%r13b, %r13b
	jne	LBB0_10
## %bb.9:
	movl	4(%r15), %ecx
	movl	%ecx, 20(%rbx,%rax,8)
LBB0_10:
	movl	(%r15), %ecx
	leaq	(%rbx,%rax,8), %rdi
	movl	%ecx, 16(%rbx,%rax,8)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 32(%rbx,%rax,8)
	movq	16(%r12), %rcx
	movq	%rcx, 8(%rbx,%rax,8)
	incl	(%r14)
	leaq	8(%r12), %rsi
	callq	_list_add_tail
	incl	4(%r12)
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_all                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___v4l2_event_queue_fh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __v4l2_event_queue_fh
___v4l2_event_queue_fh:                 ; @__v4l2_event_queue_fh
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w1, [x1, #8]
	ldr	w2, [x22]
	bl	_v4l2_event_subscribed
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.2:
	ldr	x23, [x21, #16]
	mov	x0, x21
	mov	w1, #0
	bl	_sev_pos
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	mov	w8, #40
	smaddl	x0, w0, w8, x23
	bl	_list_del
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	mov	x0, x21
	mov	w1, #1
	bl	_sev_pos
	str	w0, [x21, #8]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w9, [x21, #4]
	ldr	x8, [x21, #24]
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.3:
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.5:
	mov	w9, #40
	madd	x9, x24, x9, x23
	add	x0, x9, #8
	mov	x1, x22
	blr	x8
	mov	w23, #1
	b	LBB0_11
LBB0_6:
	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_7:
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x25, [x21, #16]
	mov	x0, x21
	mov	w1, #0
	bl	_sev_pos
	ldr	x8, [x21, #24]
	ldr	x9, [x8]
	mov	w10, #40
	madd	x8, x24, x10, x23
	add	x8, x8, #8
	smaddl	x10, w0, w10, x25
	add	x1, x10, #8
	mov	x0, x8
	blr	x9
LBB0_10:
	mov	w23, #0
LBB0_11:
	ldr	x24, [x21, #16]
	ldr	w1, [x21]
	mov	x0, x21
	bl	_sev_pos
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	w9, [x22, #8]
	mov	w10, #40
	smaddl	x10, w0, w10, x24
	str	w9, [x10, #24]
	tbnz	w23, #0, LBB0_13
; %bb.12:
	ldr	w9, [x22, #4]
	mov	w10, #40
	madd	x10, x8, x10, x24
	str	w9, [x10, #20]
LBB0_13:
	ldr	w9, [x22]
	mov	w10, #40
	madd	x0, x8, x10, x24
	str	w9, [x0, #16]
	str	w20, [x0, #32]
	ldr	x8, [x19, #16]
	str	x8, [x0, #8]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	add	x1, x19, #8
	bl	_list_add_tail
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, 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	_wake_up_all
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___v4l2_event_queue_fh
.subsections_via_symbols
