	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_pcm_status
_check_pcm_status:                      ## @check_pcm_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r14d, -40(%rbp)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_snd_pcm_channel_status
	testl	%eax, %eax
	je	LBB0_1
## %bb.14:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_snd_strerror
	leaq	L_.str.7(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_16
## %bb.15:
	movq	_EBADF@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	-32(%rbp), %rax
	movq	_SND_PCM_STATUS_UNSECURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_3
LBB0_4:
	movq	_SND_PCM_STATUS_UNDERRUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_snd_pcm_channel_prepare
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.6:
	movl	%ebx, %edi
	callq	_snd_strerror
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	movq	_SND_PCM_STATUS_OVERRUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_RARCH_LOG
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_snd_pcm_channel_prepare
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.10:
	movl	%ebx, %edi
	callq	_snd_strerror
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_11:
	movq	_SND_PCM_STATUS_CHANGE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	callq	_RARCH_LOG
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_snd_pcm_channel_prepare
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_16
## %bb.13:
	movl	%ebx, %edi
	callq	_snd_strerror
	leaq	L_.str.6(%rip), %rdi
LBB0_7:
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_3:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOK,4,2                        ## @EOK
	.comm	_SND_PCM_STATUS_UNSECURE,8,3    ## @SND_PCM_STATUS_UNSECURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check_pcm_status got SND_PCM_STATUS_UNSECURE, aborting playback\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_SND_PCM_STATUS_UNDERRUN,8,3    ## @SND_PCM_STATUS_UNDERRUN
L_.str.1:                               ## @.str.1
	.asciz	"check_pcm_status: SNDP_CM_STATUS_UNDERRUN.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid state detected for underrun on snd_pcm_channel_prepare: %s\n"

	.comm	_SND_PCM_STATUS_OVERRUN,8,3     ## @SND_PCM_STATUS_OVERRUN
L_.str.3:                               ## @.str.3
	.asciz	"check_pcm_status: SNDP_CM_STATUS_OVERRUN.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid state detected for overrun on snd_pcm_channel_prepare: %s\n"

	.comm	_SND_PCM_STATUS_CHANGE,8,3      ## @SND_PCM_STATUS_CHANGE
L_.str.5:                               ## @.str.5
	.asciz	"check_pcm_status: SNDP_CM_STATUS_CHANGE.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid state detected for change on snd_pcm_channel_prepare: %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"check_pcm_status failed: %s\n"

	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_EBADF,4,2                      ## @EBADF
	.no_dead_strip	_check_pcm_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_pcm_status
_check_pcm_status:                      ; @check_pcm_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w19, [sp, #16]
	ldr	w0, [x21]
	add	x1, sp, #16
	bl	_snd_pcm_channel_status
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_snd_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str.7@PAGE
Lloh1:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_RARCH_ERR
Lloh2:
	adrp	x8, _ESRCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _EBADF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, _SND_PCM_STATUS_UNSECURE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SND_PCM_STATUS_UNSECURE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_RARCH_ERR
Lloh12:
	adrp	x8, _EPROTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh14:
	adrp	x9, _SND_PCM_STATUS_UNDERRUN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SND_PCM_STATUS_UNDERRUN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	ldr	w0, [x21]
	mov	x1, x19
	bl	_snd_pcm_channel_prepare
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.10:
	mov	x0, x20
	bl	_snd_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_11:
Lloh21:
	adrp	x9, _SND_PCM_STATUS_OVERRUN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SND_PCM_STATUS_OVERRUN@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_LOG
	ldr	w0, [x21]
	mov	x1, x19
	bl	_snd_pcm_channel_prepare
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.13:
	mov	x0, x20
	bl	_snd_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_14:
Lloh28:
	adrp	x9, _SND_PCM_STATUS_CHANGE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SND_PCM_STATUS_CHANGE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_RARCH_LOG
	ldr	w0, [x21]
	mov	x1, x19
	bl	_snd_pcm_channel_prepare
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.16:
	mov	x0, x20
	bl	_snd_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_17:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EOK,4,2                        ; @EOK
	.comm	_SND_PCM_STATUS_UNSECURE,8,3    ; @SND_PCM_STATUS_UNSECURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check_pcm_status got SND_PCM_STATUS_UNSECURE, aborting playback\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_SND_PCM_STATUS_UNDERRUN,8,3    ; @SND_PCM_STATUS_UNDERRUN
l_.str.1:                               ; @.str.1
	.asciz	"check_pcm_status: SNDP_CM_STATUS_UNDERRUN.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid state detected for underrun on snd_pcm_channel_prepare: %s\n"

	.comm	_SND_PCM_STATUS_OVERRUN,8,3     ; @SND_PCM_STATUS_OVERRUN
l_.str.3:                               ; @.str.3
	.asciz	"check_pcm_status: SNDP_CM_STATUS_OVERRUN.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid state detected for overrun on snd_pcm_channel_prepare: %s\n"

	.comm	_SND_PCM_STATUS_CHANGE,8,3      ; @SND_PCM_STATUS_CHANGE
l_.str.5:                               ; @.str.5
	.asciz	"check_pcm_status: SNDP_CM_STATUS_CHANGE.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid state detected for change on snd_pcm_channel_prepare: %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"check_pcm_status failed: %s\n"

	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EBADF,4,2                      ; @EBADF
	.no_dead_strip	_check_pcm_status
.subsections_via_symbols
