	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vwsnd_audio_poll
_vwsnd_audio_poll:                      ## @vwsnd_audio_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
	movl	(%rdi), %eax
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	%eax, %r14d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	andl	(%rcx), %eax
	movq	8(%rdi), %rbx
	movl	$0, %r13d
	cmovneq	%rbx, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_DBGEV
	testq	%r13, %r13
	setne	%al
	orb	-41(%rbp), %al                  ## 1-byte Folded Reload
	movzbl	%al, %edi
	callq	_ASSERT
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	leaq	16(%rbx), %r14
	addq	$24, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_poll_wait
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_swb_inc_u
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
LBB0_3:
	testq	%r13, %r13
	je	LBB0_7
## %bb.4:
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_poll_wait
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_swb_inc_u
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_DBGPV
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(file=0x%p, wait=0x%p)\n"

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
L_.str.1:                               ## @.str.1
	.asciz	"returning 0x%x\n"

	.no_dead_strip	_vwsnd_audio_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vwsnd_audio_poll
_vwsnd_audio_poll:                      ; @vwsnd_audio_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FMODE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w22, w9, w8
	cset	w24, ne
Lloh3:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x20, xzr, x23, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_DBGEV
	cmp	x20, #0
	cset	w8, ne
	orr	w0, w24, w8
	bl	_ASSERT
	cbz	w22, LBB0_3
; %bb.1:
	add	x22, x23, #16
	add	x1, x23, #24
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	mov	x0, x22
	mov	w1, #0
	bl	_swb_inc_u
	cbz	x0, LBB0_8
; %bb.2:
Lloh8:
	adrp	x8, _POLLIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w22, w9, w8
LBB0_3:
	cbz	x20, LBB0_7
LBB0_4:
	add	x1, x20, #8
	mov	x0, x21
	mov	x2, x19
	bl	_poll_wait
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_swb_inc_u
	cbz	x0, LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
LBB0_7:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DBGPV
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w22, #0
	cbnz	x20, LBB0_4
	b	LBB0_7
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(file=0x%p, wait=0x%p)\n"

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
l_.str.1:                               ; @.str.1
	.asciz	"returning 0x%x\n"

	.no_dead_strip	_vwsnd_audio_poll
.subsections_via_symbols
