	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_matching_microcode
_get_matching_microcode:                ## @get_matching_microcode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_get_totalsize
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_update_match_revision
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%r14, %rdi
	callq	_update_match_cpu
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movl	$1, %r15d
	jmp	LBB0_10
LBB0_3:
	movq	%r13, %rdi
	callq	_get_datasize
	movq	_MC_HEADER_SIZE@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rax
	cmpq	%rax, %r12
	jbe	LBB0_10
## %bb.4:
	movq	%r13, %rdi
	callq	_get_datasize
	leaq	(%rax,%r13), %rdx
	movq	(%rbx), %rcx
	movl	(%rcx,%rdx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.5:
	movq	_EXT_HEADER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rax
	addq	%rdx, %rax
	leaq	(%rax,%r13), %r15
	addq	$4, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r15,%rbx,8), %edx
	movl	(%r15,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_update_match_cpu
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_6
## %bb.8:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_HEADER_SIZE,8,3             ## @MC_HEADER_SIZE
	.comm	_EXT_HEADER_SIZE,4,2            ## @EXT_HEADER_SIZE
	.no_dead_strip	_get_matching_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_matching_microcode
_get_matching_microcode:                ; @get_matching_microcode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_get_totalsize
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_update_match_revision
	cbz	w0, LBB0_9
; %bb.1:
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_update_match_cpu
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_9
LBB0_3:
	mov	x0, x20
	bl	_get_datasize
Lloh0:
	adrp	x22, _MC_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MC_HEADER_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x0
	cmp	x21, x8
	b.ls	LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_get_datasize
	add	x9, x20, x0
	ldr	x8, [x22]
	ldr	w21, [x9, x8]
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.5:
Lloh2:
	adrp	x9, _EXT_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXT_HEADER_SIZE@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x8, x0, x8
	add	x8, x8, x9
	add	x8, x8, x20
	add	x20, x8, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x20, #-4]
	mov	x0, x19
	bl	_update_match_cpu
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #8
	subs	w21, w21, #1
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_HEADER_SIZE,8,3             ; @MC_HEADER_SIZE
	.comm	_EXT_HEADER_SIZE,4,2            ; @EXT_HEADER_SIZE
	.no_dead_strip	_get_matching_microcode
.subsections_via_symbols
