	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xive_eoi
_xive_eoi:                              ## @xive_eoi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_MAX_XIVE_IRQS@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_xive_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPCPU_PTR
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, %r14
LBB0_3:
	movl	(%r14), %eax
	movq	_OPAL_XIVE_IRQ_EOI_VIA_FW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.11:
	movq	_OPAL_INT_EOI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_opal_call                      ## TAILCALL
LBB0_4:
	movq	_OPAL_XIVE_IRQ_STORE_EOI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_XIVE_IRQ_STORE_EOI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
LBB0_6:
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xive_write_mmap8               ## TAILCALL
LBB0_7:
	movq	_OPAL_XIVE_IRQ_LSI@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rdi
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.12:
	movq	_XIVE_IRQ_LOAD_EOI@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xive_read_mmap8                ## TAILCALL
LBB0_8:
	movq	_XIVE_IRQ_PQ_00@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_xive_read_mmap8
	movq	_XIVE_IRQ_VAL_Q@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XIVE_IRQS,8,3              ## @MAX_XIVE_IRQS
	.comm	_xive_cpu_data,4,2              ## @xive_cpu_data
	.comm	_OPAL_XIVE_IRQ_EOI_VIA_FW,4,2   ## @OPAL_XIVE_IRQ_EOI_VIA_FW
	.comm	_OPAL_INT_EOI,4,2               ## @OPAL_INT_EOI
	.comm	_OPAL_XIVE_IRQ_STORE_EOI,4,2    ## @OPAL_XIVE_IRQ_STORE_EOI
	.comm	_XIVE_IRQ_STORE_EOI,8,3         ## @XIVE_IRQ_STORE_EOI
	.comm	_OPAL_XIVE_IRQ_LSI,4,2          ## @OPAL_XIVE_IRQ_LSI
	.comm	_XIVE_IRQ_LOAD_EOI,8,3          ## @XIVE_IRQ_LOAD_EOI
	.comm	_XIVE_IRQ_PQ_00,8,3             ## @XIVE_IRQ_PQ_00
	.comm	_XIVE_IRQ_VAL_Q,4,2             ## @XIVE_IRQ_VAL_Q
	.no_dead_strip	_xive_eoi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xive_eoi
_xive_eoi:                              ; @xive_eoi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, _MAX_XIVE_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_XIVE_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _xive_cpu_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xive_cpu_data@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DPCPU_PTR
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	mov	x19, x2
LBB0_3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _OPAL_XIVE_IRQ_EOI_VIA_FW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPAL_XIVE_IRQ_EOI_VIA_FW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _OPAL_INT_EOI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPAL_INT_EOI@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_opal_call
LBB0_5:
Lloh12:
	adrp	x9, _OPAL_XIVE_IRQ_STORE_EOI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OPAL_XIVE_IRQ_STORE_EOI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _XIVE_IRQ_STORE_EOI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XIVE_IRQ_STORE_EOI@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
LBB0_7:
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xive_write_mmap8
LBB0_8:
Lloh18:
	adrp	x9, _OPAL_XIVE_IRQ_LSI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OPAL_XIVE_IRQ_LSI@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x9]
	ldr	x9, [x19, #8]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _XIVE_IRQ_LOAD_EOI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XIVE_IRQ_LOAD_EOI@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xive_read_mmap8
LBB0_10:
Lloh24:
	adrp	x8, _XIVE_IRQ_PQ_00@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XIVE_IRQ_PQ_00@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_xive_read_mmap8
Lloh27:
	adrp	x8, _XIVE_IRQ_VAL_Q@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XIVE_IRQ_VAL_Q@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XIVE_IRQS,8,3              ; @MAX_XIVE_IRQS
	.comm	_xive_cpu_data,4,2              ; @xive_cpu_data
	.comm	_OPAL_XIVE_IRQ_EOI_VIA_FW,4,2   ; @OPAL_XIVE_IRQ_EOI_VIA_FW
	.comm	_OPAL_INT_EOI,4,2               ; @OPAL_INT_EOI
	.comm	_OPAL_XIVE_IRQ_STORE_EOI,4,2    ; @OPAL_XIVE_IRQ_STORE_EOI
	.comm	_XIVE_IRQ_STORE_EOI,8,3         ; @XIVE_IRQ_STORE_EOI
	.comm	_OPAL_XIVE_IRQ_LSI,4,2          ; @OPAL_XIVE_IRQ_LSI
	.comm	_XIVE_IRQ_LOAD_EOI,8,3          ; @XIVE_IRQ_LOAD_EOI
	.comm	_XIVE_IRQ_PQ_00,8,3             ; @XIVE_IRQ_PQ_00
	.comm	_XIVE_IRQ_VAL_Q,4,2             ; @XIVE_IRQ_VAL_Q
	.no_dead_strip	_xive_eoi
.subsections_via_symbols
