	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_session__cpu_bitmap       ## -- Begin function perf_session__cpu_bitmap
	.p2align	4, 0x90
_perf_session__cpu_bitmap:              ## @perf_session__cpu_bitmap
	.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
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_PERF_TYPE_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	_PERF_SAMPLE_CPU@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_perf_session__find_first_evtype
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_map__new
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r14
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	movq	_MAX_NR_CPUS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	cmpl	(%r12), %esi
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %edi
	movq	%r15, %rsi
	callq	_set_bit
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_TYPE_MAX,4,2              ## @PERF_TYPE_MAX
	.comm	_PERF_SAMPLE_CPU,4,2            ## @PERF_SAMPLE_CPU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File does not contain CPU events. Remove -c option to proceed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid cpu_list\n"

	.comm	_MAX_NR_CPUS,4,2                ## @MAX_NR_CPUS
L_.str.2:                               ## @.str.2
	.asciz	"Requested CPU %d too large. Consider raising MAX_NR_CPUS\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_session__cpu_bitmap       ; -- Begin function perf_session__cpu_bitmap
	.p2align	2
_perf_session__cpu_bitmap:              ; @perf_session__cpu_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _PERF_TYPE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PERF_TYPE_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w22, #0
Lloh2:
	adrp	x24, _PERF_SAMPLE_CPU@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PERF_SAMPLE_CPU@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_perf_session__find_first_evtype
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	x0, x20
	bl	_cpu_map__new
	cbz	x0, LBB0_12
; %bb.7:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x21, #0
Lloh6:
	adrp	x22, _MAX_NR_CPUS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_NR_CPUS@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_set_bit
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_pr_err
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_TYPE_MAX,4,2              ; @PERF_TYPE_MAX
	.comm	_PERF_SAMPLE_CPU,4,2            ; @PERF_SAMPLE_CPU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File does not contain CPU events. Remove -c option to proceed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid cpu_list\n"

	.comm	_MAX_NR_CPUS,4,2                ; @MAX_NR_CPUS
l_.str.2:                               ; @.str.2
	.asciz	"Requested CPU %d too large. Consider raising MAX_NR_CPUS\n"

.subsections_via_symbols
