	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tvservice_notify_func
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tvservice_notify_func:                 ## @tvservice_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_VC_TV_GET_DISPLAY_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$4, %r8d
	callq	_tvservice_send_command_reply
	testq	%rax, %rax
	jne	LBB0_55
## %bb.1:
	movl	-48(%rbp), %eax
	testb	$-115, %al
	je	LBB0_3
## %bb.2:
	movq	72(%r14), %rax
	movl	(%rax), %edi
	callq	_vchi_service_use
	movl	-48(%rbp), %eax
LBB0_3:
	testb	$-113, %al
	je	LBB0_5
## %bb.4:
	andl	$-144, %eax
	movl	%eax, -48(%rbp)
LBB0_5:
	movq	_tvservice_notify_available_event@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_53
## %bb.6:
	leaq	88(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edi, %edi
	cmpl	$12, %ecx
	sete	%dil
	callq	_vcos_assert
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	_tvservice_notify_available_event@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_53
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_51 Depth 3
	cmpl	$0, 112(%r14)
	je	LBB0_53
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 24(%r14)
	je	LBB0_14
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_vc_tv_notification_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_vcos_log_info
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$11, (%r14)
	jbe	LBB0_8
LBB0_14:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_51 Depth 3
	movq	72(%r14), %rax
	movq	104(%r14), %rsi
	movl	(%rax), %edi
	movq	_VCHI_FLAGS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$8, %edx
	movq	%r14, %rcx
	callq	_vchi_msg_dequeue
	movl	(%r14), %ecx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$11, %ecx
	jbe	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%eax, %eax
	callq	_tvservice_lock_obtain
	testq	%rax, %rax
	jne	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	104(%r14), %rax
	movl	(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %r12d
	movq	104(%r14), %rax
	movl	4(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %r13d
	movq	104(%r14), %rax
	movl	8(%rax), %edi
	callq	_VC_VTOH32
	movl	%eax, %ebx
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_vc_tv_notification_name
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	-128(%r12), %eax
	cmpl	$13, %eax
	ja	LBB0_48
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	testb	$-125, %al
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$0, 4(%r14)
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	andl	$-136, %eax
	orl	$131, %eax
	jmp	LBB0_31
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-136, %ecx
	andl	%ecx, %eax
	orl	$129, %eax
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-136, %ecx
	andl	%ecx, %eax
	orl	$130, %eax
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, -48(%rbp)
	movslq	%r13d, %rax
	movq	%rax, 56(%r14)
	movslq	-52(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, 48(%r14)
	movq	_SDTV_COLOUR_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_SDTV_COLOUR_YPRPB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_SDTV_COLOUR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, 16(%r14)
	jmp	LBB0_48
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-136, %ecx
	andl	%ecx, %eax
	orl	$131, %eax
	movl	%eax, -48(%rbp)
	movl	$0, 4(%r14)
	movq	_SDTV_CP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	jmp	LBB0_48
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-136, %ecx
	andl	%ecx, %eax
	orl	$132, %eax
	movl	%eax, -48(%rbp)
	movl	$1, 4(%r14)
	movl	%r13d, 40(%r14)
	jmp	LBB0_48
LBB0_30:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-136, %ecx
	andl	%ecx, %eax
	orl	$133, %eax
LBB0_31:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, -48(%rbp)
	movq	_SDTV_MODE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	jmp	LBB0_48
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	testb	$-113, %al
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$0, 4(%r14)
	testb	$-115, %al
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	72(%r14), %rax
	movl	(%rax), %edi
	callq	_vchi_service_release
	movl	-48(%rbp), %eax
LBB0_35:                                ##   in Loop: Header=BB0_14 Depth=2
	andl	$-144, %eax
	orl	$142, %eax
	movl	%eax, -48(%rbp)
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_48
LBB0_36:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	testb	$-113, %al
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	72(%r14), %rax
	movl	(%rax), %edi
	callq	_vchi_service_use
	movl	-48(%rbp), %eax
LBB0_38:                                ##   in Loop: Header=BB0_14 Depth=2
	andl	$-144, %eax
	orl	$135, %eax
	jmp	LBB0_44
LBB0_39:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	movl	$-140, %ecx
	andl	%ecx, %eax
	orl	$136, %eax
	movl	%eax, -48(%rbp)
	movl	$0, 4(%r14)
	jmp	LBB0_48
LBB0_40:                                ##   in Loop: Header=BB0_14 Depth=2
	orb	$-117, -48(%rbp)
	movl	$1, 4(%r14)
	jmp	LBB0_48
LBB0_41:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	testb	$-113, %al
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	72(%r14), %rax
	movl	(%rax), %edi
	callq	_vchi_service_use
	movl	-48(%rbp), %eax
LBB0_43:                                ##   in Loop: Header=BB0_14 Depth=2
	andl	$-144, %eax
	orl	$140, %eax
LBB0_44:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%eax, -48(%rbp)
	movslq	%r13d, %rax
	movq	%rax, 64(%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	jmp	LBB0_48
LBB0_45:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	-48(%rbp), %eax
	testb	$-113, %al
	je	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$0, 4(%r14)
	movq	72(%r14), %rax
	movl	(%rax), %edi
	callq	_vchi_service_release
	movl	-48(%rbp), %eax
LBB0_47:                                ##   in Loop: Header=BB0_14 Depth=2
	andl	$-144, %eax
	orl	$141, %eax
	movl	%eax, -48(%rbp)
	movslq	%r13d, %rax
	movq	%rax, 80(%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_14 Depth=2
	xorl	%eax, %eax
	callq	_tvservice_lock_release
	movq	_TVSERVICE_MAX_CALLBACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.49:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%r15d, %r15d
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_51 Depth=3
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_11
LBB0_51:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%r14), %rcx
	movq	(%rcx,%rbx), %r8
	testq	%r8, %r8
	je	LBB0_50
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=3
	incl	%r12d
	movl	-8(%rcx,%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	*%r8
	movq	_TVSERVICE_MAX_CALLBACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=2
	testl	%r12d, %r12d
	jne	LBB0_13
	jmp	LBB0_12
LBB0_53:
	cmpq	$0, 24(%r14)
	je	LBB0_55
LBB0_54:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_trace
LBB0_55:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_36
	.long	L0_0_set_39
	.long	L0_0_set_48
	.long	L0_0_set_48
	.long	L0_0_set_40
	.long	L0_0_set_41
	.long	L0_0_set_45
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TV service async thread started"

	.comm	_VC_TV_GET_DISPLAY_STATE,4,2    ## @VC_TV_GET_DISPLAY_STATE
	.comm	_tvservice_notify_available_event,4,2 ## @tvservice_notify_available_event
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_VCHI_FLAGS_NONE,4,2            ## @VCHI_FLAGS_NONE
L_.str.1:                               ## @.str.1
	.asciz	"[%s] %s %d %d"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
L_.str.2:                               ## @.str.2
	.asciz	"[%s] invalidating caches"

	.comm	_SDTV_MODE_OFF,8,3              ## @SDTV_MODE_OFF
	.comm	_SDTV_COLOUR_RGB,4,2            ## @SDTV_COLOUR_RGB
	.comm	_SDTV_COLOUR_YPRPB,4,2          ## @SDTV_COLOUR_YPRPB
	.comm	_SDTV_COLOUR_UNKNOWN,8,3        ## @SDTV_COLOUR_UNKNOWN
	.comm	_SDTV_CP_NONE,4,2               ## @SDTV_CP_NONE
	.comm	_TVSERVICE_MAX_CALLBACKS,4,2    ## @TVSERVICE_MAX_CALLBACKS
L_.str.3:                               ## @.str.3
	.asciz	"TV service: No callback handler specified, callback [%s] swallowed"

L_.str.4:                               ## @.str.4
	.asciz	"TV service async thread exiting"

	.no_dead_strip	_tvservice_notify_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvservice_notify_func
_tvservice_notify_func:                 ; @tvservice_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	_vcos_log_trace
Lloh2:
	adrp	x8, _VC_TV_GET_DISPLAY_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_TV_GET_DISPLAY_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x3, sp, #40
	mov	x1, #0
	mov	w2, #0
	mov	w4, #4
	bl	_tvservice_send_command_reply
	cbnz	x0, LBB0_54
; %bb.1:
	ldr	w8, [sp, #40]
	mov	w9, #141
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_vchi_service_use
	ldr	w8, [sp, #40]
LBB0_3:
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	mov	w9, #-144
	and	w8, w8, w9
	str	w8, [sp, #40]
LBB0_5:
Lloh5:
	adrp	x0, _tvservice_notify_available_event@GOTPAGE
Lloh6:
	ldr	x0, [x0, _tvservice_notify_available_event@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh7:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_52
; %bb.6:
Lloh10:
	adrp	x28, _VCHI_FLAGS_NONE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _VCHI_FLAGS_NONE@GOTPAGEOFF]
Lloh12:
	adrp	x23, _VCOS_FUNCTION@GOTPAGE
Lloh13:
	ldr	x23, [x23, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh14:
	adrp	x21, _TVSERVICE_MAX_CALLBACKS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TVSERVICE_MAX_CALLBACKS@GOTPAGEOFF]
	add	x8, x19, #88
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #12
	cset	w0, eq
	bl	_vcos_assert
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh16:
	adrp	x0, _tvservice_notify_available_event@GOTPAGE
Lloh17:
	ldr	x0, [x0, _tvservice_notify_available_event@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh18:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_52
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_49 Depth 3
	ldr	w8, [x19, #112]
	cbz	w8, LBB0_52
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
	b	LBB0_53
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x24
	bl	_vc_tv_notification_name
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_vcos_log_info
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x19]
	cmp	w8, #11
	b.ls	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_49 Depth 3
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	ldr	x1, [x19, #104]
	ldr	w4, [x28]
	mov	w2, #8
	mov	x3, x19
	bl	_vchi_msg_dequeue
	ldr	w8, [x19]
	cmp	x0, #0
	ccmp	w8, #11, #0, eq
	b.ls	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	bl	_tvservice_lock_obtain
	cbnz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #104]
	ldr	w0, [x8]
	bl	_VC_VTOH32
	mov	x24, x0
	ldr	x8, [x19, #104]
	ldr	w0, [x8, #4]
	bl	_VC_VTOH32
	mov	x25, x0
	ldr	x8, [x19, #104]
	ldr	w0, [x8, #8]
	bl	_VC_VTOH32
	mov	x26, x0
	ldr	w20, [x23]
	mov	x0, x24
	bl	_vc_tv_notification_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x26, [sp, #16]
	stp	x20, x0, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_trace
	sub	w8, w24, #128
	cmp	w8, #13
	b.hi	LBB0_46
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
Lloh25:
	adrp	x11, lJTI0_0@PAGE
Lloh26:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_17
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #131
	tst	w8, w9
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	str	wzr, [x19, #4]
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	and	w8, w8, #0xfffffffb
	mov	w9, #131
	b	LBB0_28
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffff9
	mov	w9, #129
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffff8
	mov	w9, #130
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=2
	orr	w8, w8, w9
	str	w8, [sp, #40]
	mov	x8, x25
	sxtw	x8, w8
	mov	x9, x26
	sxtw	x9, w9
	stp	x9, x8, [x19, #48]
Lloh27:
	adrp	x8, _SDTV_COLOUR_RGB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SDTV_COLOUR_RGB@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=2
Lloh30:
	adrp	x8, _SDTV_COLOUR_YPRPB@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SDTV_COLOUR_YPRPB@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_45
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=2
	str	w8, [x19, #16]
	b	LBB0_46
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffffb
	mov	w9, #131
	orr	w8, w8, w9
	str	w8, [sp, #40]
	str	wzr, [x19, #4]
Lloh33:
	adrp	x8, _SDTV_CP_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SDTV_CP_NONE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	b	LBB0_46
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffff8
	mov	w9, #132
	orr	w8, w8, w9
	str	w8, [sp, #40]
	mov	w8, #1
	str	w8, [x19, #4]
	str	w25, [x19, #40]
	b	LBB0_46
LBB0_27:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffff9
	mov	w9, #133
LBB0_28:                                ;   in Loop: Header=BB0_13 Depth=2
	orr	w8, w8, w9
	str	w8, [sp, #40]
Lloh36:
	adrp	x8, _SDTV_MODE_OFF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SDTV_MODE_OFF@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [x19, #56]
	b	LBB0_46
LBB0_29:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_13 Depth=2
	str	wzr, [x19, #4]
	mov	w9, #141
	tst	w8, w9
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_vchi_service_release
	ldr	w8, [sp, #40]
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=2
	and	w8, w8, #0xfffffff0
	mov	w9, #142
	orr	w8, w8, w9
	str	w8, [sp, #40]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_log_trace
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	xzr, xzr, [x8]
	b	LBB0_46
LBB0_33:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_vchi_service_use
	ldr	w8, [sp, #40]
LBB0_35:                                ;   in Loop: Header=BB0_13 Depth=2
	and	w8, w8, #0xfffffff7
	mov	w9, #135
	b	LBB0_41
LBB0_36:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	and	w8, w8, #0xfffffffc
	mov	w9, #136
	orr	w8, w8, w9
	str	w8, [sp, #40]
	str	wzr, [x19, #4]
	b	LBB0_46
LBB0_37:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #139
	orr	w8, w8, w9
	str	w8, [sp, #40]
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_46
LBB0_38:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_vchi_service_use
	ldr	w8, [sp, #40]
LBB0_40:                                ;   in Loop: Header=BB0_13 Depth=2
	and	w8, w8, #0xfffffff0
	mov	w9, #140
LBB0_41:                                ;   in Loop: Header=BB0_13 Depth=2
	orr	w8, w8, w9
	str	w8, [sp, #40]
	mov	x8, x25
	sxtw	x8, w8
	str	x8, [x19, #64]
	str	w26, [x19, #12]
	b	LBB0_46
LBB0_42:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #40]
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_13 Depth=2
	str	wzr, [x19, #4]
	ldr	x8, [x19, #72]
	ldr	w0, [x8]
	bl	_vchi_service_release
	ldr	w8, [sp, #40]
LBB0_44:                                ;   in Loop: Header=BB0_13 Depth=2
	and	w8, w8, #0xfffffff1
	mov	w9, #141
	orr	w8, w8, w9
	str	w8, [sp, #40]
	mov	x8, x25
	sxtw	x8, w8
	str	x8, [x19, #80]
	str	w26, [x19, #8]
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_13 Depth=2
Lloh41:
	adrp	x8, _SDTV_COLOUR_UNKNOWN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SDTV_COLOUR_UNKNOWN@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	w8, [x19, #16]
LBB0_46:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_tvservice_lock_release
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.47:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x22, #0
	mov	x20, #0
	mov	w27, #0
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=3
	add	x20, x20, #1
	add	x22, x22, #16
	cmp	x20, w8, sxtw
	b.ge	LBB0_51
LBB0_49:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x19, #32]
	add	x9, x10, x22
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_48
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=3
	add	w27, w27, #1
	ldr	w0, [x10, x22]
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	blr	x9
	ldr	w8, [x21]
	b	LBB0_48
LBB0_51:                                ;   in Loop: Header=BB0_13 Depth=2
	cbnz	w27, LBB0_12
	b	LBB0_11
LBB0_52:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_54
LBB0_53:
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_vcos_log_trace
LBB0_54:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_20-LBB0_17)>>2
	.byte	(LBB0_21-LBB0_17)>>2
	.byte	(LBB0_25-LBB0_17)>>2
	.byte	(LBB0_26-LBB0_17)>>2
	.byte	(LBB0_27-LBB0_17)>>2
	.byte	(LBB0_29-LBB0_17)>>2
	.byte	(LBB0_33-LBB0_17)>>2
	.byte	(LBB0_36-LBB0_17)>>2
	.byte	(LBB0_46-LBB0_17)>>2
	.byte	(LBB0_46-LBB0_17)>>2
	.byte	(LBB0_37-LBB0_17)>>2
	.byte	(LBB0_38-LBB0_17)>>2
	.byte	(LBB0_42-LBB0_17)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TV service async thread started"

	.comm	_VC_TV_GET_DISPLAY_STATE,4,2    ; @VC_TV_GET_DISPLAY_STATE
	.comm	_tvservice_notify_available_event,4,2 ; @tvservice_notify_available_event
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_VCHI_FLAGS_NONE,4,2            ; @VCHI_FLAGS_NONE
l_.str.1:                               ; @.str.1
	.asciz	"[%s] %s %d %d"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
l_.str.2:                               ; @.str.2
	.asciz	"[%s] invalidating caches"

	.comm	_SDTV_MODE_OFF,8,3              ; @SDTV_MODE_OFF
	.comm	_SDTV_COLOUR_RGB,4,2            ; @SDTV_COLOUR_RGB
	.comm	_SDTV_COLOUR_YPRPB,4,2          ; @SDTV_COLOUR_YPRPB
	.comm	_SDTV_COLOUR_UNKNOWN,8,3        ; @SDTV_COLOUR_UNKNOWN
	.comm	_SDTV_CP_NONE,4,2               ; @SDTV_CP_NONE
	.comm	_TVSERVICE_MAX_CALLBACKS,4,2    ; @TVSERVICE_MAX_CALLBACKS
l_.str.3:                               ; @.str.3
	.asciz	"TV service: No callback handler specified, callback [%s] swallowed"

l_.str.4:                               ; @.str.4
	.asciz	"TV service async thread exiting"

	.no_dead_strip	_tvservice_notify_func
.subsections_via_symbols
