	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_config                    ## -- Begin function perf_config
	.p2align	4, 0x90
_perf_config:                           ## @perf_config
	.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	%rsi, %rbx
	movl	%edi, %r12d
	movq	_config_exclusive_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perf_config_from_file          ## TAILCALL
LBB0_2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_perf_config_system
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_perf_etc_perfconfig
	movq	_R_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_access
	movl	$0, %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_perf_etc_perfconfig
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_perf_config_from_file
	movl	%eax, %r13d
	movl	$1, %ecx
LBB0_5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_perf_config_global
	testq	%r14, %r14
	je	LBB0_14
## %bb.6:
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_mkpath
	movl	%eax, %edi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r13
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_18
## %bb.9:
	movq	-64(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_geteuid
	cmpq	%rax, %r14
	jne	LBB0_17
LBB0_11:
	cmpl	$0, -56(%rbp)
	je	LBB0_18
## %bb.12:
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_perf_config_from_file
	addl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	jmp	LBB0_19
LBB0_14:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warning
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_warning
LBB0_18:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_19:
	movq	%r13, %rdi
	callq	_free
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_20:
	cmpl	$1, %ebx
	sbbl	%r15d, %r15d
	orl	%r13d, %r15d
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_exclusive_filename,8,3  ## @config_exclusive_filename
	.comm	_R_OK,4,2                       ## @R_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

L_.str.1:                               ## @.str.1
	.asciz	"%s/.perfconfig"

L_.str.2:                               ## @.str.2
	.asciz	"Not enough memory to process %s/.perfconfig, ignoring it."

L_.str.3:                               ## @.str.3
	.asciz	"File %s not owned by current user or root, ignoring it."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_config                    ; -- Begin function perf_config
	.p2align	2
_perf_config:                           ; @perf_config
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _config_exclusive_filename@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_exclusive_filename@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x2, x20
	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
	b	_perf_config_from_file
LBB0_2:
	bl	_perf_config_system
	cbz	x0, LBB0_4
; %bb.3:
	bl	_perf_etc_perfconfig
Lloh3:
	adrp	x8, _R_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_access
	cbz	w0, LBB0_5
LBB0_4:
	mov	w19, #0
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	bl	_perf_etc_perfconfig
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_perf_config_from_file
	mov	x19, x0
	mov	w24, #1
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x23, x0
	bl	_perf_config_global
	cbz	x23, LBB0_17
; %bb.7:
	cbz	x0, LBB0_17
; %bb.8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_mkpath
	bl	_strdup
	cbz	x0, LBB0_14
; %bb.9:
	mov	x22, x0
	mov	x1, sp
	bl	_stat
	tbnz	x0, #63, LBB0_16
; %bb.10:
	ldr	x23, [sp]
	cbz	x23, LBB0_12
; %bb.11:
	bl	_geteuid
	cmp	x23, x0
	b.ne	LBB0_15
LBB0_12:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_16
; %bb.13:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_perf_config_from_file
	add	w19, w0, w19
	add	w24, w24, #1
	b	LBB0_16
LBB0_14:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_warning
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_warning
LBB0_16:
	mov	x0, x22
	bl	_free
LBB0_17:
	cmp	w24, #0
	csinv	w0, w19, wzr, ne
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_config_exclusive_filename,8,3  ; @config_exclusive_filename
	.comm	_R_OK,4,2                       ; @R_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

l_.str.1:                               ; @.str.1
	.asciz	"%s/.perfconfig"

l_.str.2:                               ; @.str.2
	.asciz	"Not enough memory to process %s/.perfconfig, ignoring it."

l_.str.3:                               ; @.str.3
	.asciz	"File %s not owned by current user or root, ignoring it."

.subsections_via_symbols
