	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_shutdown_port
_pcm_shutdown_port:                     ## @pcm_shutdown_port
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_DECLARE_WAITQUEUE
	movq	_SW_INITIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	leaq	28(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_add_wait_queue
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_set_current_state
	leaq	32(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_HW_STOPPED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movl	(%r15), %edi
	callq	_set_current_state
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	(%r14), %rbx
	jne	LBB0_1
LBB0_3:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_remove_wait_queue
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_li_disable_interrupts
	leaq	8(%rbx), %rax
	movq	%rbx, %rdi
	cmpq	%r13, %rax
	je	LBB0_4
## %bb.5:
	callq	_ad1843_shutdown_dac
	jmp	LBB0_6
LBB0_4:
	callq	_ad1843_shutdown_adc
LBB0_6:
	leaq	24(%r13), %rdi
	callq	_li_shutdown_dma
	movq	16(%r13), %rdi
	callq	_vfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,8,3                    ## @current
	.comm	_SW_INITIAL,4,2                 ## @SW_INITIAL
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_HW_STOPPED,8,3                 ## @HW_STOPPED
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_pcm_shutdown_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_shutdown_port
_pcm_shutdown_port:                     ; @pcm_shutdown_port
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _wait@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _current@GOTPAGE
Lloh3:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_DECLARE_WAITQUEUE
Lloh4:
	adrp	x8, _SW_INITIAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SW_INITIAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	add	x22, x19, #28
	mov	x0, x22
	mov	x1, x23
	bl	_add_wait_queue
Lloh7:
	adrp	x25, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_set_current_state
	add	x23, x19, #32
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x27, [x19]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x26, _HW_STOPPED@GOTPAGE
Lloh10:
	ldr	x26, [x26, _HW_STOPPED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x27, x8
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_schedule
	ldr	w0, [x25]
	bl	_set_current_state
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x27, [x19]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_1
LBB0_3:
Lloh11:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x24]
	str	w8, [x9]
Lloh14:
	adrp	x1, _wait@GOTPAGE
Lloh15:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x22
	bl	_remove_wait_queue
	mov	x0, x20
	mov	x1, x21
	bl	_li_disable_interrupts
	add	x8, x20, #8
	mov	x0, x20
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.4:
	bl	_ad1843_shutdown_dac
	b	LBB0_6
LBB0_5:
	bl	_ad1843_shutdown_adc
LBB0_6:
	add	x0, x19, #24
	bl	_li_shutdown_dma
	ldr	x0, [x19, #16]
	bl	_vfree
	stp	xzr, xzr, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,8,3                    ; @current
	.comm	_SW_INITIAL,4,2                 ; @SW_INITIAL
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_HW_STOPPED,8,3                 ; @HW_STOPPED
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_pcm_shutdown_port
.subsections_via_symbols
