	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_parse_cmdline         ## -- Begin function raspitex_parse_cmdline
	.p2align	4, 0x90
_raspitex_parse_cmdline:                ## @raspitex_parse_cmdline
	.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
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	_cmdline_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cmdline_commands_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	callq	_raspicli_get_command_id
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:
	cmpl	$0, -44(%rbp)
	jg	LBB0_24
LBB0_4:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.6:
	leaq	20(%r14), %r13
	leaq	16(%r14), %r12
	leaq	12(%r14), %rax
	leaq	8(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	movq	%rbx, %r9
	callq	_sscanf
	cmpl	$4, %eax
	jne	LBB0_7
## %bb.8:
	movl	$1, (%r14)
	jmp	LBB0_23
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	callq	_vcos_log_error
	jmp	LBB0_23
LBB0_7:
	movl	$0, (%r12)
	movl	$0, (%r13)
	movq	_DEFAULT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_DEFAULT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_23
LBB0_10:
	movq	_RASPITEX_SCENE_SQUARE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_RASPITEX_SCENE_TEAPOT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	_RASPITEX_SCENE_MIRROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_17:
	movq	_RASPITEX_SCENE_YUV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_19:
	movq	_RASPITEX_SCENE_SOBEL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_21:
	movq	_RASPITEX_SCENE_VCSM_SQUARE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_23:
	movl	$2, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdline_commands,4,2           ## @cmdline_commands
	.comm	_cmdline_commands_size,4,2      ## @cmdline_commands_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d,%d,%d,%d"

	.comm	_DEFAULT_WIDTH,4,2              ## @DEFAULT_WIDTH
	.comm	_DEFAULT_HEIGHT,4,2             ## @DEFAULT_HEIGHT
L_.str.1:                               ## @.str.1
	.asciz	"square"

	.comm	_RASPITEX_SCENE_SQUARE,4,2      ## @RASPITEX_SCENE_SQUARE
L_.str.2:                               ## @.str.2
	.asciz	"teapot"

	.comm	_RASPITEX_SCENE_TEAPOT,4,2      ## @RASPITEX_SCENE_TEAPOT
L_.str.3:                               ## @.str.3
	.asciz	"mirror"

	.comm	_RASPITEX_SCENE_MIRROR,4,2      ## @RASPITEX_SCENE_MIRROR
L_.str.4:                               ## @.str.4
	.asciz	"yuv"

	.comm	_RASPITEX_SCENE_YUV,4,2         ## @RASPITEX_SCENE_YUV
L_.str.5:                               ## @.str.5
	.asciz	"sobel"

	.comm	_RASPITEX_SCENE_SOBEL,4,2       ## @RASPITEX_SCENE_SOBEL
L_.str.6:                               ## @.str.6
	.asciz	"vcsm_square"

	.comm	_RASPITEX_SCENE_VCSM_SQUARE,4,2 ## @RASPITEX_SCENE_VCSM_SQUARE
L_.str.7:                               ## @.str.7
	.asciz	"Unknown scene %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspitex_parse_cmdline         ; -- Begin function raspitex_parse_cmdline
	.p2align	2
_raspitex_parse_cmdline:                ; @raspitex_parse_cmdline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cmdline_commands@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmdline_commands@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _cmdline_commands_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmdline_commands_size@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	bl	_raspicli_get_command_id
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	cbnz	x20, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.gt	LBB0_8
LBB0_4:
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.6:
	add	x2, x19, #20
	add	x23, x19, #16
	add	x22, x19, #12
	add	x21, x19, #8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_sscanf
	cmp	w0, #4
	b.ne	LBB0_17
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_25
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.11:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.12:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.13:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_21
; %bb.14:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.15:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.16:
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_error
	b	LBB0_25
LBB0_17:
	str	xzr, [x23]
Lloh22:
	adrp	x8, _DEFAULT_WIDTH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEFAULT_WIDTH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh25:
	adrp	x8, _DEFAULT_HEIGHT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_25
LBB0_18:
Lloh28:
	adrp	x8, _RASPITEX_SCENE_SQUARE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RASPITEX_SCENE_SQUARE@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
Lloh30:
	adrp	x8, _RASPITEX_SCENE_TEAPOT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RASPITEX_SCENE_TEAPOT@GOTPAGEOFF]
	b	LBB0_24
LBB0_20:
Lloh32:
	adrp	x8, _RASPITEX_SCENE_MIRROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RASPITEX_SCENE_MIRROR@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
Lloh34:
	adrp	x8, _RASPITEX_SCENE_YUV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RASPITEX_SCENE_YUV@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh36:
	adrp	x8, _RASPITEX_SCENE_SOBEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RASPITEX_SCENE_SOBEL@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh38:
	adrp	x8, _RASPITEX_SCENE_VCSM_SQUARE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RASPITEX_SCENE_VCSM_SQUARE@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_25:
	mov	w0, #2
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdline_commands,4,2           ; @cmdline_commands
	.comm	_cmdline_commands_size,4,2      ; @cmdline_commands_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d,%d,%d,%d"

	.comm	_DEFAULT_WIDTH,4,2              ; @DEFAULT_WIDTH
	.comm	_DEFAULT_HEIGHT,4,2             ; @DEFAULT_HEIGHT
l_.str.1:                               ; @.str.1
	.asciz	"square"

	.comm	_RASPITEX_SCENE_SQUARE,4,2      ; @RASPITEX_SCENE_SQUARE
l_.str.2:                               ; @.str.2
	.asciz	"teapot"

	.comm	_RASPITEX_SCENE_TEAPOT,4,2      ; @RASPITEX_SCENE_TEAPOT
l_.str.3:                               ; @.str.3
	.asciz	"mirror"

	.comm	_RASPITEX_SCENE_MIRROR,4,2      ; @RASPITEX_SCENE_MIRROR
l_.str.4:                               ; @.str.4
	.asciz	"yuv"

	.comm	_RASPITEX_SCENE_YUV,4,2         ; @RASPITEX_SCENE_YUV
l_.str.5:                               ; @.str.5
	.asciz	"sobel"

	.comm	_RASPITEX_SCENE_SOBEL,4,2       ; @RASPITEX_SCENE_SOBEL
l_.str.6:                               ; @.str.6
	.asciz	"vcsm_square"

	.comm	_RASPITEX_SCENE_VCSM_SQUARE,4,2 ; @RASPITEX_SCENE_VCSM_SQUARE
l_.str.7:                               ; @.str.7
	.asciz	"Unknown scene %s"

.subsections_via_symbols
