	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_oss_poll
_snd_pcm_oss_poll:                      ## @snd_pcm_oss_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	%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
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r14
	leaq	8(%r14), %rsi
	movq	%r15, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_poll_wait
	movq	%rbx, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_DRAINING@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_SNDRV_PCM_STATE_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_playback_ready
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_6:
	movq	%rbx, %rdi
	callq	_snd_pcm_stream_unlock_irq
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%r12, %r12
	jne	LBB0_8
	jmp	LBB0_14
LBB0_1:
	xorl	%r14d, %r14d
	testq	%r12, %r12
	je	LBB0_14
LBB0_8:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	callq	_poll_wait
	movq	%r12, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	(%r13), %rax
	movq	(%rax), %rbx
	movq	_SNDRV_PCM_STATE_RUNNING@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_snd_pcm_oss_capture_ready
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
LBB0_11:
	movq	%r12, %rdi
	callq	_snd_pcm_stream_unlock_irq
	cmpq	(%r15), %rbx
	je	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	callq	_oss_runtime
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-56(%rbp), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	%r13, %rdi
	callq	_oss_runtime
	movq	$0, (%rax)
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_pcm_oss_set_trigger
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_SNDRV_PCM_STATE_DRAINING,8,3   ## @SNDRV_PCM_STATE_DRAINING
	.comm	_SNDRV_PCM_STATE_RUNNING,8,3    ## @SNDRV_PCM_STATE_RUNNING
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.no_dead_strip	_snd_pcm_oss_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_oss_poll
_snd_pcm_oss_poll:                      ; @snd_pcm_oss_poll
	.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	x21, x1
	mov	x22, x0
	ldr	x24, [x0]
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
Lloh3:
	adrp	x25, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x23, LBB0_3
; %bb.1:
	ldr	x19, [x23]
	add	x1, x19, #8
	mov	x0, x22
	mov	x2, x21
	bl	_poll_wait
	mov	x0, x23
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _SNDRV_PCM_STATE_DRAINING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_PCM_STATE_DRAINING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	w19, #0
	b	LBB0_7
LBB0_3:
	mov	w19, #0
	cbnz	x20, LBB0_8
	b	LBB0_14
LBB0_4:
Lloh8:
	adrp	x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_PCM_STATE_RUNNING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_snd_pcm_oss_playback_ready
	cbz	x0, LBB0_2
LBB0_6:
Lloh11:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w19, w9, w8
LBB0_7:
	mov	x0, x23
	bl	_snd_pcm_stream_unlock_irq
	cbz	x20, LBB0_14
LBB0_8:
	ldr	x23, [x20]
	add	x1, x23, #8
	mov	x0, x22
	mov	x2, x21
	bl	_poll_wait
	mov	x0, x20
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x23]
	ldr	x21, [x8]
Lloh17:
	adrp	x22, _SNDRV_PCM_STATE_RUNNING@GOTPAGE
Lloh18:
	ldr	x22, [x22, _SNDRV_PCM_STATE_RUNNING@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_snd_pcm_oss_capture_ready
	cbz	x0, LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _POLLIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
LBB0_11:
	mov	x0, x20
	bl	_snd_pcm_stream_unlock_irq
	ldr	x8, [x22]
	cmp	x21, x8
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x23
	bl	_oss_runtime
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.13:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x24]
	ldr	x9, [x25]
	lsl	x9, x9, #3
	ldr	x8, [x8, x9]
	ldr	x10, [sp, #8]
	str	x8, [x10, x9]
	mov	x0, x23
	bl	_oss_runtime
	str	xzr, [x0]
Lloh25:
	adrp	x8, _PCM_ENABLE_INPUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_snd_pcm_oss_set_trigger
LBB0_14:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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	_SNDRV_PCM_STATE_DRAINING,8,3   ; @SNDRV_PCM_STATE_DRAINING
	.comm	_SNDRV_PCM_STATE_RUNNING,8,3    ; @SNDRV_PCM_STATE_RUNNING
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.no_dead_strip	_snd_pcm_oss_poll
.subsections_via_symbols
