	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sgio2audio_free
_snd_sgio2audio_free:                   ## @snd_sgio2audio_free
	.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	_AUDIO_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mace@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_writeq
	movl	$1, %edi
	callq	_udelay
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writeq
	movq	_snd_sgio2_isr_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edi
	movq	-8(%rax,%rbx), %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	callq	_free_irq
	incq	%r12
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	movq	_MACEISA_RINGBUFFERS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	xorl	%edi, %edi
	callq	_dma_free_coherent
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_CONTROL_RESET,4,2        ## @AUDIO_CONTROL_RESET
	.comm	_mace,8,3                       ## @mace
	.comm	_snd_sgio2_isr_table,8,3        ## @snd_sgio2_isr_table
	.comm	_MACEISA_RINGBUFFERS_SIZE,4,2   ## @MACEISA_RINGBUFFERS_SIZE
	.no_dead_strip	_snd_sgio2audio_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_sgio2audio_free
_snd_sgio2audio_free:                   ; @snd_sgio2audio_free
	.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, _AUDIO_CONTROL_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_CONTROL_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _mace@GOTPAGE
Lloh4:
	ldr	x20, [x20, _mace@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_writeq
	mov	w0, #1
	bl	_udelay
	ldr	x1, [x20]
	mov	w0, #0
	bl	_writeq
Lloh5:
	adrp	x20, _snd_sgio2_isr_table@GOTPAGE
Lloh6:
	ldr	x20, [x20, _snd_sgio2_isr_table@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	ldr	x9, [x19, #8]
	ldr	x8, [x8]
	add	x1, x9, x8, lsl #2
	bl	_free_irq
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
Lloh7:
	adrp	x8, _MACEISA_RINGBUFFERS_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MACEISA_RINGBUFFERS_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w3, w2, [x19]
	mov	x0, #0
	bl	_dma_free_coherent
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_CONTROL_RESET,4,2        ; @AUDIO_CONTROL_RESET
	.comm	_mace,8,3                       ; @mace
	.comm	_snd_sgio2_isr_table,8,3        ; @snd_sgio2_isr_table
	.comm	_MACEISA_RINGBUFFERS_SIZE,4,2   ; @MACEISA_RINGBUFFERS_SIZE
	.no_dead_strip	_snd_sgio2audio_free
.subsections_via_symbols
