	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	ja	LBB0_5
## %bb.1:
	movl	$8, %r14d
	movl	$396, %ecx                      ## imm = 0x18C
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.2:
	movl	$112, %ecx
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.3:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	140(%rax), %rdi
	movl	%r9d, -124(%rbp)                ## 4-byte Spill
	callq	_mutex_lock
	movl	-124(%rbp), %r9d                ## 4-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_6
LBB0_4:
	movl	$4, %r14d
	jmp	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, -80(%rbp)
	movzbl	%bl, %eax
	movl	%eax, -76(%rbp)
	movl	%r15d, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movl	%r12d, -64(%rbp)
	movl	%r9d, -60(%rbp)
	movl	%r14d, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	152(%rdi), %rax
	movl	144(%rdi), %edi
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_DBG
	addl	$-132, %ebx
	cmpl	$2, %ebx
	ja	LBB0_23
## %bb.8:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
LBB0_9:
	addq	$140, %rdi
	callq	_mutex_unlock
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	addl	$-129, %ebx
	cmpl	$7, %ebx
	ja	LBB0_23
## %bb.11:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_19:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, 8(%rax)
	je	LBB0_23
## %bb.20:
	movl	-108(%rbp), %eax
	andl	$2, %eax
	shrl	%eax
	movl	%eax, %ecx
	xorl	$1, %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%ecx, (%rdx)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_CPIA_COMMAND_WriteMCPort@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	$3, %edx
	movl	$223, %ecx
	movl	$223, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	$3, %edx
	movl	$255, %ecx
	movl	$255, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movq	-120(%rbp), %rdx                ## 8-byte Reload
LBB0_22:
	xorl	%eax, %eax
	testb	$64, -104(%rbp)
	sete	%al
	movl	%eax, 4(%rdx)
	jmp	LBB0_23
LBB0_15:
	movl	-112(%rbp), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 68(%rcx)
	movl	-108(%rbp), %eax
	movl	%eax, 72(%rcx)
	movl	-100(%rbp), %eax
	shll	$8, %eax
	addl	-104(%rbp), %eax
	movl	%eax, 76(%rcx)
	jmp	LBB0_23
LBB0_13:
	movl	-108(%rbp), %eax
	shll	$8, %eax
	addl	-112(%rbp), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 112(%rcx)
	movl	-100(%rbp), %eax
	shll	$8, %eax
	addl	-104(%rbp), %eax
	movl	%eax, 116(%rcx)
	movl	-92(%rbp), %eax
	shll	$8, %eax
	addl	-96(%rbp), %eax
	movl	%eax, 120(%rcx)
	jmp	LBB0_23
LBB0_18:
	movaps	-112(%rbp), %xmm0
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movups	%xmm0, 12(%rdi)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, 28(%rdi)
	jmp	LBB0_9
LBB0_16:
	movl	-112(%rbp), %eax
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, 56(%rdi)
	movl	-108(%rbp), %eax
	movl	%eax, 60(%rdi)
	movl	-104(%rbp), %eax
	movl	%eax, 64(%rdi)
	jmp	LBB0_9
LBB0_17:
	movl	-112(%rbp), %eax
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, 44(%rdi)
	movl	-108(%rbp), %eax
	movl	%eax, 48(%rdi)
	movl	-104(%rbp), %eax
	movl	%eax, 52(%rdi)
	jmp	LBB0_9
LBB0_14:
	movaps	-112(%rbp), %xmm0
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movups	%xmm0, 80(%rax)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, 96(%rax)
	jmp	LBB0_23
LBB0_12:
	movaps	-112(%rbp), %xmm0
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movups	%xmm0, 124(%rax)
	jmp	LBB0_23
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x - failed, retval=%d\n"

	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ## @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_do_command
.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, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	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]
	stur	x8, [x29, #-56]
	sub	w8, w1, #128
	cmp	w8, #8
	b.hi	LBB0_6
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #396
	tst	w8, w9
	b.ne	LBB0_4
; %bb.2:
	tst	w8, #0x70
	b.eq	LBB0_5
; %bb.3:
	add	x0, x19, #140
	bl	_mutex_lock
LBB0_4:
	mov	w8, #8
	b	LBB0_7
LBB0_5:
	mov	w8, #4
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	asr	w9, w21, #8
	and	w10, w21, #0xff
	stp	w9, w10, [sp, #40]
	stp	w24, w23, [sp, #48]
	stp	w22, w20, [sp, #56]
	stp	w8, wzr, [sp, #64]
	ldr	x8, [x19, #152]
	ldr	x8, [x8]
	ldr	w0, [x19, #144]
	add	x1, sp, #40
	mov	x2, sp
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_DBG
	sub	w8, w21, #132
	cmp	w8, #2
	b.hi	LBB0_10
LBB0_9:
	add	x0, x19, #140
	bl	_mutex_unlock
LBB0_10:
	ldur	x8, [x29, #-56]
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_25
; %bb.11:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	sub	w8, w21, #129
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.13:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.15:
	ldr	w8, [sp, #4]
	ubfx	w9, w8, #1, #1
	eor	w9, w9, #0x1
	str	w9, [x19]
	tbnz	w8, #1, LBB0_17
; %bb.16:
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_17:
	ldr	w8, [sp, #8]
	mov	w9, #1
	bic	w8, w9, w8, lsr #6
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_18:
	ldr	d0, [sp]
	stur	d0, [x19, #68]
	ldp	w8, w9, [sp, #8]
	add	w8, w8, w9, lsl #8
	str	w8, [x19, #76]
	b	LBB0_10
LBB0_19:
	ldp	w8, w9, [sp]
	add	w8, w8, w9, lsl #8
	ldp	w9, w10, [sp, #8]
	add	w9, w9, w10, lsl #8
	stp	w8, w9, [x19, #112]
	ldp	w8, w9, [sp, #16]
	add	w8, w8, w9, lsl #8
	str	w8, [x19, #120]
	b	LBB0_10
LBB0_20:
	ldp	q0, q1, [sp]
	stur	q0, [x19, #12]
	stur	q1, [x19, #28]
	b	LBB0_9
LBB0_21:
	ldr	d0, [sp]
	str	d0, [x19, #56]
	ldr	w8, [sp, #8]
	str	w8, [x19, #64]
	b	LBB0_9
LBB0_22:
	ldr	d0, [sp]
	stur	d0, [x19, #44]
	ldr	w8, [sp, #8]
	str	w8, [x19, #52]
	b	LBB0_9
LBB0_23:
	ldp	q0, q1, [sp]
	stp	q0, q1, [x19, #80]
	b	LBB0_10
LBB0_24:
	ldr	q0, [sp]
	stur	q0, [x19, #124]
	b	LBB0_10
LBB0_25:
	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_14-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_19-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x - failed, retval=%d\n"

	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ; @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_do_command
.subsections_via_symbols
