	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_24hd_update_leds
_wacom_24hd_update_leds:                ## @wacom_24hd_update_leds
	.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, %r15d
	movq	%rdi, %r14
	movl	%esi, %r12d
	sarl	$8, %r12d
	testl	%edx, %edx
	cmovnel	%esi, %r12d
	movl	%edx, %esi
	xorl	%edx, %edx
	callq	_wacom_led_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	addq	$4, %rbx
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_led_trigger_event
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_hid_err
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%rbx)
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_wacom_led_find
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
	addq	$4, %rbx
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_led_trigger_event
	jmp	LBB0_10
LBB0_9:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_hid_err
	jmp	LBB0_10
LBB0_8:
	movl	$0, (%rbx)
LBB0_10:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$2, %edx
	callq	_wacom_led_find
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_12
## %bb.14:
	movl	$1, (%rbx)
	addq	$4, %rbx
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_trigger_event              ## TAILCALL
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_err                        ## TAILCALL
LBB0_12:
	movl	$0, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't find LED %d in group %d\n"

	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.no_dead_strip	_wacom_24hd_update_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_24hd_update_leds
_wacom_24hd_update_leds:                ; @wacom_24hd_update_leds
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x0
	asr	w8, w1, #8
	cmp	w2, #0
	csel	w22, w8, w1, eq
	mov	x1, x2
	mov	w2, #0
	bl	_wacom_led_find
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x21], #4
Lloh0:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_led_trigger_event
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	mov	x3, x19
	bl	_hid_err
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_wacom_led_find
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	mov	w23, #1
	mov	w0, #1
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_9
; %bb.7:
	str	w23, [x21], #4
Lloh5:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_led_trigger_event
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	mov	x3, x19
	bl	_hid_err
	b	LBB0_10
LBB0_9:
	str	wzr, [x21]
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_wacom_led_find
	cbz	x0, LBB0_13
; %bb.11:
	mov	x21, x0
	mov	w0, #2
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_14
; %bb.12:
	mov	w8, #1
	str	w8, [x21], #4
Lloh10:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_led_trigger_event
LBB0_13:
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hid_err
LBB0_14:
	str	wzr, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't find LED %d in group %d\n"

	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.no_dead_strip	_wacom_24hd_update_leds
.subsections_via_symbols
