	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_led_putimage
_wacom_led_putimage:                    ## @wacom_led_putimage
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	shrl	$2, %r13d
	leal	3(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_WAC_CMD_ICON_START@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rbx)
	movb	$1, 1(%rbx)
	movl	(%r14), %edi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	_wacom_set_report
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movb	%r15b, (%rbx)
	andb	$7, %r12b
	movb	%r12b, 1(%rbx)
	movq	%rbx, %r12
	addq	$3, %r12
	movb	$0, 2(%rbx)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_wacom_set_report
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%r15d, %r14d
	movl	%r13d, %r15d
	movb	$1, 2(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_wacom_set_report
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movb	$2, 2(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,2), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_wacom_set_report
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movb	$3, 2(%rbx)
	leaq	(%r15,%r15,2), %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r15
	movl	(%rax), %edi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_wacom_set_report
	movl	%eax, %r14d
	movq	_WAC_CMD_ICON_START@GOTPCREL(%rip), %rax
	movq	%r12, %rcx
	movq	%r13, %rdx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_WAC_CMD_ICON_START@GOTPCREL(%rip), %rax
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	movq	_WAC_CMD_RETRIES@GOTPCREL(%rip), %rdx
LBB0_9:
	movb	(%rax), %al
	movb	%al, (%rbx)
	movb	$0, 1(%rbx)
	movl	(%r15), %edi
	movl	(%rcx), %esi
	movl	(%rdx), %r8d
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	_wacom_set_report
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %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
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WAC_CMD_ICON_START,1,0         ## @WAC_CMD_ICON_START
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_WAC_CMD_RETRIES,4,2            ## @WAC_CMD_RETRIES
	.no_dead_strip	_wacom_led_putimage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_led_putimage
_wacom_led_putimage:                    ; @wacom_led_putimage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x26, x2
	mov	x24, x1
	mov	x20, x0
	lsr	w23, w3, #2
	add	w21, w23, #3
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _WAC_CMD_ICON_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAC_CMD_ICON_START@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x0]
	mov	w8, #1
	strb	w8, [x0, #1]
	ldr	w0, [x20]
Lloh5:
	adrp	x28, _HID_FEATURE_REPORT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh7:
	adrp	x27, _WAC_CMD_RETRIES@GOTPAGE
Lloh8:
	ldr	x27, [x27, _WAC_CMD_RETRIES@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x2, x19
	mov	w3, #2
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_8
; %bb.2:
	strb	w26, [x19]
	and	w8, w24, #0x7
	strb	w8, [x19, #1]
	add	x24, x19, #3
	strb	wzr, [x19, #2]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w4, [x27]
	mov	x2, x19
	mov	x3, x21
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	w8, #1
	strb	w8, [x19, #2]
	add	x1, x22, x23
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w4, [x27]
	mov	x2, x19
	mov	x3, x21
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w8, #2
	strb	w8, [x19, #2]
	add	x1, x22, x23, lsl #1
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w4, [x27]
	mov	x2, x19
	mov	x3, x21
	bl	_wacom_set_report
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w8, #3
	strb	w8, [x19, #2]
	add	x8, x23, x23, lsl #1
	add	x1, x22, x8
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w4, [x27]
	mov	x2, x19
	mov	x3, x21
	bl	_wacom_set_report
LBB0_6:
	mov	x25, x0
Lloh9:
	adrp	x8, _WAC_CMD_ICON_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WAC_CMD_ICON_START@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19]
	strb	wzr, [x19, #1]
	ldr	w0, [x20]
	ldr	w1, [x28]
	ldr	w4, [x27]
	mov	x2, x19
	mov	w3, #2
	bl	_wacom_set_report
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_10
LBB0_8:
	mov	x25, x0
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WAC_CMD_ICON_START,1,0         ; @WAC_CMD_ICON_START
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_WAC_CMD_RETRIES,4,2            ; @WAC_CMD_RETRIES
	.no_dead_strip	_wacom_led_putimage
.subsections_via_symbols
