	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scdrv_event                    ## -- Begin function scdrv_event
	.p2align	4, 0x90
_scdrv_event:                           ## @scdrv_event
	.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	_event_sd@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_CHUNKSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -28(%rbp)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	leaq	-28(%rbp), %rcx
	callq	_ia64_sn_irtr_recv
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%rbx), %edi
	movl	-28(%rbp), %esi
	callq	_scdrv_dispatch_event
	movl	(%r15), %eax
	movl	%eax, -28(%rbp)
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rcx
	callq	_ia64_sn_irtr_recv
	testl	%eax, %eax
	jns	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_event_sd,8,3                   ## @event_sd
	.comm	_CHUNKSIZE,4,2                  ## @CHUNKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scdrv_event                    ; -- Begin function scdrv_event
	.p2align	2
_scdrv_event:                           ; @scdrv_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _event_sd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _event_sd@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x20, _CHUNKSIZE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CHUNKSIZE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19, #4]
	add	x3, sp, #12
	bl	_ia64_sn_irtr_recv
	tbnz	w0, #31, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #12]
	bl	_scdrv_dispatch_event
	b	LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_event_sd,8,3                   ; @event_sd
	.comm	_CHUNKSIZE,4,2                  ; @CHUNKSIZE
.subsections_via_symbols
