	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicommonsettings_parse_cmdline ## -- Begin function raspicommonsettings_parse_cmdline
	.p2align	4, 0x90
_raspicommonsettings_parse_cmdline:     ## @raspicommonsettings_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_27
## %bb.1:
	movq	%rcx, %r12
	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
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:
	cmpl	$0, -44(%rbp)
	jg	LBB0_27
LBB0_4:
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_27
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	addq	$24, %r14
	jmp	LBB0_8
LBB0_22:
	movl	$1, (%r14)
	jmp	LBB0_26
LBB0_24:
	addq	$8, %r14
	jmp	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_27
## %bb.11:
	movl	%eax, %r12d
	cmpb	$0, (%r15)
	je	LBB0_20
## %bb.12:
	movq	%r15, %rdi
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rbx,%r13), %rdi
	incq	%rdi
	cmpb	$0, 1(%r13,%rbx)
	je	LBB0_20
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%r13,%rbx), %edi
	callq	_isdigit
	incq	%rbx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	(%r13,%rbx), %dl
	cmpb	$37, %dl
	sete	%al
	cmpl	$1, %ebx
	sete	%cl
	cmpb	$100, %dl
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	andb	%cl, %al
	jne	LBB0_13
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_20:
	leal	10(%r12), %edi
	callq	_malloc
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_vcos_assert
	movl	16(%r14), %edi
	movl	$2, %ebx
	testl	%edi, %edi
	je	LBB0_27
## %bb.21:
	incl	%r12d
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strncpy
	jmp	LBB0_27
LBB0_9:
	addq	$20, %r14
	jmp	LBB0_8
LBB0_25:
	movl	$1, 4(%r14)
LBB0_26:
	movl	$1, %ebx
	jmp	LBB0_27
LBB0_23:
	addq	$12, %r14
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_sscanf
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	sete	%bl
	addl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_get_app_name
	movl	%eax, %edi
	callq	_basename
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_display_valid_parameters
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_25
	.long	L0_0_set_23
	.end_data_region
                                        ## -- 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	"%u"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Filename contains %% characters, but not %%d or %%%% - sorry, will fail\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raspicommonsettings_parse_cmdline ; -- Begin function raspicommonsettings_parse_cmdline
	.p2align	2
_raspicommonsettings_parse_cmdline:     ; @raspicommonsettings_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_4
; %bb.1:
	mov	x21, x3
	mov	x19, x2
	mov	x2, x1
	mov	x20, 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_4
; %bb.2:
	cbnz	x19, LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.le	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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_6:
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.7:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	add	x2, x20, #24
	b	LBB0_26
LBB0_9:
	mov	w0, #1
	str	w0, [x20]
	b	LBB0_5
LBB0_10:
	add	x2, x20, #8
	b	LBB0_26
LBB0_11:
	mov	x0, x19
	bl	_strlen
	cbz	w0, LBB0_5
; %bb.12:
	mov	x21, x0
	ldrb	w8, [x19]
	cbz	w8, LBB0_21
; %bb.13:
	mov	x0, x19
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x22, x23
	ldrb	w8, [x0, #1]!
	cbz	w8, LBB0_21
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x22, x0
	mov	x23, #0
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x22, x23
	ldrsb	w0, [x8, #1]
	bl	_isdigit
	add	x23, x23, #1
	cbnz	w0, LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w9, [x22, x23]
	cmp	w9, #37
	ccmp	w23, #1, #0, eq
	cset	w8, eq
	cmp	w9, #100
	b.eq	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	tbnz	w8, #0, LBB0_14
; %bb.20:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_21:
	add	w0, w21, #10
	bl	_malloc
	str	w0, [x20, #16]
	bl	_vcos_assert
	ldr	w0, [x20, #16]
	cbz	w0, LBB0_27
; %bb.22:
	add	w2, w21, #1
	mov	x1, x19
	bl	_strncpy
	mov	w0, #2
	b	LBB0_5
LBB0_23:
	add	x2, x20, #20
	b	LBB0_26
LBB0_24:
	mov	w0, #1
	str	w0, [x20, #4]
	b	LBB0_5
LBB0_25:
	add	x2, x20, #12
LBB0_26:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	cset	w8, eq
	lsl	w0, w8, #1
	b	LBB0_5
LBB0_27:
	mov	w0, #2
	b	LBB0_5
LBB0_28:
	bl	_get_app_name
	bl	_basename
	mov	x1, x21
	bl	_display_valid_parameters
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_28-LBB0_8)>>2
	.byte	(LBB0_23-LBB0_8)>>2
	.byte	(LBB0_24-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
                                        ; -- 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	"%u"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Filename contains %% characters, but not %%d or %%%% - sorry, will fail\n"

.subsections_via_symbols
