	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioapic_init                    ## -- Begin function ioapic_init
	.p2align	4, 0x90
_ioapic_init:                           ## @ioapic_init
	.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
	movq	_pci_pins@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_vm_ioapic_pincount
	movl	(%rbx), %ecx
	leal	-16(%rcx), %edx
	xorl	%esi, %esi
	cmpl	$17, %ecx
	cmovll	%esi, %edx
	testq	%rax, %rax
	cmovsl	%esi, %edx
	movl	%edx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_pins,4,2                   ## @pci_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioapic_init                    ; -- Begin function ioapic_init
	.p2align	2
_ioapic_init:                           ; @ioapic_init
	.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
Lloh0:
	adrp	x19, _pci_pins@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pci_pins@GOTPAGEOFF]
	mov	x1, x19
	bl	_vm_ioapic_pincount
	ldr	w8, [x19]
	sub	w9, w8, #16
	cmp	w8, #17
	ccmp	x0, #0, #8, ge
	csel	w8, wzr, w9, lt
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_pins,4,2                   ; @pci_pins
.subsections_via_symbols
