	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucode_load_bsp                 ## -- Begin function ucode_load_bsp
	.p2align	4, 0x90
_ucode_load_bsp:                        ## @ucode_load_bsp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_do_cpuid
	movl	-60(%rbp), %eax
	movl	-52(%rbp), %ecx
	movl	%eax, -64(%rbp)
	movl	%ecx, -60(%rbp)
	movb	$0, -52(%rbp)
	movq	_loaders@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r13), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_nitems
	addq	$24, %r13
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_8:
	movq	_ucode_loader@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	jne	LBB0_10
	jmp	LBB0_23
LBB0_6:
	addq	(%r12), %r13
	movq	_ucode_loader@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	testq	%r13, %r13
	je	LBB0_23
LBB0_10:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_preload_search_next_name
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	_MODINFO_TYPE@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_preload_search_next_name
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_preload_search_info
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_preload_fetch_addr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_preload_fetch_size
	movq	%rax, -48(%rbp)
	movq	_ucode_loader@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_map_ucode
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rax, %r15
	callq	_memcpy_early
	movq	_ucode_loader@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	xorl	%esi, %esi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_unmap_ucode
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_preload_search_next_name
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_12
LBB0_20:
	testq	%r15, %r15
	je	LBB0_23
## %bb.21:
	movq	_ucode_error@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_NO_ERROR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
## %bb.22:
	movq	_NO_MATCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_23:
	xorl	%r15d, %r15d
LBB0_24:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_early_ucode_data@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_ucode_data@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	-88(%rbp), %rax
	movq	_ucode_nrev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-80(%rbp), %rax
	movq	_ucode_orev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %r15
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_loaders,8,3                    ## @loaders
	.comm	_ucode_loader,8,3               ## @ucode_loader
	.comm	_MODINFO_TYPE,4,2               ## @MODINFO_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"cpu_microcode"

	.comm	_early_ucode_data,8,3           ## @early_ucode_data
	.comm	_ucode_data,8,3                 ## @ucode_data
	.comm	_ucode_nrev,8,3                 ## @ucode_nrev
	.comm	_ucode_orev,8,3                 ## @ucode_orev
	.comm	_ucode_error,8,3                ## @ucode_error
	.comm	_NO_ERROR,8,3                   ## @NO_ERROR
	.comm	_NO_MATCH,8,3                   ## @NO_MATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucode_load_bsp                 ; -- Begin function ucode_load_bsp
	.p2align	2
_ucode_load_bsp:                        ; @ucode_load_bsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x9, x0, x8
	msub	x8, x9, x8, x0
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	add	x1, sp, #32
	mov	w0, #0
	bl	_do_cpuid
	ldr	w8, [sp, #36]
	ldr	w9, [sp, #44]
	stp	w8, w9, [sp, #32]
	strb	wzr, [sp, #44]
Lloh3:
	adrp	x20, _loaders@GOTPAGE
Lloh4:
	ldr	x20, [x20, _loaders@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x21]
	add	x0, sp, #32
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_nitems
	add	x21, x21, #24
	cmp	x22, x0
	b.lo	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _ucode_loader@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ucode_loader@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x0, #0
	cbnz	x8, LBB0_6
	b	LBB0_18
LBB0_5:
	ldr	x8, [x20]
	add	x8, x8, x21
Lloh8:
	adrp	x9, _ucode_loader@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ucode_loader@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
	mov	x0, #0
	cbz	x8, LBB0_18
LBB0_6:
	bl	_preload_search_next_name
	cbz	x0, LBB0_18
; %bb.7:
	mov	x21, x0
	mov	x20, #0
Lloh11:
	adrp	x25, _MODINFO_TYPE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MODINFO_TYPE@GOTPAGEOFF]
Lloh13:
	adrp	x26, _ucode_loader@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ucode_loader@GOTPAGEOFF]
Lloh15:
	adrp	x22, l_.str.1@PAGE
Lloh16:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_preload_search_next_name
	mov	x21, x0
	cbz	x0, LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_preload_search_info
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_preload_fetch_addr
	mov	x20, x0
	mov	x0, x21
	bl	_preload_fetch_size
	str	x0, [sp, #8]
	ldr	x8, [x26]
	ldr	x8, [x8, #16]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_map_ucode
	mov	x23, x0
	ldr	x2, [sp, #8]
	mov	x1, x24
	bl	_memcpy_early
	ldr	x8, [x26]
	ldr	x8, [x8, #8]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x23
	mov	w1, #0
	blr	x8
	cbz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_unmap_ucode
	b	LBB0_8
LBB0_14:
	cbz	x20, LBB0_17
; %bb.15:
Lloh17:
	adrp	x8, _ucode_error@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ucode_error@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh19:
	adrp	x10, _NO_ERROR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _NO_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.16:
	mov	x0, #0
Lloh22:
	adrp	x9, _NO_MATCH@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NO_MATCH@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_18
LBB0_17:
	mov	x0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh25:
	adrp	x8, _early_ucode_data@GOTPAGE
Lloh26:
	ldr	x8, [x8, _early_ucode_data@GOTPAGEOFF]
Lloh27:
	str	x23, [x8]
Lloh28:
	adrp	x8, _ucode_data@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ucode_data@GOTPAGEOFF]
Lloh30:
	str	x23, [x8]
	ldr	x8, [sp, #24]
Lloh31:
	adrp	x9, _ucode_nrev@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ucode_nrev@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
	ldp	x0, x8, [sp, #8]
Lloh34:
	adrp	x9, _ucode_orev@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ucode_orev@GOTPAGEOFF]
Lloh36:
	str	x8, [x9]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_loaders,8,3                    ; @loaders
	.comm	_ucode_loader,8,3               ; @ucode_loader
	.comm	_MODINFO_TYPE,4,2               ; @MODINFO_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"cpu_microcode"

	.comm	_early_ucode_data,8,3           ; @early_ucode_data
	.comm	_ucode_data,8,3                 ; @ucode_data
	.comm	_ucode_nrev,8,3                 ; @ucode_nrev
	.comm	_ucode_orev,8,3                 ; @ucode_orev
	.comm	_ucode_error,8,3                ; @ucode_error
	.comm	_NO_ERROR,8,3                   ; @NO_ERROR
	.comm	_NO_MATCH,8,3                   ; @NO_MATCH
.subsections_via_symbols
