	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_get_display_size      ## -- Begin function graphics_get_display_size
	.p2align	4, 0x90
_graphics_get_display_size:             ## @graphics_get_display_size
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_vc_dispmanx_display_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_vc_dispmanx_display_get_info
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	-40(%rbp), %eax
	movl	%eax, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	callq	_vc_dispmanx_display_close
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_get_display_size      ; -- Begin function graphics_get_display_size
	.p2align	2
_graphics_get_display_size:             ; @graphics_get_display_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_vc_dispmanx_display_open
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	bl	_vc_dispmanx_display_get_info
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	cbz	x22, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x22]
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	bl	_vc_dispmanx_display_close
	b	LBB0_8
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
