	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function demo_init
_demo_init:                             ## @demo_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_INT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	cmpl	$2, %r15d
	jl	LBB0_15
## %bb.1:
	leal	-1(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 8(%r14)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%r15d, %r13d
	jge	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r12
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	_INT32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx,%r12,8), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	js	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 12(%r14)
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 16(%r14)
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_demo_init_connection
	movq	%r14, %rdi
	callq	_demo_init_vk
	movabsq	$1288490189100, %rax            ## imm = 0x12C0000012C
	movq	%rax, 20(%r14)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, 32(%r14)
	movl	$-1138501878, 40(%r14)          ## imm = 0xBC23D70A
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_APP_SHORT_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_fflush
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_INT32_MAX,8,3                  ## @INT32_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--use_staging"

L_.str.1:                               ## @.str.1
	.asciz	"--break"

L_.str.2:                               ## @.str.2
	.asciz	"--validate"

L_.str.3:                               ## @.str.3
	.asciz	"--c"

L_.str.4:                               ## @.str.4
	.asciz	"%d"

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Usage:\n  %s [--use_staging] [--validate] [--break] [--c <framecount>]\n"

	.comm	_APP_SHORT_NAME,8,3             ## @APP_SHORT_NAME
	.no_dead_strip	_demo_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demo_init
_demo_init:                             ; @demo_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _INT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
	cmp	w21, #2
	b.lt	LBB0_13
; %bb.1:
	sub	w28, w21, #1
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	w25, #1
	mov	w26, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x19, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w26, #1
	cmp	w26, w21
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, w26, sxtw #3]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x27, w26
	ldr	x0, [x20, x27, lsl #3]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, x27, lsl #3]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _INT32_MAX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INT32_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w26, w28, #0, eq
	b.ge	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x27, #1
	ldr	x0, [x20, x26, lsl #3]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	tbz	x8, #63, LBB0_3
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x19, #12]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x19, #16]
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	bl	_demo_init_connection
	mov	x0, x19
	bl	_demo_init_vk
	mov	w8, #300
	dup.2s	v0, w8
	stur	d0, [x19, #20]
	mov	x8, #4607182418800017408
	str	x8, [x19, #32]
	mov	w8, #55050
	movk	w8, #48163, lsl #16
	str	w8, [x19, #40]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh16:
	adrp	x19, _stderr@GOTPAGE
Lloh17:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _APP_SHORT_NAME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APP_SHORT_NAME@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	bl	_fflush
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INT32_MAX,8,3                  ; @INT32_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--use_staging"

l_.str.1:                               ; @.str.1
	.asciz	"--break"

l_.str.2:                               ; @.str.2
	.asciz	"--validate"

l_.str.3:                               ; @.str.3
	.asciz	"--c"

l_.str.4:                               ; @.str.4
	.asciz	"%d"

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Usage:\n  %s [--use_staging] [--validate] [--break] [--c <framecount>]\n"

	.comm	_APP_SHORT_NAME,8,3             ; @APP_SHORT_NAME
	.no_dead_strip	_demo_init
.subsections_via_symbols
