	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_update_end            ## -- Begin function graphics_update_end
	.p2align	4, 0x90
_graphics_update_end:                   ## @graphics_update_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_gx@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_DISPMANX_NO_HANDLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_vcos_verify
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setg	%dil
	callq	_vcos_verify
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	decq	8(%r14)
	jne	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_eglWaitClient
	movq	(%r14), %rdi
	callq	_vc_dispmanx_update_submit_sync
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_vc_assert
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gx,16,3                        ## @gx
	.comm	_DISPMANX_NO_HANDLE,8,3         ## @DISPMANX_NO_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_update_end            ; -- Begin function graphics_update_end
	.p2align	2
_graphics_update_end:                   ; @graphics_update_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _gx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gx@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _DISPMANX_NO_HANDLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DISPMANX_NO_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_vcos_verify
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_vcos_verify
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	bl	_eglWaitClient
	ldr	x0, [x19]
	bl	_vc_dispmanx_update_submit_sync
	cbz	x0, LBB0_7
; %bb.5:
	mov	w0, #0
	bl	_vc_assert
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gx,16,3                        ; @gx
	.comm	_DISPMANX_NO_HANDLE,8,3         ; @DISPMANX_NO_HANDLE
.subsections_via_symbols
