	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function op_amd_init
_op_amd_init:                           ## @op_amd_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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_init_ibs
	movl	(%rbx), %eax
	movq	_create_arch_files@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_setup_ibs_files@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	cmpl	$21, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NUM_COUNTERS_F15H@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NUM_COUNTERS@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rdi
	movq	_num_counters@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	movq	_op_amd_spec@GOTPCREL(%rip), %rbx
	movq	%rdi, 16(%rbx)
	movq	%rdi, 8(%rbx)
	movq	_NUM_VIRT_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_create_arch_files,4,2          ## @create_arch_files
	.comm	_setup_ibs_files,4,2            ## @setup_ibs_files
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_NUM_COUNTERS_F15H,8,3          ## @NUM_COUNTERS_F15H
	.comm	_num_counters,8,3               ## @num_counters
	.comm	_NUM_COUNTERS,8,3               ## @NUM_COUNTERS
	.comm	_op_amd_spec,24,3               ## @op_amd_spec
	.comm	_NUM_VIRT_COUNTERS,4,2          ## @NUM_VIRT_COUNTERS
	.no_dead_strip	_op_amd_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function op_amd_init
_op_amd_init:                           ; @op_amd_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
	mov	x19, x0
	bl	_init_ibs
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _create_arch_files@GOTPAGE
Lloh1:
	ldr	x9, [x9, _create_arch_files@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
Lloh3:
	adrp	x8, _setup_ibs_files@GOTPAGE
Lloh4:
	ldr	x8, [x8, _setup_ibs_files@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NUM_COUNTERS_F15H@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NUM_COUNTERS_F15H@GOTPAGEOFF]
Lloh11:
	adrp	x10, _NUM_COUNTERS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NUM_COUNTERS@GOTPAGEOFF]
	cmp	w8, #21
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
Lloh13:
	adrp	x8, _num_counters@GOTPAGE
Lloh14:
	ldr	x8, [x8, _num_counters@GOTPAGEOFF]
Lloh15:
	adrp	x19, _op_amd_spec@GOTPAGE
Lloh16:
	ldr	x19, [x19, _op_amd_spec@GOTPAGEOFF]
Lloh17:
	str	x0, [x8]
	stp	x0, x0, [x19, #8]
Lloh18:
	adrp	x8, _NUM_VIRT_COUNTERS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NUM_VIRT_COUNTERS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_max
	str	w0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_create_arch_files,4,2          ; @create_arch_files
	.comm	_setup_ibs_files,4,2            ; @setup_ibs_files
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_NUM_COUNTERS_F15H,8,3          ; @NUM_COUNTERS_F15H
	.comm	_num_counters,8,3               ; @num_counters
	.comm	_NUM_COUNTERS,8,3               ; @NUM_COUNTERS
	.comm	_op_amd_spec,24,3               ; @op_amd_spec
	.comm	_NUM_VIRT_COUNTERS,4,2          ; @NUM_VIRT_COUNTERS
	.no_dead_strip	_op_amd_init
.subsections_via_symbols
