	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rackmeter_setup_i2s
_rackmeter_setup_i2s:                   ## @rackmeter_setup_i2s
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PMAC_FTR_WRITE_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RACKMETER_MAGIC_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$5, %ecx
	callq	_pmac_call_feature
	movq	_PMAC_FTR_SOUND_CHIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_pmac_call_feature
	movq	_KEYLARGO_FCR1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_KL1_I2S0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MACIO_BIS
	movl	(%r14), %edi
	movq	_KL1_I2S0_CLK_ENABLE_BIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_MACIO_BIC
	movl	(%r14), %edi
	callq	_MACIO_IN32
	movl	$10, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movl	$33161216, %esi                 ## imm = 0x1FA0000
	callq	_out_le32
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_in_le32
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %edi
	movq	_KL1_I2S0_CELL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	callq	_MACIO_BIS
	movl	(%r14), %edi
	callq	_MACIO_IN32
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMAC_FTR_WRITE_GPIO,4,2        ## @PMAC_FTR_WRITE_GPIO
	.comm	_RACKMETER_MAGIC_GPIO,4,2       ## @RACKMETER_MAGIC_GPIO
	.comm	_PMAC_FTR_SOUND_CHIP_ENABLE,4,2 ## @PMAC_FTR_SOUND_CHIP_ENABLE
	.comm	_KEYLARGO_FCR1,4,2              ## @KEYLARGO_FCR1
	.comm	_KL1_I2S0_ENABLE,4,2            ## @KL1_I2S0_ENABLE
	.comm	_KL1_I2S0_CLK_ENABLE_BIT,4,2    ## @KL1_I2S0_CLK_ENABLE_BIT
	.comm	_KL1_I2S0_CELL_ENABLE,4,2       ## @KL1_I2S0_CELL_ENABLE
	.no_dead_strip	_rackmeter_setup_i2s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rackmeter_setup_i2s
_rackmeter_setup_i2s:                   ; @rackmeter_setup_i2s
	.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
Lloh0:
	adrp	x8, _PMAC_FTR_WRITE_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMAC_FTR_WRITE_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RACKMETER_MAGIC_GPIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RACKMETER_MAGIC_GPIO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #5
	bl	_pmac_call_feature
Lloh6:
	adrp	x8, _PMAC_FTR_SOUND_CHIP_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMAC_FTR_SOUND_CHIP_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	mov	w2, #0
	mov	w3, #1
	bl	_pmac_call_feature
Lloh9:
	adrp	x20, _KEYLARGO_FCR1@GOTPAGE
Lloh10:
	ldr	x20, [x20, _KEYLARGO_FCR1@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _KL1_I2S0_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KL1_I2S0_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_MACIO_BIS
	ldr	w0, [x20]
Lloh14:
	adrp	x21, _KL1_I2S0_CLK_ENABLE_BIT@GOTPAGE
Lloh15:
	ldr	x21, [x21, _KL1_I2S0_CLK_ENABLE_BIT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_MACIO_BIC
	ldr	w0, [x20]
	bl	_MACIO_IN32
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
	add	x0, x8, #16
	mov	w1, #33161216
	bl	_out_le32
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_in_le32
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _KL1_I2S0_CELL_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KL1_I2S0_CELL_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w1, w9, w8
	bl	_MACIO_BIS
	ldr	w0, [x20]
	bl	_MACIO_IN32
	mov	w0, #10
	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	_udelay
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PMAC_FTR_WRITE_GPIO,4,2        ; @PMAC_FTR_WRITE_GPIO
	.comm	_RACKMETER_MAGIC_GPIO,4,2       ; @RACKMETER_MAGIC_GPIO
	.comm	_PMAC_FTR_SOUND_CHIP_ENABLE,4,2 ; @PMAC_FTR_SOUND_CHIP_ENABLE
	.comm	_KEYLARGO_FCR1,4,2              ; @KEYLARGO_FCR1
	.comm	_KL1_I2S0_ENABLE,4,2            ; @KL1_I2S0_ENABLE
	.comm	_KL1_I2S0_CLK_ENABLE_BIT,4,2    ; @KL1_I2S0_CLK_ENABLE_BIT
	.comm	_KL1_I2S0_CELL_ENABLE,4,2       ; @KL1_I2S0_CELL_ENABLE
	.no_dead_strip	_rackmeter_setup_i2s
.subsections_via_symbols
