	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_led_register_one
_wacom_led_register_one:                ## @wacom_led_register_one
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %r9d
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_3
LBB0_5:
	leaq	8(%rbx), %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 56(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 52(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	%r13, 8(%rbx)
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_LED_HW_PLUGGABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	___wacom_led_brightness_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movq	_wacom_led_readonly_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	leaq	64(%rbx), %rsi
	movq	%r13, 64(%rbx)
	movq	%r15, %rdi
	movl	%ecx, %r14d
	callq	_devm_led_trigger_register
	movl	%r14d, %ecx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %ecx
	callq	_hid_err
	jmp	LBB0_11
LBB0_6:
	movq	_wacom_led_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r13, 16(%rbx)
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rbx
	movl	%eax, %r12d
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	callq	_hid_err
	movq	$0, (%rbx)
	jmp	LBB0_11
LBB0_9:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s::wacom-%d.%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to register LED trigger %s: %d\n"

	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_HW_PLUGGABLE,4,2           ## @LED_HW_PLUGGABLE
	.comm	___wacom_led_brightness_get,4,2 ## @__wacom_led_brightness_get
	.comm	_wacom_led_brightness_set,4,2   ## @wacom_led_brightness_set
	.comm	_wacom_led_readonly_brightness_set,4,2 ## @wacom_led_readonly_brightness_set
L_.str.2:                               ## @.str.2
	.asciz	"failed to register LED %s: %d\n"

	.no_dead_strip	_wacom_led_register_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_led_register_one
_wacom_led_register_one:                ; @wacom_led_register_one
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x26, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	bl	_dev_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x24
	mov	x4, x26
	mov	x5, x23
	bl	_devm_kasprintf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	cbz	w22, LBB0_5
LBB0_2:
	stp	w26, w23, [x20]
	str	x19, [x20, #56]
	ldur	d0, [x19, #4]
	str	d0, [x20, #48]
	mov	x23, x20
	str	x25, [x23, #8]!
Lloh5:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh8:
	adrp	x8, _LED_HW_PLUGGABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LED_HW_PLUGGABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, ___wacom_led_brightness_get@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___wacom_led_brightness_get@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	cbz	w22, LBB0_7
; %bb.3:
Lloh14:
	adrp	x8, _wacom_led_readonly_brightness_set@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wacom_led_readonly_brightness_set@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	b	LBB0_8
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_5:
	mov	x1, x20
	str	x25, [x1, #64]!
	mov	x0, x21
	bl	_devm_led_trigger_register
	cbz	w0, LBB0_2
; %bb.6:
	mov	x24, x0
	ldr	w0, [x19]
	ldr	x2, [x20, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x24
	bl	_hid_err
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x8, _wacom_led_brightness_set@GOTPAGE
Lloh23:
	ldr	x8, [x8, _wacom_led_brightness_set@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	str	x25, [x20, #16]
LBB0_8:
	mov	x0, x21
	mov	x1, x23
	bl	_devm_led_classdev_register
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x19]
	ldr	x2, [x23]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x24
	bl	_hid_err
	str	xzr, [x23]
LBB0_10:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s::wacom-%d.%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to register LED trigger %s: %d\n"

	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_HW_PLUGGABLE,4,2           ; @LED_HW_PLUGGABLE
	.comm	___wacom_led_brightness_get,4,2 ; @__wacom_led_brightness_get
	.comm	_wacom_led_brightness_set,4,2   ; @wacom_led_brightness_set
	.comm	_wacom_led_readonly_brightness_set,4,2 ; @wacom_led_readonly_brightness_set
l_.str.2:                               ; @.str.2
	.asciz	"failed to register LED %s: %d\n"

	.no_dead_strip	_wacom_led_register_one
.subsections_via_symbols
