	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VC_IMAGE_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	(%r13,%r13), %edi
	movl	$32, %esi
	callq	_ALIGN_UP
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	$16, %esi
	callq	_ALIGN_UP
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPCREL(%rip), %rax
	movq	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -88(%rbp)
	movq	$120, -84(%rbp)
	xorl	%eax, %eax
	callq	_bcm_host_init
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_vc_dispmanx_display_open
	movq	_gRectVars@GOTPCREL(%rip), %rbx
	movl	%eax, 12(%rbx)
	leaq	20(%rbx), %rsi
	movl	%eax, %edi
	callq	_vc_dispmanx_display_get_info
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	20(%rbx), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	%r12d, %esi
	imull	%r15d, %esi
	movl	$1, %edi
	callq	_calloc
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %esi
	subq	$8, %rsp
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$65535                          ## imm = 0xFFFF
	pushq	%r15
	pushq	%r13
	callq	_FillRect
	addq	$32, %rsp
	movq	_gRectVars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r14d, %r12d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$63488                          ## imm = 0xF800
	pushq	%r15
	pushq	%r13
	callq	_FillRect
	addq	$32, %rsp
	movq	_gRectVars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-40(%r13), %r10d
	movq	%r13, %rbx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leal	-40(%r15), %eax
	movq	%r15, %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	subq	$8, %rsp
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	$20, %r8d
	movl	$20, %r9d
	pushq	$2016                           ## imm = 0x7E0
	pushq	%rax
	pushq	%r10
	callq	_FillRect
	addq	$32, %rsp
	movq	_gRectVars@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-80(%rbx), %eax
	leal	-80(%r13), %ebx
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	$40, %r8d
	movl	$40, %r9d
	pushq	$31
	pushq	%rbx
	pushq	%rax
	callq	_FillRect
	addq	$32, %rsp
	movq	_gRectVars@GOTPCREL(%rip), %rbx
	leaq	28(%rbx), %rcx
	movl	%r14d, %edi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_vc_dispmanx_resource_create
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_assert
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	callq	_vc_dispmanx_rect_set
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_vc_dispmanx_resource_write_data
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	$10, %edi
	callq	_vc_dispmanx_update_start
	movl	%eax, 8(%rbx)
	movq	%rbx, %r14
	movl	%eax, %edi
	callq	_assert
	movl	%r13d, %ecx
	shll	$16, %ecx
	movl	%r15d, %r8d
	shll	$16, %r8d
	leaq	-92(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_vc_dispmanx_rect_set
	movl	20(%rbx), %eax
	movl	24(%rbx), %edi
	subl	%r13d, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	%r15, %r8
	subl	%r8d, %edi
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	sarl	%edx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	%r13d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_vc_dispmanx_rect_set
	movl	4(%rbx), %r8d
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	movq	_DISPMANX_PROTECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VC_IMAGE_ROT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-88(%rbp), %r10
	movl	$2000, %edx                     ## imm = 0x7D0
	movq	%r15, %rcx
	movq	%r12, %r9
	pushq	%rbx
	pushq	$0
	pushq	%r10
	pushq	%rax
	callq	_vc_dispmanx_element_add
	addq	$32, %rsp
	movl	%eax, 16(%r14)
	movl	8(%r14), %edi
	callq	_vc_dispmanx_update_submit_sync
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$10, %edi
	callq	_sleep
	movl	$10, %edi
	callq	_vc_dispmanx_update_start
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_assert
	movl	8(%r14), %edi
	movl	16(%r14), %esi
	callq	_vc_dispmanx_element_remove
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	8(%r14), %edi
	callq	_vc_dispmanx_update_submit_sync
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	4(%r14), %edi
	callq	_vc_dispmanx_resource_delete
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	12(%r14), %edi
	callq	_vc_dispmanx_display_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_IMAGE_RGB565,4,2            ## @VC_IMAGE_RGB565
	.comm	_WIDTH,4,2                      ## @WIDTH
	.comm	_HEIGHT,4,2                     ## @HEIGHT
	.comm	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE,4,2 ## @DISPMANX_FLAGS_ALPHA_FROM_SOURCE
	.comm	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,4,2 ## @DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS
	.comm	_gRectVars,32,2                 ## @gRectVars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Open display[%i]...\n"

L_.str.1:                               ## @.str.1
	.asciz	"Display is %d x %d\n"

	.comm	_DISPMANX_PROTECTION_NONE,4,2   ## @DISPMANX_PROTECTION_NONE
	.comm	_VC_IMAGE_ROT0,4,2              ## @VC_IMAGE_ROT0
L_str:                                  ## @str
	.asciz	"Sleeping for 10 seconds..."

.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 main
lCPI0_0:
	.long	120                             ; 0x78
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _VC_IMAGE_RGB565@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_IMAGE_RGB565@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WIDTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	ldr	w19, [x9]
Lloh6:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	lsl	w0, w19, #1
	mov	w1, #32
	bl	_ALIGN_UP
	mov	x22, x0
	mov	x0, x20
	mov	w1, #16
	bl	_ALIGN_UP
	mov	x23, x0
Lloh9:
	adrp	x8, _DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISPMANX_FLAGS_ALPHA_FROM_SOURCE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #24]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #28]
	bl	_bcm_host_init
	str	xzr, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #0
	bl	_vc_dispmanx_display_open
Lloh19:
	adrp	x24, _gRectVars@GOTPAGE
Lloh20:
	ldr	x24, [x24, _gRectVars@GOTPAGEOFF]
	str	w0, [x24, #12]
	add	x1, x24, #20
	bl	_vc_dispmanx_display_get_info
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldp	w8, w9, [x24, #20]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mul	w1, w22, w20
	mov	w0, #1
	bl	_calloc
	str	w0, [x24]
	bl	_assert
	ldr	w1, [x24]
	mov	w8, #65535
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	mov	x7, x20
	bl	_FillRect
	ldr	w1, [x24]
	mov	w8, #63488
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	mov	x7, x20
	bl	_FillRect
	ldr	w1, [x24]
	sub	w6, w19, #40
	sub	w7, w20, #40
	mov	w8, #2016
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #20
	mov	w5, #20
	bl	_FillRect
	ldr	w1, [x24]
	sub	w6, w19, #80
	sub	w7, w20, #80
	mov	w8, #31
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	w4, #40
	mov	w5, #40
	bl	_FillRect
	add	x3, x24, #28
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_vc_dispmanx_resource_create
	str	w0, [x24, #4]
	bl	_assert
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #0
	mov	x3, x19
	mov	x4, x20
	bl	_vc_dispmanx_rect_set
	ldp	w3, w0, [x24]
	add	x4, sp, #40
	mov	x1, x21
	mov	x2, x22
	bl	_vc_dispmanx_resource_write_data
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #10
	bl	_vc_dispmanx_update_start
	str	w0, [x24, #8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	lsl	w3, w19, #16
	lsl	w4, w20, #16
	add	x0, sp, #44
	mov	w1, #0
	mov	w2, #0
	bl	_vc_dispmanx_rect_set
	ldp	w8, w9, [x24, #20]
	sub	w8, w8, w19
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	sub	w8, w9, w20
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	add	x0, sp, #40
	mov	x3, x19
	mov	x4, x20
	bl	_vc_dispmanx_rect_set
	ldp	w0, w1, [x24, #8]
	ldr	w4, [x24, #4]
Lloh23:
	adrp	x8, _DISPMANX_PROTECTION_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DISPMANX_PROTECTION_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
Lloh26:
	adrp	x8, _VC_IMAGE_ROT0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VC_IMAGE_ROT0@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	xzr, [sp]
	add	x3, sp, #40
	add	x5, sp, #44
	add	x7, sp, #24
	mov	w2, #2000
	bl	_vc_dispmanx_element_add
	str	w0, [x24, #16]
	ldr	w0, [x24, #8]
	bl	_vc_dispmanx_update_submit_sync
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh29:
	adrp	x0, l_str@PAGE
Lloh30:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #10
	bl	_sleep
	mov	w0, #10
	bl	_vc_dispmanx_update_start
	str	w0, [x24, #8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	ldr	w0, [x24, #8]
	ldr	w1, [x24, #16]
	bl	_vc_dispmanx_element_remove
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x24, #8]
	bl	_vc_dispmanx_update_submit_sync
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x24, #4]
	bl	_vc_dispmanx_resource_delete
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x24, #12]
	bl	_vc_dispmanx_display_close
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_IMAGE_RGB565,4,2            ; @VC_IMAGE_RGB565
	.comm	_WIDTH,4,2                      ; @WIDTH
	.comm	_HEIGHT,4,2                     ; @HEIGHT
	.comm	_DISPMANX_FLAGS_ALPHA_FROM_SOURCE,4,2 ; @DISPMANX_FLAGS_ALPHA_FROM_SOURCE
	.comm	_DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS,4,2 ; @DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS
	.comm	_gRectVars,32,2                 ; @gRectVars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Open display[%i]...\n"

l_.str.1:                               ; @.str.1
	.asciz	"Display is %d x %d\n"

	.comm	_DISPMANX_PROTECTION_NONE,4,2   ; @DISPMANX_PROTECTION_NONE
	.comm	_VC_IMAGE_ROT0,4,2              ; @VC_IMAGE_ROT0
l_str:                                  ; @str
	.asciz	"Sleeping for 10 seconds..."

.subsections_via_symbols
