	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gx_priv_release_screen
_gx_priv_release_screen:                ## @gx_priv_release_screen
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_gx@GOTPCREL(%rip), %r15
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_vcos_mutex_lock
	movq	(%r15), %rax
	decq	(%rax,%r14,8)
	jne	LBB0_2
## %bb.1:
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_vc_dispmanx_display_close
	movq	_DISPMANX_NO_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
LBB0_2:
	movq	%rbx, %rdi
	callq	_vcos_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gx,24,3                        ## @gx
	.comm	_DISPMANX_NO_HANDLE,4,2         ## @DISPMANX_NO_HANDLE
	.no_dead_strip	_gx_priv_release_screen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gx_priv_release_screen
_gx_priv_release_screen:                ; @gx_priv_release_screen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _gx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _gx@GOTPAGEOFF]
	add	x19, x21, #8
	mov	x0, x19
	bl	_vcos_mutex_lock
	ldr	x8, [x21]
	lsl	x9, x20, #3
	ldr	x10, [x8, x9]
	subs	x10, x10, #1
	str	x10, [x8, x9]
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	lsl	x20, x20, #2
	ldr	w0, [x8, x20]
	bl	_vc_dispmanx_display_close
Lloh2:
	adrp	x8, _DISPMANX_NO_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DISPMANX_NO_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	str	w8, [x9, x20]
LBB0_2:
	mov	x0, x19
	bl	_vcos_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_gx,24,3                        ; @gx
	.comm	_DISPMANX_NO_HANDLE,4,2         ; @DISPMANX_NO_HANDLE
	.no_dead_strip	_gx_priv_release_screen
.subsections_via_symbols
