	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_led_groups_alloc_and_register_one
_wacom_led_groups_alloc_and_register_one: ## @wacom_led_groups_alloc_and_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	%r8d, -56(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	cmpl	%edx, (%rsi)
	jle	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	movl	%ecx, %r14d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %r13
	movq	8(%r12), %rsi
	addq	%r13, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_devres_open_group
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, 16(%rax,%rcx,8)
	movl	%r14d, (%rax,%rcx,8)
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_wacom_led_register_one
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	addq	$4, %r15
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%rbx, %r12
	movq	%r13, %rbx
	jne	LBB0_10
## %bb.14:
	movq	8(%r12), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r14
	movq	%rbx, 8(%rsi,%r14)
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_devres_close_group
	movq	16(%r12), %rdi
	movq	_wacom_led_groups_release_one@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	8(%r12), %r14
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_add_action_or_reset       ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_7:
	movq	%rbx, %r13
	movq	%r12, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r12d
LBB0_12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_devres_release_group
LBB0_13:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wacom_led_groups_release_one,4,2 ## @wacom_led_groups_release_one
	.no_dead_strip	_wacom_led_groups_alloc_and_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_groups_alloc_and_register_one
_wacom_led_groups_alloc_and_register_one: ; @wacom_led_groups_alloc_and_register_one
	.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
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x2
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, w2
	b.le	LBB0_8
; %bb.2:
	mov	x21, x4
	mov	x23, x3
	mov	x20, x0
	ldr	x8, [x19, #8]
	mov	w9, #24
	smaddl	x1, w22, w9, x8
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_devres_open_group
	cbz	w0, LBB0_9
; %bb.3:
	sxtw	x26, w22
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x24, x0
	mov	x25, #0
	ldr	x8, [x19, #8]
	mov	w9, #24
	madd	x8, x26, x9, x8
	str	x0, [x8, #16]
	str	w23, [x8]
	mov	w27, w23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	mov	x4, x25
	mov	x5, x21
	bl	_wacom_led_register_one
	cbnz	w0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x24, x24, #4
	cmp	x27, x25
	b.ne	LBB0_5
; %bb.7:
	ldr	x8, [x19, #8]
	add	x9, x26, x26, lsl #1
	lsl	x21, x9, #3
	add	x1, x8, x21
	str	x20, [x1, #8]
	mov	x0, x20
	bl	_devres_close_group
Lloh2:
	adrp	x8, _wacom_led_groups_release_one@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wacom_led_groups_release_one@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	x8, x0, [x19, #8]
	add	x2, x8, x21
	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
	b	_devm_add_action_or_reset
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_11:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_12:
	mov	x23, x0
LBB0_13:
	ldr	x8, [x19, #8]
	mov	w9, #24
	madd	x1, x26, x9, x8
	mov	x0, x20
	bl	_devres_release_group
LBB0_14:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wacom_led_groups_release_one,4,2 ; @wacom_led_groups_release_one
	.no_dead_strip	_wacom_led_groups_alloc_and_register_one
.subsections_via_symbols
