	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cecservice_notify_func
_cecservice_notify_func:                ## @cecservice_notify_func
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_vc_cec_log_info
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	cmpl	$20, %ecx
	sete	%dil
	callq	_vcos_assert
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_cecservice_notify_available_event@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 64(%rbx)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_max_notify_strings@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_cecservice_notify_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_vc_cec_log_info
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	16(%rbx), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$19, (%rbx)
	jbe	LBB0_1
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	48(%rbx), %rsi
	movq	56(%rbx), %rax
	movl	(%rax), %edi
	movq	_VCHI_FLAGS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$8, %edx
	movq	%rbx, %rcx
	callq	_vchi_msg_dequeue
	movl	(%rbx), %ecx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$19, %ecx
	jbe	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	48(%rbx), %rax
	movl	(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %r14d
	movq	48(%rbx), %rax
	movl	4(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %r15d
	movq	48(%rbx), %rax
	movl	8(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %r13d
	movq	48(%rbx), %rax
	movl	12(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	48(%rbx), %rax
	movl	16(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_CEC_CB_REASON
	cmpl	$135, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r15d, %rax
	movq	%rax, 40(%rbx)
	movzwl	%r13w, %eax
	movq	%rax, 32(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%r15d, %r12d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_CEC_CB_REASON
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	cltq
	leaq	l_switch.table.cecservice_notify_func(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_cecservice_notify_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_vc_cec_log_info
	jmp	LBB0_15
LBB0_16:
	cmpq	$0, 8(%rbx)
	je	LBB0_18
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_vc_cec_log_info
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CEC service async thread started"

	.comm	_cecservice_notify_available_event,4,2 ## @cecservice_notify_available_event
	.comm	_max_notify_strings,4,2         ## @max_notify_strings
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_VCHI_FLAGS_NONE,4,2            ## @VCHI_FLAGS_NONE
L_.str.1:                               ## @.str.1
	.asciz	"CEC service callback [%s]: 0x%x, 0x%x, 0x%x, 0x%x"

	.comm	_cecservice_notify_strings,8,3  ## @cecservice_notify_strings
L_.str.2:                               ## @.str.2
	.asciz	"CEC service: No callback handler specified, callback [%s] swallowed"

L_.str.3:                               ## @.str.3
	.asciz	"CEC service async thread exiting"

	.no_dead_strip	_cecservice_notify_func
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.cecservice_notify_func
l_switch.table.cecservice_notify_func:
	.long	1                               ## 0x1
	.long	8                               ## 0x8
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.long	9                               ## 0x9
	.long	7                               ## 0x7
	.long	4                               ## 0x4
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cecservice_notify_func
_cecservice_notify_func:                ; @cecservice_notify_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vc_cec_log_info
Lloh2:
	adrp	x0, _cecservice_notify_available_event@GOTPAGE
Lloh3:
	ldr	x0, [x0, _cecservice_notify_available_event@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh4:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.1:
Lloh7:
	adrp	x20, _VCHI_FLAGS_NONE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _VCHI_FLAGS_NONE@GOTPAGEOFF]
Lloh9:
	adrp	x22, _cecservice_notify_strings@GOTPAGE
Lloh10:
	ldr	x22, [x22, _cecservice_notify_strings@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #20
	cset	w0, eq
	bl	_vcos_assert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x0, _cecservice_notify_available_event@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cecservice_notify_available_event@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh15:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _max_notify_strings@GOTPAGE
Lloh19:
	ldr	x8, [x8, _max_notify_strings@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	sub	w28, w8, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x8, w28
	ldr	x9, [x22]
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vc_cec_log_info
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x19]
	cmp	w8, #19
	b.ls	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x1, x8, [x19, #48]
	ldr	w0, [x8]
	ldr	w4, [x20]
	mov	w2, #8
	mov	x3, x19
	bl	_vchi_msg_dequeue
	ldr	w8, [x19]
	cmp	x0, #0
	ccmp	w8, #19, #0, eq
	b.ls	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_VC_VTOH32
	mov	x23, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #4]
	bl	_VC_VTOH32
	mov	x24, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
	bl	_VC_VTOH32
	mov	x25, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #12]
	bl	_VC_VTOH32
	mov	x26, x0
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #16]
	bl	_VC_VTOH32
	mov	x27, x0
	mov	x0, x23
	bl	_CEC_CB_REASON
	cmp	w0, #135
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x24
	sxtw	x8, w8
	and	w9, w25, #0xffff
	stp	x9, x8, [x19, #32]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x23
	bl	_CEC_CB_REASON
	sub	w8, w0, #128
	cmp	w8, #9
	b.hi	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh23:
	adrp	x9, l_switch.table.cecservice_notify_func@PAGE
Lloh24:
	add	x9, x9, l_switch.table.cecservice_notify_func@PAGEOFF
	ldr	w28, [x9, w8, sxtw #2]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x22]
	ldr	w8, [x8, w28, sxtw #2]
	stp	x26, x27, [sp, #24]
	stp	x24, x25, [sp, #8]
	str	x8, [sp]
	mov	x0, x21
	bl	_vc_cec_log_info
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x19, #16]
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	x5, x27
	blr	x8
	b	LBB0_8
LBB0_16:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
LBB0_17:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vc_cec_log_info
LBB0_18:
	mov	x0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CEC service async thread started"

	.comm	_cecservice_notify_available_event,4,2 ; @cecservice_notify_available_event
	.comm	_max_notify_strings,4,2         ; @max_notify_strings
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_VCHI_FLAGS_NONE,4,2            ; @VCHI_FLAGS_NONE
l_.str.1:                               ; @.str.1
	.asciz	"CEC service callback [%s]: 0x%x, 0x%x, 0x%x, 0x%x"

	.comm	_cecservice_notify_strings,8,3  ; @cecservice_notify_strings
l_.str.2:                               ; @.str.2
	.asciz	"CEC service: No callback handler specified, callback [%s] swallowed"

l_.str.3:                               ; @.str.3
	.asciz	"CEC service async thread exiting"

	.no_dead_strip	_cecservice_notify_func
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.cecservice_notify_func
l_switch.table.cecservice_notify_func:
	.long	1                               ; 0x1
	.long	8                               ; 0x8
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.long	9                               ; 0x9
	.long	7                               ; 0x7
	.long	4                               ; 0x4
	.long	3                               ; 0x3

.subsections_via_symbols
