	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_read_indirect
_ioapic_read_indirect:                  ## @ioapic_read_indirect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movl	4(%rdi), %eax
	andl	$15, %eax
	shlq	$24, %rax
	popq	%rbp
	retq
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movq	_IOAPIC_NUM_PINS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$16, %ecx
	addl	$16711680, %ecx                 ## imm = 0xFF0000
	andl	$16711680, %ecx                 ## imm = 0xFF0000
	movq	_IOAPIC_VERSION_ID@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	orq	%rcx, %rax
	popq	%rbp
	retq
LBB0_4:
	addl	$-16, %eax
	sarl	%eax
	movslq	%eax, %rcx
	movq	_IOAPIC_NUM_PINS@GOTPCREL(%rip), %rdx
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmpq	%rcx, (%rdx)
	jbe	LBB0_6
## %bb.5:
	movq	8(%rdi), %rax
	movl	(%rax,%rcx,4), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOAPIC_NUM_PINS,8,3            ## @IOAPIC_NUM_PINS
	.comm	_IOAPIC_VERSION_ID,4,2          ## @IOAPIC_VERSION_ID
	.no_dead_strip	_ioapic_read_indirect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_read_indirect
_ioapic_read_indirect:                  ; @ioapic_read_indirect
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	lsl	w8, w8, #24
	and	x0, x8, #0xf000000
	ret
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _IOAPIC_NUM_PINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOAPIC_NUM_PINS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	add	w8, w8, #4080, lsl #12          ; =16711680
	and	x8, x8, #0xff0000
Lloh3:
	adrp	x9, _IOAPIC_VERSION_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOAPIC_VERSION_ID@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	x0, x8, x9
	ret
LBB0_4:
	sub	w8, w8, #16
	sbfx	x8, x8, #1, #31
Lloh5:
	adrp	x9, _IOAPIC_NUM_PINS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IOAPIC_NUM_PINS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_6
; %bb.5:
	ldr	x9, [x0, #8]
	ldr	w0, [x9, x8, lsl #2]
	ret
LBB0_6:
	mov	w0, #-1
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IOAPIC_NUM_PINS,8,3            ; @IOAPIC_NUM_PINS
	.comm	_IOAPIC_VERSION_ID,4,2          ; @IOAPIC_VERSION_ID
	.no_dead_strip	_ioapic_read_indirect
.subsections_via_symbols
