	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mute_led_init
_mute_led_init:                         ## @mute_led_init
	.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	_TPACPI_LED_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	subq	%rax, %rcx
	movq	%rcx, (%r15,%r12,4)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_led_tables@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15,%r12,4), %esi
	movq	%r14, %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_ledtrig_audio_get
	movq	_mute_led_cdev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, (%rsi,%r12)
	addq	%r12, %rsi
	movq	_tpacpi_pdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	jns	LBB0_4
## %bb.7:
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.8:
	addq	$-4, %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$-4, %r12
	cmpq	$-4, %r12
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_led_tables@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r12,4)
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_mute_led_cdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_11
LBB0_5:
	xorl	%r15d, %r15d
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	_TPACPI_LED_MAX,4,2             ## @TPACPI_LED_MAX
	.comm	_led_tables,8,3                 ## @led_tables
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_mute_led_cdev,8,3              ## @mute_led_cdev
	.comm	_tpacpi_pdev,8,3                ## @tpacpi_pdev
	.no_dead_strip	_mute_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mute_led_init
_mute_led_init:                         ; @mute_led_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x24, _TPACPI_LED_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TPACPI_LED_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
	mov	x25, #0
	mov	x19, #0
Lloh2:
	adrp	x21, _led_tables@GOTPAGE
Lloh3:
	ldr	x21, [x21, _led_tables@GOTPAGEOFF]
Lloh4:
	adrp	x26, _hkey_handle@GOTPAGE
Lloh5:
	ldr	x26, [x26, _hkey_handle@GOTPAGEOFF]
Lloh6:
	adrp	x22, _mute_led_cdev@GOTPAGE
Lloh7:
	ldr	x22, [x22, _mute_led_cdev@GOTPAGEOFF]
Lloh8:
	adrp	x27, _tpacpi_pdev@GOTPAGE
Lloh9:
	ldr	x27, [x27, _tpacpi_pdev@GOTPAGEOFF]
Lloh10:
	adrp	x28, _ENODEV@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	neg	x8, x8
	str	x8, [x20, x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	add	x23, x23, #16
	cmp	x19, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x21]
	ldr	w0, [x26]
	add	x8, x20, x23
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ledtrig_audio_get
	ldr	x8, [x22]
	add	x1, x8, x25
	str	w0, [x1]
	ldr	x0, [x27]
	bl	_led_classdev_register
	tbz	w0, #31, LBB0_3
; %bb.6:
	mov	x20, x0
	cbz	w19, LBB0_12
; %bb.7:
	sub	x19, x25, #4
	sub	x23, x23, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	x23, x23, #16
	sub	x19, x19, #4
	cmn	x23, #16
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x23]
	tbnz	x8, #63, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	add	x0, x8, x19
	bl	_led_classdev_unregister
	b	LBB0_8
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TPACPI_LED_MAX,4,2             ; @TPACPI_LED_MAX
	.comm	_led_tables,8,3                 ; @led_tables
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_mute_led_cdev,8,3              ; @mute_led_cdev
	.comm	_tpacpi_pdev,8,3                ; @tpacpi_pdev
	.no_dead_strip	_mute_led_init
.subsections_via_symbols
