	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_create_native_window   ## -- Begin function gx_priv_create_native_window
	.p2align	4, 0x90
_gx_priv_create_native_window:          ## @gx_priv_create_native_window
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	$0, (%r9)
	leaq	-56(%rbp), %rsi
	callq	_gx_priv_open_screen
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ebx
	xorl	%edi, %edi
	callq	_vc_dispmanx_update_start
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	%r13d, %eax
	shll	$16, %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movl	%eax, -104(%rbp)
	movl	%ebx, %r12d
	movl	%ebx, %eax
	shll	$16, %eax
	movl	%eax, -100(%rbp)
	movups	%xmm0, -120(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -128(%rbp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, (%rbx)
	movl	%r12d, 4(%rbx)
	leaq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-56(%rbp), %esi
	movq	_DISPMANX_PROTECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leaq	-128(%rbp), %rcx
	leaq	-104(%rbp), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r13
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%r10
	callq	_vc_dispmanx_element_add
	addq	$32, %rsp
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_GX_LOG
	movq	%r15, %rdi
	callq	_vc_dispmanx_update_submit_sync
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_GX_LOG
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_GX_LOG
	movl	%r12d, %edi
	callq	_gx_priv_release_screen
LBB0_7:
	movl	%r14d, %eax
	addq	$88, %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	"Could not open display %d"

L_.str.1:                               ## @.str.1
	.asciz	"Could not start update on screen %d"

	.comm	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE,4,2 ## @DISPMANX_FLAGS_ALPHA_FROM_SOURCE
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ## @DISPMANX_PROTECTION_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Could not add element %dx%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_priv_create_native_window   ; -- Begin function gx_priv_create_native_window
	.p2align	2
_gx_priv_create_native_window:          ; @gx_priv_create_native_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x5
	mov	x22, x4
	mov	x21, x2
	mov	x20, x1
	mov	x25, x0
	str	xzr, [x5]
	sub	x1, x29, #68
	bl	_gx_priv_open_screen
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w0, #0
	bl	_vc_dispmanx_update_start
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
	lsl	w8, w20, #16
	stp	xzr, xzr, [sp, #48]
	lsl	w9, w21, #16
	stp	w8, w9, [sp, #40]
	stp	xzr, xzr, [sp, #72]
	movi.2s	v0, #1
	str	d0, [sp, #64]
	stp	w20, w21, [x22]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x24, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldur	w1, [x29, #-68]
Lloh3:
	adrp	x8, _DISPMANX_PROTECTION_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPMANX_PROTECTION_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	str	wzr, [sp, #8]
	str	x24, [sp]
	add	x3, sp, #64
	add	x5, sp, #40
	add	x7, sp, #32
	mov	x0, x23
	mov	w2, #0
	mov	w4, #0
	bl	_vc_dispmanx_element_add
	str	w0, [x22, #8]
	cbnz	w0, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_GX_LOG
	mov	x0, x23
	bl	_vc_dispmanx_update_submit_sync
LBB0_4:
	mov	w24, #0
	str	x23, [x19]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_GX_LOG
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_GX_LOG
	mov	x0, x25
	bl	_gx_priv_release_screen
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open display %d"

l_.str.1:                               ; @.str.1
	.asciz	"Could not start update on screen %d"

	.comm	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE,4,2 ; @DISPMANX_FLAGS_ALPHA_FROM_SOURCE
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ; @DISPMANX_PROTECTION_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Could not add element %dx%d"

.subsections_via_symbols
