	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blinkm_led_common_set
_blinkm_led_common_set:                 ## @blinkm_led_common_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	callq	_cdev_to_blmled
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	cmpl	$130, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_12
## %bb.3:
	movl	%r15d, %eax
	cmpq	%rax, (%r12)
	je	LBB0_10
## %bb.4:
	movq	%rax, (%r12)
	jmp	LBB0_9
LBB0_7:
	movl	%r15d, %eax
	cmpq	%rax, 16(%r12)
	je	LBB0_10
## %bb.8:
	movq	%rax, 16(%r12)
	jmp	LBB0_9
LBB0_5:
	movl	%r15d, %eax
	cmpq	%rax, 8(%r12)
	je	LBB0_10
## %bb.6:
	movq	%rax, 8(%r12)
LBB0_9:
	movq	(%r14), %rdi
	movq	_BLM_GO_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_blinkm_transfer_hw
	movq	(%r14), %rdi
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	movq	16(%r12), %r8
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BlinkM: unknown color.\n"

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

	.no_dead_strip	_blinkm_led_common_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blinkm_led_common_set
_blinkm_led_common_set:                 ; @blinkm_led_common_set
	.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	x22, x2
	mov	x21, x1
	bl	_cdev_to_blmled
	mov	x19, x0
	ldr	x0, [x0]
	bl	_i2c_get_clientdata
	mov	x20, x0
	cmp	w22, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_11
; %bb.3:
	ldr	x9, [x20]
	mov	w8, w21
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.4:
	str	x8, [x20]
	b	LBB0_9
LBB0_5:
	ldr	x9, [x20, #16]
	mov	w8, w21
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.6:
	str	x8, [x20, #16]
	b	LBB0_9
LBB0_7:
	ldr	x9, [x20, #8]
	mov	w8, w21
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.8:
	str	x8, [x20, #8]
LBB0_9:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _BLM_GO_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLM_GO_RGB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_blinkm_transfer_hw
	ldr	x0, [x19]
	ldp	x2, x3, [x20]
	ldr	x4, [x20, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BlinkM: unknown color.\n"

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

	.no_dead_strip	_blinkm_led_common_set
.subsections_via_symbols
