	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wacom_initialize_leds
LCPI0_0:
	.long	10                              ## 0xa
	.long	127                             ## 0x7f
	.long	20                              ## 0x14
	.long	127                             ## 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wacom_initialize_leds
	.p2align	4, 0x90
_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	_WACOM_DEVICETYPE_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, 28(%rdi)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	movl	32(%rdi), %eax
	addl	$-128, %eax
	cmpl	$14, %eax
	ja	LBB0_19
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movabsq	$412316860448, %rax             ## imm = 0x6000000020
	movq	%rax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_wacom_leds_alloc_and_register
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	_intuos5_led_attr_group@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [10,127,20,127]
	movups	%xmm0, 4(%rbx)
	movl	$10, 20(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_wacom_leds_alloc_and_register
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	_intuos4_led_attr_group@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movl	$0, 4(%rbx)
	movl	$0, 12(%rbx)
	movl	$0, 20(%rbx)
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_wacom_leds_alloc_and_register
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	_cintiq_led_attr_group@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_wacom_led_groups_allocate
	jmp	LBB0_16
LBB0_14:
	movabsq	$429496729650, %rax             ## imm = 0x6400000032
	movq	%rax, 4(%rbx)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_wacom_leds_alloc_and_register
LBB0_16:
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_3:
	cmpl	$0, 24(%rbx)
	je	LBB0_19
## %bb.4:
	movabsq	$429496729700, %rax             ## imm = 0x6400000064
	movq	%rax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_wacom_leds_alloc_and_register
	testl	%eax, %eax
	je	LBB0_5
LBB0_17:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_18
LBB0_5:
	movq	_generic_led_attr_group@GOTPCREL(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	callq	_wacom_devm_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_18:
	movl	%r15d, %edx
	callq	_hid_err
	movl	%r15d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ## @WACOM_DEVICETYPE_PAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create leds err: %d\n"

	.comm	_generic_led_attr_group,4,2     ## @generic_led_attr_group
	.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
L_.str.1:                               ## @.str.1
	.asciz	"cannot create sysfs group err: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wacom_initialize_leds
lCPI0_0:
	.long	50                              ; 0x32
	.long	100                             ; 0x64
lCPI0_1:
	.long	32                              ; 0x20
	.long	96                              ; 0x60
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_2:
	.long	10                              ; 0xa
	.long	127                             ; 0x7f
	.long	20                              ; 0x14
	.long	127                             ; 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wacom_initialize_leds
	.p2align	2
_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	w8, [x0, #28]
Lloh0:
	adrp	x9, _WACOM_DEVICETYPE_PAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WACOM_DEVICETYPE_PAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #32]
	sub	w8, w8, #128
	cmp	w8, #14
	b.hi	LBB0_16
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	mov	w3, #0
	bl	_wacom_leds_alloc_and_register
	cbnz	w0, LBB0_14
; %bb.4:
Lloh7:
	adrp	x1, _intuos5_led_attr_group@GOTPAGE
Lloh8:
	ldr	x1, [x1, _intuos5_led_attr_group@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
Lloh9:
	adrp	x8, lCPI0_2@PAGE
Lloh10:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	stur	q0, [x19, #4]
	mov	w8, #10
	str	w8, [x19, #20]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	mov	w3, #0
	bl	_wacom_leds_alloc_and_register
	cbnz	w0, LBB0_14
; %bb.6:
Lloh11:
	adrp	x1, _intuos4_led_attr_group@GOTPAGE
Lloh12:
	ldr	x1, [x1, _intuos4_led_attr_group@GOTPAGEOFF]
	b	LBB0_18
LBB0_7:
	str	wzr, [x19, #4]
	str	wzr, [x19, #12]
	str	wzr, [x19, #20]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #4
	mov	w3, #0
	bl	_wacom_leds_alloc_and_register
	cbnz	w0, LBB0_14
; %bb.8:
Lloh13:
	adrp	x1, _cintiq_led_attr_group@GOTPAGE
Lloh14:
	ldr	x1, [x1, _cintiq_led_attr_group@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
	movi	d0, #0x0000ff000000ff
	stur	d0, [x19, #4]
	mov	x0, x19
	mov	w1, #5
	bl	_wacom_led_groups_allocate
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	mov	w3, #0
	bl	_wacom_leds_alloc_and_register
LBB0_11:
	mov	x20, x0
	cbnz	w0, LBB0_15
	b	LBB0_21
LBB0_12:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_16
; %bb.13:
	movi.2s	v0, #100
	stur	d0, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	mov	w3, #0
	bl	_wacom_leds_alloc_and_register
	cbz	w0, LBB0_17
LBB0_14:
	mov	x20, x0
LBB0_15:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_16:
	mov	w20, #0
	b	LBB0_21
LBB0_17:
Lloh19:
	adrp	x1, _generic_led_attr_group@GOTPAGE
Lloh20:
	ldr	x1, [x1, _generic_led_attr_group@GOTPAGEOFF]
LBB0_18:
	mov	x0, x19
	bl	_wacom_devm_sysfs_create_group
	mov	x20, x0
	cbz	w0, LBB0_21
; %bb.19:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	mov	x2, x20
	bl	_hid_err
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_WACOM_DEVICETYPE_PAD,4,2       ; @WACOM_DEVICETYPE_PAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create leds err: %d\n"

	.comm	_generic_led_attr_group,4,2     ; @generic_led_attr_group
	.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
l_.str.1:                               ; @.str.1
	.asciz	"cannot create sysfs group err: %d\n"

.subsections_via_symbols
