	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispmanx_notify_func
_dispmanx_notify_func:                  ## @dispmanx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dispmanx_notify_available_event@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movq	_dispmanx_client@GOTPCREL(%rip), %r13
	cmpl	$0, 60(%r13)
	je	LBB0_11
## %bb.2:
	movq	_VCHI_FLAGS_NONE@GOTPCREL(%rip), %r12
	leaq	56(%r13), %r15
	movq	_dispmanx_notify_available_event@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movq	48(%r13), %rsi
	movl	(%rax), %edi
	movl	(%r12), %r8d
	movl	$8, %edx
	movq	%r15, %rcx
	callq	_vchi_msg_dequeue
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%r13), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r13), %rax
	movl	(%rax), %edi
	callq	_vchi_service_release
	cmpq	$0, 32(%r13)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	cmpq	%rbx, (%r13)
	sete	%dil
	callq	_vcos_assert
	movl	24(%r13), %esi
	movq	%rbx, %rdi
	callq	*32(%r13)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r13), %esi
	xorl	%edi, %edi
	callq	*%rax
	jmp	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_vcos_event_wait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 60(%r13)
	jne	LBB0_5
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dispmanx_notify_available_event,4,2 ## @dispmanx_notify_available_event
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_dispmanx_client,64,3           ## @dispmanx_client
	.comm	_VCHI_FLAGS_NONE,4,2            ## @VCHI_FLAGS_NONE
	.no_dead_strip	_dispmanx_notify_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispmanx_notify_func
_dispmanx_notify_func:                  ; @dispmanx_notify_func
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, _dispmanx_notify_available_event@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dispmanx_notify_available_event@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh2:
	adrp	x21, _VCOS_SUCCESS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _dispmanx_client@GOTPAGE
Lloh5:
	ldr	x22, [x22, _dispmanx_client@GOTPAGEOFF]
	ldr	w9, [x22, #60]
	cmp	x0, x8
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_2
LBB0_1:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x23, _VCHI_FLAGS_NONE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _VCHI_FLAGS_NONE@GOTPAGEOFF]
Lloh8:
	adrp	x19, _dispmanx_notify_available_event@GOTPAGE
Lloh9:
	ldr	x19, [x19, _dispmanx_notify_available_event@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_vcos_event_wait
	ldr	x8, [x21]
	ldr	w9, [x22, #60]
	cmp	x0, x8
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x1, [x22, #40]
	ldr	w0, [x8]
	ldr	w4, [x23]
	add	x3, x22, #56
	mov	w2, #8
	bl	_vchi_msg_dequeue
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #48]
	ldr	x20, [x8]
	cbz	x20, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #40]
	ldr	w0, [x8]
	bl	_vchi_service_release
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cmp	x8, x20
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x22, #32]
	ldr	w1, [x22, #24]
	mov	x0, x20
	blr	x8
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22, #8]
	mov	x0, #0
	blr	x8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dispmanx_notify_available_event,4,2 ; @dispmanx_notify_available_event
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_dispmanx_client,64,3           ; @dispmanx_client
	.comm	_VCHI_FLAGS_NONE,4,2            ; @VCHI_FLAGS_NONE
	.no_dead_strip	_dispmanx_notify_func
.subsections_via_symbols
