	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_native_window
_create_native_window:                  ## @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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	$255, -84(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	xorl	%edi, %edi
	callq	_graphics_get_display_size
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$1280, -40(%rbp)                ## imm = 0x500
	movl	$720, -36(%rbp)                 ## imm = 0x2D0
	movabsq	$3092376454400, %rax            ## imm = 0x2D000000500
	movq	%rax, -56(%rbp)
	movabsq	$202661983315558400, %rax       ## imm = 0x2D0000005000000
	movq	%rax, -72(%rbp)
	xorl	%edi, %edi
	callq	_vc_dispmanx_display_open
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_vc_dispmanx_update_start
	movl	%eax, %r15d
	movq	_DISPMANX_PROTECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_DISPMANX_NO_ROTATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	leaq	-88(%rbp), %r11
	leaq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r9
	movl	%r15d, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	pushq	%r11
	pushq	%r10
	callq	_vc_dispmanx_element_add
	addq	$32, %rsp
	movl	%eax, 8(%r14)
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	%r15d, %edi
	callq	_vc_dispmanx_update_submit_sync
LBB0_3:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,4,2 ## @DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ## @DISPMANX_PROTECTION_NONE
	.comm	_DISPMANX_NO_ROTATE,4,2         ## @DISPMANX_NO_ROTATE
	.no_dead_strip	_create_native_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function create_native_window
lCPI0_0:
	.long	1280                            ; 0x500
	.long	720                             ; 0x2d0
lCPI0_1:
	.long	83886080                        ; 0x5000000
	.long	47185920                        ; 0x2d00000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_create_native_window:                  ; @create_native_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, _DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-48]
	movi	d0, #0x000000000000ff
	stur	d0, [x29, #-44]
	str	wzr, [sp, #56]
	str	wzr, [sp, #40]
	add	x1, sp, #28
	add	x2, sp, #24
	mov	w0, #0
	bl	_graphics_get_display_size
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w8, #1280
	str	w8, [sp, #28]
	mov	w8, #720
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #48]
	bl	_vc_dispmanx_display_open
	mov	x20, x0
	mov	w0, #0
	bl	_vc_dispmanx_update_start
	mov	x21, x0
Lloh7:
	adrp	x8, _DISPMANX_PROTECTION_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DISPMANX_PROTECTION_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w6, [x8]
Lloh10:
	adrp	x8, _DISPMANX_NO_ROTATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DISPMANX_NO_ROTATE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	xzr, [sp]
	add	x3, sp, #32
	add	x5, sp, #48
	sub	x7, x29, #48
	mov	x1, x20
	mov	w2, #0
	mov	w4, #0
	bl	_vc_dispmanx_element_add
	ldp	w9, w8, [sp, #24]
	str	w8, [x19]
	stp	w9, w0, [x19, #4]
	mov	x0, x21
	bl	_vc_dispmanx_update_submit_sync
	mov	w0, #0
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,4,2 ; @DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS
	.comm	_DISPMANX_PROTECTION_NONE,4,2   ; @DISPMANX_PROTECTION_NONE
	.comm	_DISPMANX_NO_ROTATE,4,2         ; @DISPMANX_NO_ROTATE
	.no_dead_strip	_create_native_window
.subsections_via_symbols
