	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apic_find_highest_isr
_apic_find_highest_isr:                 ## @apic_find_highest_isr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$-1, (%rbx)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %ebx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_APIC_ISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_find_highest_vector
	movl	%eax, %ebx
	cmpl	$-1, %eax
	sete	%al
	cmpl	$16, %ebx
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_ISR,8,3                   ## @APIC_ISR
	.no_dead_strip	_apic_find_highest_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apic_find_highest_isr
_apic_find_highest_isr:                 ; @apic_find_highest_isr
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w19, [x19]
	b	LBB0_5
LBB0_3:
	mov	w19, #-1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _APIC_ISR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APIC_ISR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_find_highest_vector
	mov	x19, x0
	cmn	w0, #1
	ccmp	w0, #15, #0, ne
	cset	w0, gt
	bl	_ASSERT
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_ISR,8,3                   ; @APIC_ISR
	.no_dead_strip	_apic_find_highest_isr
.subsections_via_symbols
