	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_command
_do_command:                            ## @do_command
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leal	-128(%rbx), %esi
	xorl	%eax, %eax
	cmpl	$8, %esi
	ja	LBB0_2
## %bb.1:
	movslq	%esi, %rax
	leaq	l_switch.table.do_command(%rip), %rsi
	movl	(%rsi,%rax,4), %eax
LBB0_2:
	movl	%ebx, %esi
	sarl	$8, %esi
	movl	%esi, -64(%rbp)
	movzbl	%bl, %esi
	movl	%esi, -60(%rbp)
	movl	%edx, -56(%rbp)
	movl	%ecx, -52(%rbp)
	movl	%r8d, -48(%rbp)
	movl	%r9d, -44(%rbp)
	movl	%eax, -40(%rbp)
	movl	$0, -36(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cpia_usb_transferCmd
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addl	$-129, %ebx
	cmpl	$7, %ebx
	ja	LBB0_16
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	cmpl	$0, 8(%r15)
	je	LBB0_16
## %bb.13:
	movq	(%r15), %rax
	movl	4(%rax), %eax
	andl	$2, %eax
	shrl	%eax
	movl	%eax, %ecx
	xorl	$1, %ecx
	movl	%ecx, (%r15)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_CPIA_COMMAND_WriteMCPort@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	movl	$223, %ecx
	movl	$223, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	movl	$255, %ecx
	movl	$255, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
LBB0_15:
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	testb	$64, 8(%rax)
	sete	%cl
	movl	%ecx, 4(%r15)
	jmp	LBB0_16
LBB0_8:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 68(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 72(%r15)
	movl	12(%rax), %ecx
	shll	$8, %ecx
	orl	8(%rax), %ecx
	movl	%ecx, 76(%r15)
	jmp	LBB0_16
LBB0_6:
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movl	%ecx, 112(%r15)
	movl	12(%rax), %ecx
	shll	$8, %ecx
	orl	8(%rax), %ecx
	movl	%ecx, 116(%r15)
	movl	20(%rax), %ecx
	shll	$8, %ecx
	orl	16(%rax), %ecx
	movl	%ecx, 120(%r15)
	jmp	LBB0_16
LBB0_11:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 12(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 16(%r15)
	movl	8(%rax), %ecx
	movl	%ecx, 20(%r15)
	movl	12(%rax), %ecx
	movl	%ecx, 24(%r15)
	movl	16(%rax), %ecx
	movl	%ecx, 28(%r15)
	movl	20(%rax), %ecx
	movl	%ecx, 32(%r15)
	movl	24(%rax), %ecx
	movl	%ecx, 36(%r15)
	movl	28(%rax), %eax
	movl	%eax, 40(%r15)
	jmp	LBB0_16
LBB0_9:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 56(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 60(%r15)
	movl	8(%rax), %eax
	movl	%eax, 64(%r15)
	jmp	LBB0_16
LBB0_10:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 44(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 48(%r15)
	movl	8(%rax), %eax
	movl	%eax, 52(%r15)
	jmp	LBB0_16
LBB0_7:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 80(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 84(%r15)
	movl	8(%rax), %ecx
	movl	%ecx, 88(%r15)
	movl	12(%rax), %ecx
	movl	%ecx, 92(%r15)
	movl	16(%rax), %ecx
	movl	%ecx, 96(%r15)
	movl	20(%rax), %ecx
	movl	%ecx, 100(%r15)
	movl	24(%rax), %ecx
	movl	%ecx, 104(%r15)
	movl	28(%rax), %eax
	movl	%eax, 108(%r15)
	jmp	LBB0_16
LBB0_5:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 124(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 128(%r15)
	movl	8(%rax), %ecx
	movl	%ecx, 132(%r15)
	movl	12(%rax), %eax
	movl	%eax, 136(%r15)
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ## @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_do_command
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.do_command
l_switch.table.do_command:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_command
_do_command:                            ; @do_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	sub	w8, w1, #128
	cmp	w8, #8
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.do_command@PAGE
Lloh4:
	add	x9, x9, l_switch.table.do_command@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	asr	w9, w21, #8
	and	w10, w21, #0xff
	stp	w9, w10, [sp, #8]
	stp	w2, w3, [sp, #16]
	stp	w4, w5, [sp, #24]
	stp	w8, wzr, [sp, #32]
	add	x1, sp, #8
	mov	x0, x19
	bl	_cpia_usb_transferCmd
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_4:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.5:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_6:
	sub	w8, w21, #129
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.7:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.9:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	ubfx	w9, w8, #1, #1
	eor	w9, w9, #0x1
	str	w9, [x19]
	tbnz	w8, #1, LBB0_11
; %bb.10:
Lloh10:
	adrp	x21, _CPIA_COMMAND_WriteMCPort@GOTPAGE
Lloh11:
	ldr	x21, [x21, _CPIA_COMMAND_WriteMCPort@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #223
	mov	w4, #223
	mov	w5, #0
	bl	_do_command
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #255
	mov	w4, #255
	mov	w5, #0
	bl	_do_command
LBB0_11:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	mov	w9, #1
	bic	w8, w9, w8, lsr #6
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_12:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #68]
	ldr	w9, [x8, #4]
	str	w9, [x19, #72]
	ldp	w9, w8, [x8, #8]
	orr	w8, w9, w8, lsl #8
	str	w8, [x19, #76]
	b	LBB0_4
LBB0_13:
	ldr	x8, [x19]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	str	w9, [x19, #112]
	ldp	w9, w10, [x8, #8]
	orr	w9, w9, w10, lsl #8
	str	w9, [x19, #116]
	ldp	w9, w8, [x8, #16]
	orr	w8, w9, w8, lsl #8
	str	w8, [x19, #120]
	b	LBB0_4
LBB0_14:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #12]
	ldr	w9, [x8, #4]
	str	w9, [x19, #16]
	ldr	w9, [x8, #8]
	str	w9, [x19, #20]
	ldr	w9, [x8, #12]
	str	w9, [x19, #24]
	ldr	w9, [x8, #16]
	str	w9, [x19, #28]
	ldr	w9, [x8, #20]
	str	w9, [x19, #32]
	ldr	w9, [x8, #24]
	str	w9, [x19, #36]
	ldr	w8, [x8, #28]
	str	w8, [x19, #40]
	b	LBB0_4
LBB0_15:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #56]
	ldr	w9, [x8, #4]
	str	w9, [x19, #60]
	ldr	w8, [x8, #8]
	str	w8, [x19, #64]
	b	LBB0_4
LBB0_16:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #44]
	ldr	w9, [x8, #4]
	str	w9, [x19, #48]
	ldr	w8, [x8, #8]
	str	w8, [x19, #52]
	b	LBB0_4
LBB0_17:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #80]
	ldr	w9, [x8, #4]
	str	w9, [x19, #84]
	ldr	w9, [x8, #8]
	str	w9, [x19, #88]
	ldr	w9, [x8, #12]
	str	w9, [x19, #92]
	ldr	w9, [x8, #16]
	str	w9, [x19, #96]
	ldr	w9, [x8, #20]
	str	w9, [x19, #100]
	ldr	w9, [x8, #24]
	str	w9, [x19, #104]
	ldr	w8, [x8, #28]
	str	w8, [x19, #108]
	b	LBB0_4
LBB0_18:
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x19, #124]
	ldr	w9, [x8, #4]
	str	w9, [x19, #128]
	ldr	w9, [x8, #8]
	str	w9, [x19, #132]
	ldr	w8, [x8, #12]
	str	w8, [x19, #136]
	b	LBB0_4
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
                                        ; -- End function
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ; @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_do_command
	.p2align	2                               ; @switch.table.do_command
l_switch.table.do_command:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8

.subsections_via_symbols
