	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_wait
_pcm_wait:                              ## @pcm_wait
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %ecx
	movq	_POLLERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%ecx, -48(%rbp)
	movq	_POLLNVAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_poll
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %ecx
	movl	-52(%rbp), %eax
	addl	(%r13), %ecx
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_POLLNVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_POLLERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdx
	movq	_EIO@GOTPCREL(%rip), %r12
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.7:
	movq	$0, (%rdx)
	movl	16(%rbx), %edi
	movq	_SNDRV_PCM_IOCTL_SYNC_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_10
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_10
## %bb.9:
	cltq
	leaq	l_switch.table.pcm_wait(%rip), %rcx
	movq	(%rcx,%rax,8), %r12
LBB0_10:
	xorl	%eax, %eax
	subl	(%r12), %eax
	jmp	LBB0_13
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLNVAL,4,2                   ## @POLLNVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_SNDRV_PCM_IOCTL_SYNC_PTR,4,2   ## @SNDRV_PCM_IOCTL_SYNC_PTR
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_ESTRPIPE,4,2                   ## @ESTRPIPE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pcm_wait
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pcm_wait
l_switch.table.pcm_wait:
	.quad	_EPIPE
	.quad	_ESTRPIPE
	.quad	_ENODEV

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_wait
_pcm_wait:                              ; @pcm_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _POLLIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POLLIN@GOTPAGEOFF]
Lloh2:
	adrp	x23, _POLLOUT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _POLLOUT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh4:
	adrp	x24, _POLLERR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _POLLERR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh6:
	adrp	x25, _POLLNVAL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _POLLNVAL@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x0, #16]
	str	w9, [sp, #8]
	str	w8, [sp]
Lloh8:
	adrp	x21, _errno@GOTPAGE
Lloh9:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x26, _EINTR@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	w1, #1
	mov	x2, x20
	bl	_poll
	tbnz	w0, #31, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x21]
	ldr	w10, [x26]
	ldr	w8, [sp, #4]
	cmn	w9, w10
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_1
; %bb.6:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_11
; %bb.7:
	str	xzr, [x2]
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _SNDRV_PCM_IOCTL_SYNC_PTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_IOCTL_SYNC_PTR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_ioctl
	tbnz	x0, #63, LBB0_11
; %bb.8:
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_11
; %bb.9:
Lloh15:
	adrp	x9, l_switch.table.pcm_wait@PAGE
Lloh16:
	add	x9, x9, l_switch.table.pcm_wait@PAGEOFF
	ldr	x21, [x9, w8, sxtw #3]
	b	LBB0_12
LBB0_10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x21, _EIO@GOTPAGE
Lloh18:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x21]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLNVAL,4,2                   ; @POLLNVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_SNDRV_PCM_IOCTL_SYNC_PTR,4,2   ; @SNDRV_PCM_IOCTL_SYNC_PTR
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_ESTRPIPE,4,2                   ; @ESTRPIPE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pcm_wait
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pcm_wait
l_switch.table.pcm_wait:
	.quad	_EPIPE
	.quad	_ESTRPIPE
	.quad	_ENODEV

.subsections_via_symbols
