	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_setcolourbalance
_command_setcolourbalance:              ## @command_setcolourbalance
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$3, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.3:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	12(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_do_command
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	(%r14), %esi
	jmp	LBB0_5
LBB0_8:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	movq	%rbx, %rdi
	movl	$3, %edx
	jmp	LBB0_6
LBB0_7:
	movq	_CPIA_COMMAND_SetColourBalance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
LBB0_6:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_do_command                     ## TAILCALL
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPIA_COMMAND_SetColourBalance,4,2 ## @CPIA_COMMAND_SetColourBalance
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_command_setcolourbalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_setcolourbalance
_command_setcolourbalance:              ; @command_setcolourbalance
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x20, _CPIA_COMMAND_SetColourBalance@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CPIA_COMMAND_SetColourBalance@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	w4, w3, [x19, #8]
	ldr	w5, [x19, #4]
	mov	x0, x19
	mov	w2, #1
	bl	_do_command
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w1, [x20]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _CPIA_COMMAND_SetColourBalance@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPIA_COMMAND_SetColourBalance@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
LBB0_6:
	mov	x0, x19
	mov	w2, #3
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _CPIA_COMMAND_SetColourBalance@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CPIA_COMMAND_SetColourBalance@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
LBB0_8:
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_command
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CPIA_COMMAND_SetColourBalance,4,2 ; @CPIA_COMMAND_SetColourBalance
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_command_setcolourbalance
.subsections_via_symbols
