	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apic_update_ppr
_apic_update_ppr:                       ## @apic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_APIC_TASKPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_apic_get_reg
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_apic_find_highest_isr
	xorl	%r8d, %r8d
	cmpl	$-1, %eax
	cmovnel	%eax, %r8d
	movl	%r14d, %ecx
	andl	$240, %ecx
	movl	%r8d, %edx
	andl	$240, %edx
	cmpl	%edx, %ecx
	movzbl	%r14b, %ebx
	cmovbl	%edx, %ebx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_apic_debug
	movq	_APIC_PROCPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apic_set_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_TASKPRI,4,2               ## @APIC_TASKPRI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vlapic %p, ppr 0x%x, isr 0x%x, isrv 0x%x"

	.comm	_APIC_PROCPRI,4,2               ## @APIC_PROCPRI
	.no_dead_strip	_apic_update_ppr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apic_update_ppr
_apic_update_ppr:                       ; @apic_update_ppr
	.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	x19, x0
Lloh0:
	adrp	x8, _APIC_TASKPRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_TASKPRI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_apic_get_reg
	mov	x20, x0
	mov	x0, x19
	bl	_apic_find_highest_isr
	mov	x3, x0
	cmn	w0, #1
	csel	w4, wzr, w0, eq
	and	w8, w20, #0xf0
	and	w9, w4, #0xf0
	and	w10, w20, #0xff
	cmp	w8, w9
	csel	w20, w9, w10, lo
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_apic_debug
Lloh5:
	adrp	x8, _APIC_PROCPRI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APIC_PROCPRI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_apic_set_reg
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_TASKPRI,4,2               ; @APIC_TASKPRI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vlapic %p, ppr 0x%x, isr 0x%x, isrv 0x%x"

	.comm	_APIC_PROCPRI,4,2               ; @APIC_PROCPRI
	.no_dead_strip	_apic_update_ppr
.subsections_via_symbols
