	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_setlights
_command_setlights:                     ## @command_setlights
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	_CPIA_COMMAND_WriteVCReg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$144, %edx
	movl	$143, %ecx
	movl	$80, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	testq	%r15, %r15
	sete	%al
	shll	$3, %eax
	xorl	%ecx, %ecx
	testq	%r14, %r14
	sete	%cl
	movq	_CPIA_COMMAND_WriteMCPort@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leal	(%rax,%rcx,2), %r8d
	addl	$224, %r8d
	movq	%rbx, %rdi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_command                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_WriteVCReg,4,2    ## @CPIA_COMMAND_WriteVCReg
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ## @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_command_setlights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_setlights
_command_setlights:                     ; @command_setlights
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldp	x20, x21, [x0]
Lloh0:
	adrp	x8, _CPIA_COMMAND_WriteVCReg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPIA_COMMAND_WriteVCReg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #144
	mov	w3, #143
	mov	w4, #80
	mov	w5, #0
	bl	_do_command
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	x21, #0
	cset	w8, eq
Lloh3:
	adrp	x9, _CPIA_COMMAND_WriteMCPort@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPIA_COMMAND_WriteMCPort@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	cmp	x20, #0
	mov	w9, #224
	mov	w10, #226
	csel	w4, w10, w9, eq
	bfi	w4, w8, #3, #1
	mov	x0, x19
	mov	w2, #2
	mov	w3, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_command
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_WriteVCReg,4,2    ; @CPIA_COMMAND_WriteVCReg
	.comm	_CPIA_COMMAND_WriteMCPort,4,2   ; @CPIA_COMMAND_WriteMCPort
	.no_dead_strip	_command_setlights
.subsections_via_symbols
