	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_drop
_snd_pcm_drop:                          ## @snd_pcm_drop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	(%rbx), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_SNDRV_PCM_STATE_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_SNDRV_PCM_STATE_SUSPENDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_PAUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_pause
LBB0_9:
	movq	_SNDRV_PCM_STATE_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_pcm_stop
	movq	%rbx, %rdi
	callq	_snd_pcm_stream_unlock_irq
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_EBADFD@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ## @SNDRV_PCM_STATE_OPEN
	.comm	_SNDRV_PCM_STATE_DISCONNECTED,8,3 ## @SNDRV_PCM_STATE_DISCONNECTED
	.comm	_SNDRV_PCM_STATE_SUSPENDED,8,3  ## @SNDRV_PCM_STATE_SUSPENDED
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_SNDRV_PCM_STATE_PAUSED,8,3     ## @SNDRV_PCM_STATE_PAUSED
	.comm	_SNDRV_PCM_STATE_SETUP,4,2      ## @SNDRV_PCM_STATE_SETUP
	.no_dead_strip	_snd_pcm_drop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_drop
_snd_pcm_drop:                          ; @snd_pcm_drop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_PCM_RUNTIME_CHECK
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x20, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _SNDRV_PCM_STATE_OPEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNDRV_PCM_STATE_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _SNDRV_PCM_STATE_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SNDRV_PCM_STATE_DISCONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _SNDRV_PCM_STATE_SUSPENDED@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SNDRV_PCM_STATE_SUSPENDED@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _EBADFD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _SNDRV_PCM_STATE_PAUSED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SNDRV_PCM_STATE_PAUSED@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_pause
LBB0_8:
Lloh16:
	adrp	x8, _SNDRV_PCM_STATE_SETUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_PCM_STATE_SETUP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pcm_stop
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_STATE_OPEN,8,3       ; @SNDRV_PCM_STATE_OPEN
	.comm	_SNDRV_PCM_STATE_DISCONNECTED,8,3 ; @SNDRV_PCM_STATE_DISCONNECTED
	.comm	_SNDRV_PCM_STATE_SUSPENDED,8,3  ; @SNDRV_PCM_STATE_SUSPENDED
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_SNDRV_PCM_STATE_PAUSED,8,3     ; @SNDRV_PCM_STATE_PAUSED
	.comm	_SNDRV_PCM_STATE_SETUP,4,2      ; @SNDRV_PCM_STATE_SETUP
	.no_dead_strip	_snd_pcm_drop
.subsections_via_symbols
