	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_pebs_buffer
_alloc_pebs_buffer:                     ## @alloc_pebs_buffer
	.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	%edi, %ebx
	movq	_cpu_hw_events@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_per_cpu
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_cpu_to_node
	movq	_x86_pmu@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	cmpl	$0, 4(%r12)
	je	LBB0_4
## %bb.1:
	movq	_PEBS_BUFFER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, %edx
	callq	_kmalloc_node
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movl	(%r13), %ecx
	movslq	(%r12), %rsi
	movq	%rbx, (%r14)
	movq	%rbx, 24(%r14)
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%edx, %ecx
	movslq	%ecx, %rax
	addq	%rbx, %rax
	movq	%rax, 16(%r14)
	addq	%rbx, %rsi
	movq	%rsi, 8(%r14)
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_hw_events,4,2              ## @cpu_hw_events
	.comm	_x86_pmu,8,2                    ## @x86_pmu
	.comm	_PEBS_BUFFER_SIZE,4,2           ## @PEBS_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_pebs_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_pebs_buffer
_alloc_pebs_buffer:                     ; @alloc_pebs_buffer
	.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	x20, x0
Lloh0:
	adrp	x8, _cpu_hw_events@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_hw_events@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_per_cpu
	mov	x19, x0
	mov	x0, x20
	bl	_cpu_to_node
Lloh3:
	adrp	x21, _x86_pmu@GOTPAGE
Lloh4:
	ldr	x21, [x21, _x86_pmu@GOTPAGEOFF]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh5:
	adrp	x22, _PEBS_BUFFER_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PEBS_BUFFER_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_kmalloc_node
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x22]
	ldrsw	x9, [x21]
	sdiv	w8, w8, w9
	mul	w8, w8, w9
	add	x8, x20, w8, sxtw
	stp	x8, x20, [x19, #16]
	add	x8, x9, x20
	stp	x20, x8, [x19]
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_hw_events,4,2              ; @cpu_hw_events
	.comm	_x86_pmu,8,2                    ; @x86_pmu
	.comm	_PEBS_BUFFER_SIZE,4,2           ; @PEBS_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_pebs_buffer
.subsections_via_symbols
