	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_hw_uninit
_alcor_hw_uninit:                       ## @alcor_hw_uninit
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_alcor_mask_sd_irqs
	movq	_AU6601_RESET_CMD@GOTPCREL(%rip), %rax
	movq	_AU6601_RESET_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_alcor_reset
	movq	_AU6601_DETECT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_alcor_write8                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_RESET_CMD,4,2           ## @AU6601_RESET_CMD
	.comm	_AU6601_RESET_DATA,4,2          ## @AU6601_RESET_DATA
	.comm	_AU6601_DETECT_STATUS,4,2       ## @AU6601_DETECT_STATUS
	.comm	_AU6601_OUTPUT_ENABLE,4,2       ## @AU6601_OUTPUT_ENABLE
	.comm	_AU6601_POWER_CONTROL,4,2       ## @AU6601_POWER_CONTROL
	.comm	_AU6601_OPT,4,2                 ## @AU6601_OPT
	.no_dead_strip	_alcor_hw_uninit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_hw_uninit
_alcor_hw_uninit:                       ; @alcor_hw_uninit
	.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
	mov	x19, x0
	ldr	x20, [x0]
	bl	_alcor_mask_sd_irqs
Lloh0:
	adrp	x8, _AU6601_RESET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU6601_RESET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AU6601_RESET_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AU6601_RESET_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_alcor_reset
Lloh6:
	adrp	x8, _AU6601_DETECT_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AU6601_DETECT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh9:
	adrp	x8, _AU6601_OUTPUT_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AU6601_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh12:
	adrp	x8, _AU6601_POWER_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AU6601_POWER_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh15:
	adrp	x8, _AU6601_OPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AU6601_OPT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_alcor_write8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_RESET_CMD,4,2           ; @AU6601_RESET_CMD
	.comm	_AU6601_RESET_DATA,4,2          ; @AU6601_RESET_DATA
	.comm	_AU6601_DETECT_STATUS,4,2       ; @AU6601_DETECT_STATUS
	.comm	_AU6601_OUTPUT_ENABLE,4,2       ; @AU6601_OUTPUT_ENABLE
	.comm	_AU6601_POWER_CONTROL,4,2       ; @AU6601_POWER_CONTROL
	.comm	_AU6601_OPT,4,2                 ; @AU6601_OPT
	.no_dead_strip	_alcor_hw_uninit
.subsections_via_symbols
