	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt6323_led_remove
_mt6323_led_remove:                     ## @mt6323_led_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_mt6323_led_hw_off
	movq	16(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_3:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_MT6323_TOP_CKPDN0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT6323_RG_DRV_32K_CK_PDN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT6323_RG_DRV_32K_CK_PDN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	movq	%r14, %rdi
	callq	_mutex_destroy
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT6323_TOP_CKPDN0,4,2          ## @MT6323_TOP_CKPDN0
	.comm	_MT6323_RG_DRV_32K_CK_PDN_MASK,4,2 ## @MT6323_RG_DRV_32K_CK_PDN_MASK
	.comm	_MT6323_RG_DRV_32K_CK_PDN,4,2   ## @MT6323_RG_DRV_32K_CK_PDN
	.no_dead_strip	_mt6323_led_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt6323_led_remove
_mt6323_led_remove:                     ; @mt6323_led_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	w20, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_mt6323_led_hw_off
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20]
	add	x20, x20, #8
	cbnz	x0, LBB0_2
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _MT6323_TOP_CKPDN0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT6323_TOP_CKPDN0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MT6323_RG_DRV_32K_CK_PDN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT6323_RG_DRV_32K_CK_PDN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MT6323_RG_DRV_32K_CK_PDN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT6323_RG_DRV_32K_CK_PDN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	mov	x0, x19
	bl	_mutex_destroy
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT6323_TOP_CKPDN0,4,2          ; @MT6323_TOP_CKPDN0
	.comm	_MT6323_RG_DRV_32K_CK_PDN_MASK,4,2 ; @MT6323_RG_DRV_32K_CK_PDN_MASK
	.comm	_MT6323_RG_DRV_32K_CK_PDN,4,2   ; @MT6323_RG_DRV_32K_CK_PDN
	.no_dead_strip	_mt6323_led_remove
.subsections_via_symbols
