	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xive_setup_cpu
_xive_setup_cpu:                        ## @xive_setup_cpu
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_xive_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPCPU_PTR
	movq	%rax, %r14
	movq	_root_pic@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_XIVE_TM_QW2_HV_POOL@GOTPCREL(%rip), %r12
	movq	_TM_WORD2@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	callq	_bus_read_4
	movq	_TM_QW2W2_VP@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_XIVE_TM_SPC_PULL_POOL_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bus_read_8
LBB0_2:
	movl	(%rbx), %edi
	movq	_TM_WORD0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	$255, %edx
	callq	_bus_write_4
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	(%rbx), %edi
	movl	(%r14), %edx
	orl	(%r15), %edx
	callq	_bus_write_4
	movq	_root_pic@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rdx
	addq	$4, %rdx
	movl	4(%r14), %esi
	callq	_xive_unmask
	movq	_XIVE_TM_CPPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xive_write_1                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xive_cpu_data,4,2              ## @xive_cpu_data
	.comm	_root_pic,4,2                   ## @root_pic
	.comm	_XIVE_TM_QW2_HV_POOL,8,3        ## @XIVE_TM_QW2_HV_POOL
	.comm	_TM_WORD2,8,3                   ## @TM_WORD2
	.comm	_TM_QW2W2_VP,4,2                ## @TM_QW2W2_VP
	.comm	_XIVE_TM_SPC_PULL_POOL_CTX,4,2  ## @XIVE_TM_SPC_PULL_POOL_CTX
	.comm	_TM_WORD0,8,3                   ## @TM_WORD0
	.comm	_XIVE_TM_CPPR,4,2               ## @XIVE_TM_CPPR
	.no_dead_strip	_xive_setup_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xive_setup_cpu
_xive_setup_cpu:                        ; @xive_setup_cpu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _xive_cpu_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xive_cpu_data@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DPCPU_PTR
	mov	x19, x0
Lloh3:
	adrp	x21, _root_pic@GOTPAGE
Lloh4:
	ldr	x21, [x21, _root_pic@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_device_get_softc
	mov	x20, x0
Lloh5:
	adrp	x22, _XIVE_TM_QW2_HV_POOL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _XIVE_TM_QW2_HV_POOL@GOTPAGEOFF]
	ldr	w0, [x0]
	ldr	x8, [x22]
Lloh7:
	adrp	x23, _TM_WORD2@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TM_WORD2@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_bus_read_4
Lloh9:
	adrp	x24, _TM_QW2W2_VP@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TM_QW2W2_VP@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _XIVE_TM_SPC_PULL_POOL_CTX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XIVE_TM_SPC_PULL_POOL_CTX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_bus_read_8
LBB0_2:
	ldr	w0, [x20]
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _TM_WORD0@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TM_WORD0@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w2, #255
	bl	_bus_write_4
	ldr	w0, [x20]
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w2, w9, w8
	bl	_bus_write_4
	ldr	w0, [x21]
	ldr	w1, [x19, #4]!
	mov	x2, x19
	bl	_xive_unmask
Lloh17:
	adrp	x8, _XIVE_TM_CPPR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XIVE_TM_CPPR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #255
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xive_write_1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_xive_cpu_data,4,2              ; @xive_cpu_data
	.comm	_root_pic,4,2                   ; @root_pic
	.comm	_XIVE_TM_QW2_HV_POOL,8,3        ; @XIVE_TM_QW2_HV_POOL
	.comm	_TM_WORD2,8,3                   ; @TM_WORD2
	.comm	_TM_QW2W2_VP,4,2                ; @TM_QW2W2_VP
	.comm	_XIVE_TM_SPC_PULL_POOL_CTX,4,2  ; @XIVE_TM_SPC_PULL_POOL_CTX
	.comm	_TM_WORD0,8,3                   ; @TM_WORD0
	.comm	_XIVE_TM_CPPR,4,2               ; @XIVE_TM_CPPR
	.no_dead_strip	_xive_setup_cpu
.subsections_via_symbols
