	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_initialize_leds
_wacom_initialize_leds:                 ## @wacom_initialize_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	xorl	%r14d, %r14d
	cmpl	$6, %eax
	ja	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cltq
	leaq	l_switch.table.wacom_initialize_leds(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.wacom_initialize_leds.1(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
	leaq	l_switch.table.wacom_initialize_leds.2(%rip), %rsi
	movl	(%rsi,%rax,4), %edi
	leaq	l_switch.table.wacom_initialize_leds.3(%rip), %rsi
	movq	(%rsi,%rax,8), %rsi
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	movl	%ecx, 8(%rbx)
	movl	%edx, 12(%rbx)
	movl	%edi, 16(%rbx)
	movq	(%rbx), %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_wacom_led_control
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intuos4_led_attr_group,4,2     ## @intuos4_led_attr_group
	.comm	_cintiq_led_attr_group,4,2      ## @cintiq_led_attr_group
	.comm	_intuos5_led_attr_group,4,2     ## @intuos5_led_attr_group
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create sysfs group err: %d\n"

	.no_dead_strip	_wacom_initialize_leds
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wacom_initialize_leds
l_switch.table.wacom_initialize_leds:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	10                              ## 0xa
	.long	10                              ## 0xa

	.p2align	2                               ## @switch.table.wacom_initialize_leds.1
l_switch.table.wacom_initialize_leds.1:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	20                              ## 0x14
	.long	20                              ## 0x14

	.p2align	2                               ## @switch.table.wacom_initialize_leds.2
l_switch.table.wacom_initialize_leds.2:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	10                              ## 0xa
	.long	10                              ## 0xa

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wacom_initialize_leds.3
l_switch.table.wacom_initialize_leds.3:
	.quad	_cintiq_led_attr_group
	.quad	_cintiq_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos4_led_attr_group
	.quad	_intuos4_led_attr_group

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_initialize_leds
_wacom_initialize_leds:                 ; @wacom_initialize_leds
	.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
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	sbfiz	x9, x8, #2, #32
Lloh0:
	adrp	x10, l_switch.table.wacom_initialize_leds@PAGE
Lloh1:
	add	x10, x10, l_switch.table.wacom_initialize_leds@PAGEOFF
	ldr	w10, [x10, x9]
Lloh2:
	adrp	x11, l_switch.table.wacom_initialize_leds.1@PAGE
Lloh3:
	add	x11, x11, l_switch.table.wacom_initialize_leds.1@PAGEOFF
	ldr	w11, [x11, x9]
Lloh4:
	adrp	x12, l_switch.table.wacom_initialize_leds.2@PAGE
Lloh5:
	add	x12, x12, l_switch.table.wacom_initialize_leds.2@PAGEOFF
	ldr	w9, [x12, x9]
Lloh6:
	adrp	x12, l_switch.table.wacom_initialize_leds.3@PAGE
Lloh7:
	add	x12, x12, l_switch.table.wacom_initialize_leds.3@PAGEOFF
	ldr	x1, [x12, w8, sxtw #3]
	ldr	x8, [x0, #24]
	str	xzr, [x8]
	stp	w10, w11, [x0, #8]
	str	w9, [x0, #16]
	ldr	x0, [x0]
	bl	_sysfs_create_group
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_wacom_led_control
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_intuos4_led_attr_group,4,2     ; @intuos4_led_attr_group
	.comm	_cintiq_led_attr_group,4,2      ; @cintiq_led_attr_group
	.comm	_intuos5_led_attr_group,4,2     ; @intuos5_led_attr_group
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create sysfs group err: %d\n"

	.no_dead_strip	_wacom_initialize_leds
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wacom_initialize_leds
l_switch.table.wacom_initialize_leds:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	10                              ; 0xa
	.long	10                              ; 0xa

	.p2align	2                               ; @switch.table.wacom_initialize_leds.1
l_switch.table.wacom_initialize_leds.1:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	20                              ; 0x14
	.long	20                              ; 0x14

	.p2align	2                               ; @switch.table.wacom_initialize_leds.2
l_switch.table.wacom_initialize_leds.2:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	10                              ; 0xa
	.long	10                              ; 0xa

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wacom_initialize_leds.3
l_switch.table.wacom_initialize_leds.3:
	.quad	_cintiq_led_attr_group
	.quad	_cintiq_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos5_led_attr_group
	.quad	_intuos4_led_attr_group
	.quad	_intuos4_led_attr_group

.subsections_via_symbols
