	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xive_dispatch
_xive_dispatch:                         ## @xive_dispatch
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_device_get_softc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_XIVE_IRQS@GOTPCREL(%rip), %r14
	movq	_xive_ipi_vector@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_XIVE_TM_SPC_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xive_read_2
	movq	_TM_QW3NSR_HE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	cmpl	$131, %edx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %edx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %edx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %r13d
	movq	_xive_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPCPU_PTR
	movq	%rax, %rbx
	movq	_XIVE_TM_CPPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_xive_write_1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_powerpc_dispatch_intr
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_xive_read_eq
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=2
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r15), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_device_printf
LBB0_5:
	movq	_XIVE_TM_CPPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xive_write_1                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XIVE_TM_SPC_ACK,4,2            ## @XIVE_TM_SPC_ACK
	.comm	_TM_QW3NSR_HE_SHIFT,4,2         ## @TM_QW3NSR_HE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected interrupt he type: %d\n"

	.comm	_xive_cpu_data,4,2              ## @xive_cpu_data
	.comm	_XIVE_TM_CPPR,4,2               ## @XIVE_TM_CPPR
	.comm	_MAX_XIVE_IRQS,8,3              ## @MAX_XIVE_IRQS
	.comm	_xive_ipi_vector,8,3            ## @xive_ipi_vector
	.no_dead_strip	_xive_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xive_dispatch
_xive_dispatch:                         ; @xive_dispatch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x25, _XIVE_TM_SPC_ACK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _XIVE_TM_SPC_ACK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _TM_QW3NSR_HE_SHIFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TM_QW3NSR_HE_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _xive_cpu_data@GOTPAGE
Lloh5:
	ldr	x27, [x27, _xive_cpu_data@GOTPAGEOFF]
Lloh6:
	adrp	x24, _XIVE_TM_CPPR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _XIVE_TM_CPPR@GOTPAGEOFF]
Lloh8:
	adrp	x28, _MAX_XIVE_IRQS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MAX_XIVE_IRQS@GOTPAGEOFF]
Lloh10:
	adrp	x20, _xive_ipi_vector@GOTPAGE
Lloh11:
	ldr	x20, [x20, _xive_ipi_vector@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w1, [x25]
	mov	x0, x19
	bl	_xive_read_2
	ldr	w8, [x26]
	asr	w2, w0, w8
	cmp	w2, #131
	b.eq	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w2, #130
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w2, #128
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w23, w0, #0xff
	ldr	w0, [x27]
	bl	_DPCPU_PTR
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x23
	bl	_xive_write_1
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_xive_read_eq
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x28]
	ldr	x9, [x20]
	cmp	x0, x8
	csel	x0, x9, x0, eq
	mov	x1, x21
	bl	_powerpc_dispatch_intr
	b	LBB0_5
LBB0_7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_device_printf
LBB0_8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #255
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_xive_write_1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XIVE_TM_SPC_ACK,4,2            ; @XIVE_TM_SPC_ACK
	.comm	_TM_QW3NSR_HE_SHIFT,4,2         ; @TM_QW3NSR_HE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected interrupt he type: %d\n"

	.comm	_xive_cpu_data,4,2              ; @xive_cpu_data
	.comm	_XIVE_TM_CPPR,4,2               ; @XIVE_TM_CPPR
	.comm	_MAX_XIVE_IRQS,8,3              ; @MAX_XIVE_IRQS
	.comm	_xive_ipi_vector,8,3            ; @xive_ipi_vector
	.no_dead_strip	_xive_dispatch
.subsections_via_symbols
