	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vioapic_read
_vioapic_read:                          ## @vioapic_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpb	$-128, %dl
	je	LBB0_4
## %bb.1:
	cmpb	$-126, %dl
	je	LBB0_3
## %bb.2:
	cmpb	$-127, %dl
	jne	LBB0_6
LBB0_3:
	movl	(%rdi), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_REDIR_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movq	_MAXREDIRSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	$17, %eax
	popq	%rbp
	retq
LBB0_6:
	movzbl	%dl, %r8d
	movq	_IOAPIC_REDTBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	movl	%r8d, %ecx
	subl	%esi, %ecx
	jl	LBB0_9
## %bb.7:
	movq	_REDIR_ENTRIES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	(%rsi,%rdx,2), %edx
	cmpl	%edx, %r8d
	jge	LBB0_9
## %bb.8:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movq	8(%rdi), %rcx
	cltq
	movl	(%rcx,%rax,4), %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIR_ENTRIES,4,2              ## @REDIR_ENTRIES
	.comm	_MAXREDIRSHIFT,4,2              ## @MAXREDIRSHIFT
	.comm	_IOAPIC_REDTBL,4,2              ## @IOAPIC_REDTBL
	.no_dead_strip	_vioapic_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vioapic_read
_vioapic_read:                          ; @vioapic_read
	.cfi_startproc
; %bb.0:
	and	w8, w2, #0xff
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x0]
	ret
LBB0_4:
Lloh0:
	adrp	x8, _REDIR_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REDIR_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
Lloh3:
	adrp	x9, _MAXREDIRSHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAXREDIRSHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	mov	w9, #17
	orr	w0, w8, w9
	ret
LBB0_5:
Lloh6:
	adrp	x9, _IOAPIC_REDTBL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOAPIC_REDTBL@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x9]
	subs	w9, w8, w10
	b.lt	LBB0_8
; %bb.6:
Lloh9:
	adrp	x11, _REDIR_ENTRIES@GOTPAGE
Lloh10:
	ldr	x11, [x11, _REDIR_ENTRIES@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	add	w10, w10, w11, lsl #1
	cmp	w8, w10
	b.ge	LBB0_8
; %bb.7:
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	ldr	x9, [x0, #8]
	ldr	w0, [x9, w8, sxtw #2]
	ret
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIR_ENTRIES,4,2              ; @REDIR_ENTRIES
	.comm	_MAXREDIRSHIFT,4,2              ; @MAXREDIRSHIFT
	.comm	_IOAPIC_REDTBL,4,2              ; @IOAPIC_REDTBL
	.no_dead_strip	_vioapic_read
.subsections_via_symbols
