	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_session__new              ## -- Begin function perf_session__new
	.p2align	4, 0x90
_perf_session__new:                     ## @perf_session__new
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	cmpb	$0, (%rdi)
	jne	LBB0_6
LBB0_2:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_fstat
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_6
LBB0_3:
	movl	-48(%rbp), %edi
	callq	_S_ISFIFO
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %r15
LBB0_6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
	leal	40(%rax), %edi
	callq	_zalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	%rax, %rbx
	movl	36(%rax), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movl	$33554432, (%rbx)               ## imm = 0x2000000
	movq	_RB_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	%r13d, 4(%rbx)
	leaq	20(%rbx), %r14
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%rbx), %rdi
	movq	_HOST_KERNEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_machine__init
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_hists__init
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_perf_session__open
	testq	%rax, %rax
	js	LBB0_17
## %bb.9:
	movq	%rbx, %rdi
	callq	_perf_session__set_id_hdr_size
	jmp	LBB0_12
LBB0_10:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_perf_session__create_kernel_maps
	testq	%rax, %rax
	js	LBB0_17
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_19
## %bb.13:
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.14:
	cmpl	$0, (%r14)
	je	LBB0_19
## %bb.15:
	movl	8(%rbx), %edi
	callq	_perf_evlist__sample_id_all
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
	callq	_dump_printf
	movl	$0, (%r14)
	jmp	LBB0_19
LBB0_17:
	movq	%rbx, %rdi
	callq	_perf_session__delete
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

L_.str.1:                               ## @.str.1
	.asciz	"perf.data"

	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_HOST_KERNEL_ID,4,2             ## @HOST_KERNEL_ID
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.3:                               ## @.str.3
	.asciz	"WARNING: No sample_id_all support, falling back to unordered processing\n"

	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_session__new              ; -- Begin function perf_session__new
	.p2align	2
_perf_session__new:                     ; @perf_session__new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_fstat
	cbz	w0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x24, l_.str.1@PAGE
Lloh4:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_S_ISFIFO
	cbz	x0, LBB0_3
; %bb.5:
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x24
	bl	_strlen
	mov	x25, x0
	add	w0, w25, #40
	bl	_zalloc
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w0, [x20, #36]
	mov	x1, x24
	mov	x2, x25
	bl	_memcpy
	mov	w8, #33554432
Lloh7:
	adrp	x9, _RB_ROOT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RB_ROOT@GOTPAGEOFF]
	stp	w8, w23, [x20]
Lloh9:
	ldr	w8, [x9]
	str	w8, [x20, #32]
	add	x23, x20, #20
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
Lloh10:
	adrp	x8, _HOST_KERNEL_ID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HOST_KERNEL_ID@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_machine__init
	add	x0, x20, #12
	bl	_hists__init
Lloh15:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_perf_session__open
	tbnz	x0, #63, LBB0_17
; %bb.9:
	mov	x0, x20
	bl	_perf_session__set_id_hdr_size
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_perf_session__create_kernel_maps
	tbnz	x0, #63, LBB0_17
LBB0_12:
	cbz	x19, LBB0_18
; %bb.13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.15:
	ldr	w0, [x20, #8]
	bl	_perf_evlist__sample_id_all
	cbnz	w0, LBB0_18
; %bb.16:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dump_printf
	str	wzr, [x19]
	b	LBB0_18
LBB0_17:
	mov	x0, x20
	bl	_perf_session__delete
	mov	x20, #0
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

l_.str.1:                               ; @.str.1
	.asciz	"perf.data"

	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_HOST_KERNEL_ID,4,2             ; @HOST_KERNEL_ID
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.3:                               ; @.str.3
	.asciz	"WARNING: No sample_id_all support, falling back to unordered processing\n"

	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
.subsections_via_symbols
