	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_poll               ## -- Begin function snd_seq_oss_poll
	.p2align	4, 0x90
_snd_seq_oss_poll:                      ## @snd_seq_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %edi
	callq	_is_read_mode
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_snd_seq_oss_readq_poll
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.5:
	movl	4(%rbx), %edi
	callq	_is_write_mode
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_snd_seq_kernel_client_write_poll
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_seq_oss_poll               ; -- Begin function snd_seq_oss_poll
	.p2align	2
_snd_seq_oss_poll:                      ; @snd_seq_oss_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_is_read_mode
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x21, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_snd_seq_oss_readq_poll
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _POLLIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w22, #0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
LBB0_5:
	ldr	w0, [x21, #4]
	bl	_is_write_mode
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_snd_seq_kernel_client_write_poll
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
LBB0_8:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
.subsections_via_symbols
