	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psc_dma_close
_psc_dma_close:                         ## @psc_dma_close
	.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	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	48(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$0, 40(%r14)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 24(%r14)
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	addq	$4, %rdi
	movl	8(%r14), %esi
	callq	_out_be16
	movq	(%r14), %rdi
	movl	$64, %esi
	callq	_out_8
LBB0_3:
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	setne	%al
	shlq	$4, %rax
	movq	$0, 16(%rax,%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"psc_dma_close(substream=%p)\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_psc_dma_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psc_dma_close
_psc_dma_close:                         ; @psc_dma_close
	.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	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	w0, [x20, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x19, [x8]
Lloh2:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	ldr	w8, [x20, #40]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, #4
	ldr	w1, [x20, #8]
	bl	_out_be16
	ldr	x0, [x20]
	mov	w1, #64
	bl	_out_8
LBB0_3:
	add	x8, x20, #16
	add	x9, x20, #32
	cmp	x19, x21
	csel	x8, x8, x9, eq
	str	xzr, [x8]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"psc_dma_close(substream=%p)\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_psc_dma_close
.subsections_via_symbols
