	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_APIC_ibs
_setup_APIC_ibs:                        ## @setup_APIC_ibs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_get_ibs_offset
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_APIC_EILVT_MSG_NMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setup_APIC_eilvt
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_smp_processor_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_EILVT_MSG_NMI,4,2         ## @APIC_EILVT_MSG_NMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oprofile: IBS APIC setup failed on cpu #%d\n"

	.no_dead_strip	_setup_APIC_ibs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_APIC_ibs
_setup_APIC_ibs:                        ; @setup_APIC_ibs
	.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
	bl	_get_ibs_offset
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _APIC_EILVT_MSG_NMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_EILVT_MSG_NMI@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_setup_APIC_eilvt
	cbz	w0, LBB0_3
LBB0_2:
	bl	_smp_processor_id
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_warn
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_EILVT_MSG_NMI,4,2         ; @APIC_EILVT_MSG_NMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oprofile: IBS APIC setup failed on cpu #%d\n"

	.no_dead_strip	_setup_APIC_ibs
.subsections_via_symbols
