	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptable_count_items
_mptable_count_items:                   ## @mptable_count_items
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_mpfps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_mptable_nioapics@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movl	(%rax), %esi
	leal	-1(%rsi), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.7:
	movq	_mptable_nbusses@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_mptable_count_items_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_mptable_walk_table             ## TAILCALL
LBB0_2:
	leal	-5(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.3:
	movq	_mptable_nbusses@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_panic
	movq	_mptable_nbusses@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
LBB0_5:
	movq	_mptable_maxbusid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mpfps,8,3                      ## @mpfps
	.comm	_mptable_nioapics,4,2           ## @mptable_nioapics
	.comm	_mptable_nbusses,4,2            ## @mptable_nbusses
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown pre-defined MP Table config type %d"

	.comm	_mptable_maxbusid,4,2           ## @mptable_maxbusid
	.comm	_mptable_count_items_handler,4,2 ## @mptable_count_items_handler
	.no_dead_strip	_mptable_count_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptable_count_items
_mptable_count_items:                   ; @mptable_count_items
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _mpfps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mpfps@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, _mptable_nioapics@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mptable_nioapics@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x10]
	ldr	w1, [x8]
	sub	w8, w1, #1
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #0
Lloh6:
	adrp	x10, _mptable_nbusses@GOTPAGE
Lloh7:
	ldr	x10, [x10, _mptable_nbusses@GOTPAGEOFF]
Lloh8:
	str	w9, [x10]
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _mptable_count_items_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mptable_count_items_handler@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mptable_walk_table
LBB0_4:
	sub	w8, w1, #5
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _mptable_nbusses@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mptable_nbusses@GOTPAGEOFF]
	mov	w9, #2
Lloh14:
	str	w9, [x8]
	mov	w8, #1
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
Lloh17:
	adrp	x8, _mptable_nbusses@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mptable_nbusses@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w8, w8, #1
LBB0_7:
Lloh20:
	adrp	x9, _mptable_maxbusid@GOTPAGE
Lloh21:
	ldr	x9, [x9, _mptable_maxbusid@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_mpfps,8,3                      ; @mpfps
	.comm	_mptable_nioapics,4,2           ; @mptable_nioapics
	.comm	_mptable_nbusses,4,2            ; @mptable_nbusses
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown pre-defined MP Table config type %d"

	.comm	_mptable_maxbusid,4,2           ; @mptable_maxbusid
	.comm	_mptable_count_items_handler,4,2 ; @mptable_count_items_handler
	.no_dead_strip	_mptable_count_items
.subsections_via_symbols
