	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc_sysdev_add
_mc_sysdev_add:                         ## @mc_sysdev_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	callq	_cpu_online
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_debug
	addq	$4, %rbx
	movq	_mc_attr_group@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_microcode_init_cpu
	movq	%rax, %rcx
	movq	_UCODE_ERROR@GOTPCREL(%rip), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpq	(%rdx), %rcx
	cmovnel	%edi, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"microcode: CPU%d added\n"

	.comm	_mc_attr_group,4,2              ## @mc_attr_group
	.comm	_UCODE_ERROR,8,3                ## @UCODE_ERROR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mc_sysdev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc_sysdev_add
_mc_sysdev_add:                         ; @mc_sysdev_add
	.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
	mov	x20, x0
	ldr	w19, [x0]
	mov	x0, x19
	bl	_cpu_online
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	add	x0, x20, #4
Lloh2:
	adrp	x1, _mc_attr_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _mc_attr_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_microcode_init_cpu
Lloh4:
	adrp	x8, _UCODE_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UCODE_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _EINVAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	x0, x8
	csneg	w0, wzr, w9, ne
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"microcode: CPU%d added\n"

	.comm	_mc_attr_group,4,2              ; @mc_attr_group
	.comm	_UCODE_ERROR,8,3                ; @UCODE_ERROR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mc_sysdev_add
.subsections_via_symbols
