	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cwq_intr
_cwq_intr:                              ## @cwq_intr
	.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, %rbx
	xorl	%eax, %eax
	callq	_smp_processor_id
	movslq	12(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	12(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_sun4v_ncs_gethead
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_pr_err
	movq	(%rbx), %rax
	cmpq	-32(%rbp), %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_spu_next_offset
	cmpq	-32(%rbp), %rax
	jne	LBB0_1
LBB0_3:
	movl	12(%rbx), %edi
	movq	%rax, %rsi
	callq	_sun4v_ncs_sethead_marker
	movq	_HV_EOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPU[%d]: Got CWQ interrupt for qhdl[%lx]\n"

L_.str.1:                               ## @.str.1
	.asciz	"CPU[%d]: CWQ gethead[%lx] hv_ret[%lu]\n"

	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cwq_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cwq_intr
_cwq_intr:                              ; @cwq_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_smp_processor_id
	mov	x1, x0
	ldrsw	x2, [x19, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	bl	_sun4v_ncs_gethead
	mov	x21, x0
	bl	_smp_processor_id
	mov	x1, x0
	ldr	x2, [sp, #8]
	str	x21, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	x1, [x19]
	ldr	x8, [sp, #8]
	cmp	x1, x8
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spu_next_offset
	mov	x1, x0
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.ne	LBB0_1
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_sun4v_ncs_sethead_marker
Lloh4:
	adrp	x8, _HV_EOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HV_EOK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPU[%d]: Got CWQ interrupt for qhdl[%lx]\n"

l_.str.1:                               ; @.str.1
	.asciz	"CPU[%d]: CWQ gethead[%lx] hv_ret[%lu]\n"

	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cwq_intr
.subsections_via_symbols
