	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_release
_snd_pcm_oss_release:                   ## @snd_pcm_oss_release
	.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	%rsi, %r14
	movq	(%rsi), %r12
	movq	(%r12), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
LBB0_2:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rbx
	movq	(%rbx), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_snd_pcm_oss_sync
LBB0_6:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_snd_pcm_oss_release_file
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	8(%rbx), %rdi
	callq	_wake_up
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_snd_card_file_remove
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_snd_pcm_oss_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_oss_release
_snd_pcm_oss_release:                   ; @snd_pcm_oss_release
	.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, x1
	ldr	x20, [x1]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	cbnz	x21, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
LBB0_2:
	cmp	x21, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	ldr	x22, [x21]
	ldr	x8, [x22]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_snd_pcm_oss_sync
LBB0_6:
	add	x21, x22, #12
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	bl	_snd_pcm_oss_release_file
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x22, #8
	bl	_wake_up
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_module_put
	ldr	x0, [x22]
	mov	x1, x19
	bl	_snd_card_file_remove
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_snd_pcm_oss_release
.subsections_via_symbols
