	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.1:
	movq	_cmds@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movl	$40, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	addq	$24, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_4:
	movl	%r13d, %ebx
	movq	(%r15), %rcx
	leaq	(%rbx,%rbx,2), %rax
	movq	_CONNECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,8)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_do_connect
	movq	(%r15), %rcx
LBB0_6:
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,2), %r13
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	*8(%rcx,%r13)
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	_CONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r13)
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_mmal_vc_deinit
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_do_usage
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_cmds,8,3                       ## @cmds
	.comm	_CONNECT,4,2                    ## @CONNECT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown command %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #2
	b.lt	LBB0_11
; %bb.1:
Lloh0:
	adrp	x21, _cmds@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cmds@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, #0
	mov	w23, #40
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #8]
	bl	_strcasecmp
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	ldr	x0, [x8, x23]
	add	x23, x23, #24
	cbnz	x0, LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w19, #-1
	b	LBB0_10
LBB0_6:
	and	x23, x22, #0xffffffff
	ldr	x8, [x21]
	mov	w9, #24
	mul	x9, x23, x9
	ldr	w9, [x8, x9]
Lloh7:
	adrp	x22, _CONNECT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CONNECT@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	bl	_do_connect
	ldr	x8, [x21]
LBB0_8:
	add	x9, x23, x23, lsl #1
	lsl	x23, x9, #3
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w8, [x8, x23]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_mmal_vc_deinit
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_do_usage
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cmds,8,3                       ; @cmds
	.comm	_CONNECT,4,2                    ; @CONNECT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown command %s\n"

.subsections_via_symbols
