	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scdrv_poll
_scdrv_poll:                            ## @scdrv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	leaq	20(%rbx), %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	leaq	16(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_ia64_sn_irtr_intr
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	_SAL_IROUTER_INTR_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	andl	%r14d, %ecx
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
	movq	_SAL_IROUTER_INTR_XMIT@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_POLLOUT@GOTPCREL(%rip), %rcx
	movq	_POLLWRNORM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAL_IROUTER_INTR_RECV,4,2      ## @SAL_IROUTER_INTR_RECV
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_SAL_IROUTER_INTR_XMIT,4,2      ## @SAL_IROUTER_INTR_XMIT
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.no_dead_strip	_scdrv_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scdrv_poll
_scdrv_poll:                            ; @scdrv_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, x1
	mov	x20, x0
	ldr	x21, [x0]
	add	x1, x21, #20
	mov	x2, x19
	bl	_poll_wait
	add	x1, x21, #16
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x20, x21, #4
	mov	x0, x20
	bl	_spin_lock
	ldp	w1, w0, [x21, #8]
	bl	_ia64_sn_irtr_intr
	mov	x19, x0
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SAL_IROUTER_INTR_RECV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAL_IROUTER_INTR_RECV@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POLLIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _POLLRDNORM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POLLRDNORM@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w8, w19
	csel	w0, wzr, w9, eq
Lloh9:
	adrp	x8, _SAL_IROUTER_INTR_XMIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAL_IROUTER_INTR_XMIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SAL_IROUTER_INTR_RECV,4,2      ; @SAL_IROUTER_INTR_RECV
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_SAL_IROUTER_INTR_XMIT,4,2      ; @SAL_IROUTER_INTR_XMIT
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.no_dead_strip	_scdrv_poll
.subsections_via_symbols
