	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_playback_poll
_snd_pcm_playback_poll:                 ## @snd_pcm_playback_poll
	.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, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	(%r14), %r15
	leaq	16(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_poll_wait
	movq	%r14, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	%r15, %rdi
	callq	_snd_pcm_playback_avail
	movq	8(%r15), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	leal	-128(%rcx), %edx
	cmpl	$3, %edx
	jae	LBB0_3
## %bb.5:
	movq	(%r15), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_8
## %bb.6:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_3:
	cmpl	$131, %ecx
	je	LBB0_8
## %bb.4:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_POLLERR@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_snd_pcm_stream_unlock_irq
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLERR,4,2                    ## @POLLERR
	.no_dead_strip	_snd_pcm_playback_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_playback_poll
_snd_pcm_playback_poll:                 ; @snd_pcm_playback_poll
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_PCM_RUNTIME_CHECK
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	ldr	x20, [x19]
	add	x1, x20, #16
	mov	x0, x22
	mov	x2, x21
	bl	_poll_wait
	mov	x0, x19
	bl	_snd_pcm_stream_lock_irq
	mov	x0, x20
	bl	_snd_pcm_playback_avail
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_8
LBB0_5:
	cmp	w8, #131
	b.ne	LBB0_7
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _POLLERR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _POLLERR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_8:
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
LBB0_9:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLERR,4,2                    ; @POLLERR
	.no_dead_strip	_snd_pcm_playback_poll
.subsections_via_symbols
