	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apu_led_config
_apu_led_config:                        ## @apu_led_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_apu1_led_profile@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$40, %edx
	callq	_devm_kcalloc
	movq	_apu_led@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.1:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rax
	movl	8(%rax,%r14), %ecx
	movl	%ecx, 24(%rbx,%r13)
	movl	(%rax,%r14), %eax
	movl	%eax, 20(%rbx,%r13)
	movl	$1, (%rbx,%r13)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx,%r13)
	movq	_apu1_led_brightness_set@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx,%r13)
	movq	(%r15), %rax
	movl	4(%rax,%r14), %esi
	movq	_APU1_IOSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devm_ioremap
	movl	%eax, 32(%rbx,%r13)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_apu1_led_profile@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax,%r14), %esi
	movq	%rbx, %rdi
	callq	_apu1_led_brightness_set
	incq	%r12
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$40, %r13
	addq	$12, %r14
	cmpq	%rax, %r12
	movq	_apu_led@GOTPCREL(%rip), %rbx
	jl	LBB0_3
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r15d
LBB0_7:
	movq	_apu_led@GOTPCREL(%rip), %rbx
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.8:
	addq	$-40, %r13
	incq	%r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_led_classdev_unregister
	decq	%r12
	addq	$-40, %r13
	cmpq	$1, %r12
	ja	LBB0_9
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_apu1_led_profile,8,3           ## @apu1_led_profile
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_apu_led,8,3                    ## @apu_led
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.comm	_APU1_IOSIZE,4,2                ## @APU1_IOSIZE
	.no_dead_strip	_apu_led_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apu_led_config
_apu_led_config:                        ; @apu_led_config
	.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	x19, x0
Lloh0:
	adrp	x24, _apu1_led_profile@GOTPAGE
Lloh1:
	ldr	x24, [x24, _apu1_led_profile@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #40
	bl	_devm_kcalloc
Lloh5:
	adrp	x22, _apu_led@GOTPAGE
Lloh6:
	ldr	x22, [x22, _apu_led@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x26, #0
	mov	x25, #0
	mov	x23, #-40
Lloh7:
	adrp	x27, _apu1_led_brightness_set@GOTPAGE
Lloh8:
	ldr	x27, [x27, _apu1_led_brightness_set@GOTPAGEOFF]
Lloh9:
	adrp	x28, _APU1_IOSIZE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _APU1_IOSIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x21, x8, x23
	mov	w8, #1
	str	w8, [x21, #40]!
	ldr	x8, [x24]
	add	x8, x8, x26
	ldr	w9, [x8, #8]
	ldr	w8, [x8]
	stp	w8, w9, [x21, #20]
Lloh11:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x27, [x21, #8]
	ldr	x8, [x24]
	add	x8, x8, x26
	ldr	w1, [x8, #4]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_devm_ioremap
	str	w0, [x21, #32]
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_led_classdev_register
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x26]
	mov	x0, x21
	bl	_apu1_led_brightness_set
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x23, x23, #40
	add	x26, x26, #12
	cmp	x25, w0, sxtw
	b.lt	LBB0_3
LBB0_6:
	mov	w20, #0
	b	LBB0_12
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w25, LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x20, x0
	cbz	w25, LBB0_12
LBB0_10:
	add	x19, x25, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x0, x8, x23
	bl	_led_classdev_unregister
	sub	x19, x19, #1
	sub	x23, x23, #40
	cmp	x19, #1
	b.hi	LBB0_11
LBB0_12:
	mov	x0, x20
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_apu1_led_profile,8,3           ; @apu1_led_profile
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_apu_led,8,3                    ; @apu_led
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.comm	_APU1_IOSIZE,4,2                ; @APU1_IOSIZE
	.no_dead_strip	_apu_led_config
.subsections_via_symbols
