	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_color_common
_store_color_common:                    ## @store_color_common
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtou8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$130, %r12d
	je	LBB0_6
## %bb.3:
	cmpl	$129, %r12d
	je	LBB0_8
## %bb.4:
	cmpl	$128, %r12d
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r13)
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_6:
	movq	-48(%rbp), %rax
	movq	%rax, (%r13)
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r13)
LBB0_9:
	movq	16(%r13), %rdx
	movq	(%r13), %r8
	movq	8(%r13), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_BLM_GO_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_blinkm_transfer_hw
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BlinkM: value too large!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"next_red = %d, next_green = %d, next_blue = %d\n"

	.comm	_BLM_GO_RGB,4,2                 ## @BLM_GO_RGB
L_.str.2:                               ## @.str.2
	.asciz	"BlinkM: can't set RGB\n"

	.no_dead_strip	_store_color_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_color_common
_store_color_common:                    ; @store_color_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtou8
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cmp	w22, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w22, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w22, #128
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x21, #16]
	b	LBB0_8
LBB0_5:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	b	LBB0_8
LBB0_7:
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
LBB0_8:
	ldp	x3, x2, [x21, #8]
	ldr	x4, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh4:
	adrp	x8, _BLM_GO_RGB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BLM_GO_RGB@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_blinkm_transfer_hw
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	w23, #0
	b	LBB0_13
LBB0_10:
	mov	x23, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BlinkM: value too large!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"next_red = %d, next_green = %d, next_blue = %d\n"

	.comm	_BLM_GO_RGB,4,2                 ; @BLM_GO_RGB
l_.str.2:                               ; @.str.2
	.asciz	"BlinkM: can't set RGB\n"

	.no_dead_strip	_store_color_common
.subsections_via_symbols
