	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_highest_vector
_find_highest_vector:                   ## @find_highest_vector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MAX_APIC_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpl	$32, %r8d
	jb	LBB0_6
## %bb.1:
	sarl	$5, %r8d
	movslq	%r8d, %rdx
	leaq	-1(%rdx), %rcx
	leal	-4(,%rdx,4), %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%esi, %rax
	leaq	1(%rdi), %rdx
	cmpq	$0, (%rbx,%rax,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-4, %esi
	cmpq	%rdi, %rcx
	movq	%rdx, %rdi
	jne	LBB0_2
LBB0_4:
	cmpl	%edx, %r8d
	jne	LBB0_5
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	movl	%r8d, %r14d
	subq	%rdx, %r14
	xorl	%edi, %edi
LBB0_7:
	callq	_likely
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:
	leal	(,%r14,4), %eax
	cltq
	movq	(%rbx,%rax,8), %rdi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	shll	$5, %r14d
	addl	%r14d, %eax
	decl	%eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_APIC_VECTOR,4,2            ## @MAX_APIC_VECTOR
	.no_dead_strip	_find_highest_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_highest_vector
_find_highest_vector:                   ; @find_highest_vector
	.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, _MAX_APIC_VECTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_APIC_VECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #32
	b.lo	LBB0_7
; %bb.1:
	asr	w20, w8, #5
	sbfx	x8, x8, #5, #27
	sub	x8, x8, #1
	lsl	w9, w20, #2
	sub	w9, w9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, w9, sxtw #3]
	subs	x8, x8, #1
	cset	w10, hs
	sub	w20, w20, #1
	cbnz	x11, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w9, #4
	tbnz	w10, #0, LBB0_2
LBB0_4:
	cbz	w20, LBB0_7
; %bb.5:
	mov	w0, #0
	bl	_likely
	cbnz	x0, LBB0_8
LBB0_6:
	lsl	w8, w20, #2
	ldr	x0, [x19, w8, sxtw #3]
	bl	_fls
	add	w8, w0, w20, lsl #5
	sub	w0, w8, #1
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_6
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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	_MAX_APIC_VECTOR,4,2            ; @MAX_APIC_VECTOR
	.no_dead_strip	_find_highest_vector
.subsections_via_symbols
