	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_hw_init
_alcor_hw_init:                         ## @alcor_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %r15
	movq	_AU6601_RESET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alcor_reset
	movq	_AU6601_DMA_BOUNDARY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_SD_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AU6601_ACTIVE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_alcor_write8
	movq	_AU6601_REG_BUS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_RESET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_alcor_reset
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_INTERFACE_MODE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_PAD_DRIVE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$68, %esi
	callq	_alcor_write8
	movq	_AU6601_PAD_DRIVE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$68, %esi
	callq	_alcor_write8
	movq	_AU6601_PAD_DRIVE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_alcor_write8
	movq	_AU6601_OUTPUT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_alcor_write8
	movq	_AU6601_DETECT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AU6601_DETECT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_alcor_write8
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alcor_unmask_sd_irqs           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_RESET_CMD,4,2           ## @AU6601_RESET_CMD
	.comm	_AU6601_DMA_BOUNDARY,4,2        ## @AU6601_DMA_BOUNDARY
	.comm	_AU6601_SD_CARD,4,2             ## @AU6601_SD_CARD
	.comm	_AU6601_ACTIVE_CTRL,4,2         ## @AU6601_ACTIVE_CTRL
	.comm	_AU6601_REG_BUS_CTRL,4,2        ## @AU6601_REG_BUS_CTRL
	.comm	_AU6601_RESET_DATA,4,2          ## @AU6601_RESET_DATA
	.comm	_AU6601_INTERFACE_MODE_CTRL,4,2 ## @AU6601_INTERFACE_MODE_CTRL
	.comm	_AU6601_PAD_DRIVE0,4,2          ## @AU6601_PAD_DRIVE0
	.comm	_AU6601_PAD_DRIVE1,4,2          ## @AU6601_PAD_DRIVE1
	.comm	_AU6601_PAD_DRIVE2,4,2          ## @AU6601_PAD_DRIVE2
	.comm	_AU6601_OUTPUT_ENABLE,4,2       ## @AU6601_OUTPUT_ENABLE
	.comm	_AU6601_POWER_CONTROL,4,2       ## @AU6601_POWER_CONTROL
	.comm	_AU6601_DETECT_EN,4,2           ## @AU6601_DETECT_EN
	.comm	_AU6601_DETECT_STATUS,4,2       ## @AU6601_DETECT_STATUS
	.no_dead_strip	_alcor_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_hw_init
_alcor_hw_init:                         ; @alcor_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _AU6601_RESET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU6601_RESET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_alcor_reset
Lloh3:
	adrp	x22, _AU6601_DMA_BOUNDARY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AU6601_DMA_BOUNDARY@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh5:
	adrp	x8, _AU6601_SD_CARD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AU6601_SD_CARD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AU6601_ACTIVE_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AU6601_ACTIVE_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_alcor_write8
Lloh11:
	adrp	x8, _AU6601_REG_BUS_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AU6601_REG_BUS_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh14:
	adrp	x8, _AU6601_RESET_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AU6601_RESET_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_alcor_reset
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh17:
	adrp	x8, _AU6601_INTERFACE_MODE_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AU6601_INTERFACE_MODE_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh20:
	adrp	x8, _AU6601_PAD_DRIVE0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AU6601_PAD_DRIVE0@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #68
	bl	_alcor_write8
Lloh23:
	adrp	x8, _AU6601_PAD_DRIVE1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AU6601_PAD_DRIVE1@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #68
	bl	_alcor_write8
Lloh26:
	adrp	x8, _AU6601_PAD_DRIVE2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AU6601_PAD_DRIVE2@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_alcor_write8
Lloh29:
	adrp	x8, _AU6601_OUTPUT_ENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AU6601_OUTPUT_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh32:
	adrp	x8, _AU6601_POWER_CONTROL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AU6601_POWER_CONTROL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_alcor_write8
Lloh35:
	adrp	x8, _AU6601_DETECT_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AU6601_DETECT_EN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _AU6601_DETECT_STATUS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AU6601_DETECT_STATUS@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_alcor_write8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_alcor_unmask_sd_irqs
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_RESET_CMD,4,2           ; @AU6601_RESET_CMD
	.comm	_AU6601_DMA_BOUNDARY,4,2        ; @AU6601_DMA_BOUNDARY
	.comm	_AU6601_SD_CARD,4,2             ; @AU6601_SD_CARD
	.comm	_AU6601_ACTIVE_CTRL,4,2         ; @AU6601_ACTIVE_CTRL
	.comm	_AU6601_REG_BUS_CTRL,4,2        ; @AU6601_REG_BUS_CTRL
	.comm	_AU6601_RESET_DATA,4,2          ; @AU6601_RESET_DATA
	.comm	_AU6601_INTERFACE_MODE_CTRL,4,2 ; @AU6601_INTERFACE_MODE_CTRL
	.comm	_AU6601_PAD_DRIVE0,4,2          ; @AU6601_PAD_DRIVE0
	.comm	_AU6601_PAD_DRIVE1,4,2          ; @AU6601_PAD_DRIVE1
	.comm	_AU6601_PAD_DRIVE2,4,2          ; @AU6601_PAD_DRIVE2
	.comm	_AU6601_OUTPUT_ENABLE,4,2       ; @AU6601_OUTPUT_ENABLE
	.comm	_AU6601_POWER_CONTROL,4,2       ; @AU6601_POWER_CONTROL
	.comm	_AU6601_DETECT_EN,4,2           ; @AU6601_DETECT_EN
	.comm	_AU6601_DETECT_STATUS,4,2       ; @AU6601_DETECT_STATUS
	.no_dead_strip	_alcor_hw_init
.subsections_via_symbols
