	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlapic_update_ppr
_vlapic_update_ppr:                     ## @vlapic_update_ppr
	.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	%rdi, %r13
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	movl	(%rcx,%rax,4), %ebx
	movq	16(%rdi), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_panic
	movq	8(%r13), %rax
LBB0_3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	$-1, %r14d
	leaq	L_.str.1(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, 8(%r13)
	jbe	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r15d
	movq	(%r13), %rax
	movl	4(%rax,%rbx,4), %edi
	callq	_PRIO
	movq	%rax, %r14
	cmpl	%r14d, %r15d
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_dump_isrvec_stk
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_panic
	jmp	LBB0_7
LBB0_8:
	movq	16(%r13), %rbx
	movl	$1, %r15d
	leaq	L_.str.2(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_dump_isrvec_stk
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_panic
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r15d
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r14d
	cmpl	$256, %r14d                     ## imm = 0x100
	je	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	shrl	$3, %eax
	andl	$268435452, %eax                ## imm = 0xFFFFFFC
	movl	4(%rbx,%rax,4), %eax
	btl	%r14d, %eax
	jae	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r15d, %rax
	cmpq	%rax, 8(%r13)
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rcx
	cmpl	(%rcx,%rax,4), %r14d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_15:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_PRIO
	movq	%rax, %r14
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_PRIO
	andl	$240, %ebx
	cmpq	%rax, %r14
	cmovgel	%r15d, %ebx
	movq	16(%r13), %rax
	movl	%ebx, 8(%rax)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VLAPIC_CTR1                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isrvec_stk is corrupted: %d"

L_.str.1:                               ## @.str.1
	.asciz	"isrvec_stk does not satisfy invariant"

L_.str.2:                               ## @.str.2
	.asciz	"ISR and isrvec_stk out of sync"

L_.str.3:                               ## @.str.3
	.asciz	"vlapic_update_ppr 0x%02x"

	.no_dead_strip	_vlapic_update_ppr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlapic_update_ppr
_vlapic_update_ppr:                     ; @vlapic_update_ppr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	w21, [x9, x8, lsl #2]
	ldr	x9, [x0, #16]
	ldr	w20, [x9]
	cmp	x8, #0
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_2
; %bb.1:
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	ldr	x8, [x19, #8]
LBB0_2:
	cbz	x8, LBB0_7
; %bb.3:
	mov	x24, #0
	mov	w23, #-1
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x24, x24, #1
	cmp	x8, x24
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x23
	ldr	x8, [x19]
	add	x8, x8, x24, lsl #2
	ldr	w0, [x8, #4]
	bl	_PRIO
	mov	x23, x0
	cmp	w25, w23
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_dump_isrvec_stk
	mov	x0, x22
	bl	_panic
	b	LBB0_4
LBB0_7:
	mov	w23, #0
	ldr	x8, [x19, #16]
	add	x24, x8, #4
	mov	w25, #1
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_dump_isrvec_stk
	mov	x0, x22
	bl	_panic
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	w25, w25, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, #1
	cmp	w23, #256
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsr	w8, w23, #3
	and	w8, w8, #0xffffffc
	ldr	w8, [x24, w8, uxtw #2]
	lsr	w8, w8, w23
	tbz	w8, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x8, w25
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.lo	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x19]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w23, w8
	b.ne	LBB0_8
	b	LBB0_9
LBB0_14:
	mov	x0, x20
	bl	_PRIO
	mov	x22, x0
	mov	x0, x21
	bl	_PRIO
	and	w8, w21, #0xf0
	cmp	x22, x0
	csel	w2, w8, w20, lt
	ldr	x8, [x19, #16]
	str	w2, [x8, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_VLAPIC_CTR1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isrvec_stk is corrupted: %d"

l_.str.1:                               ; @.str.1
	.asciz	"isrvec_stk does not satisfy invariant"

l_.str.2:                               ; @.str.2
	.asciz	"ISR and isrvec_stk out of sync"

l_.str.3:                               ; @.str.3
	.asciz	"vlapic_update_ppr 0x%02x"

	.no_dead_strip	_vlapic_update_ppr
.subsections_via_symbols
