	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_session_env__lookup_binutils_path
_perf_session_env__lookup_binutils_path: ## @perf_session_env__lookup_binutils_path
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	$0, -40(%rbp)
	movl	(%rdi), %edi
	callq	_normalize_arch
	movq	%rax, %r12
	leaq	-48(%rbp), %rdi
	callq	_uname
	testq	%rax, %rax
	js	LBB0_25
## %bb.1:
	movl	-48(%rbp), %edi
	callq	_normalize_arch
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_25
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_27
## %bb.4:
	movq	-40(%rbp), %rdi
	cmpb	$47, (%rdi)
	jne	LBB0_6
## %bb.5:
	movq	_F_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_access
	testq	%rax, %rax
	jne	LBB0_27
	jmp	LBB0_25
LBB0_6:
	callq	_lookup_path
	testq	%rax, %rax
	jne	LBB0_25
## %bb.7:
	movq	-40(%rbp), %rdi
	callq	_free
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.26:
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_ui__error
	jmp	LBB0_27
LBB0_9:
	movq	_arm_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	movq	_powerpc_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_13:
	movq	_sh_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_15:
	movq	_s390_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	movq	_sparc_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	_x86_triplets@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_mips_triplets@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_lookup_triplets
	testl	%eax, %eax
	js	LBB0_23
## %bb.24:
	movl	%eax, %eax
	movq	(%rbx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rcx
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_27
LBB0_25:
	xorl	%eax, %eax
	movq	-40(%rbp), %rcx
	jmp	LBB0_28
LBB0_23:
	leaq	L_.str.10(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_ui__error
LBB0_27:
	movq	-40(%rbp), %rdi
	callq	_free
	movl	$-1, %eax
	xorl	%ecx, %ecx
LBB0_28:
	movq	%rcx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CROSS_COMPILE"

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

	.comm	_F_OK,4,2                       ## @F_OK
L_.str.2:                               ## @.str.2
	.asciz	"arm"

	.comm	_arm_triplets,8,3               ## @arm_triplets
L_.str.3:                               ## @.str.3
	.asciz	"powerpc"

	.comm	_powerpc_triplets,8,3           ## @powerpc_triplets
L_.str.4:                               ## @.str.4
	.asciz	"sh"

	.comm	_sh_triplets,8,3                ## @sh_triplets
L_.str.5:                               ## @.str.5
	.asciz	"s390"

	.comm	_s390_triplets,8,3              ## @s390_triplets
L_.str.6:                               ## @.str.6
	.asciz	"sparc"

	.comm	_sparc_triplets,8,3             ## @sparc_triplets
L_.str.7:                               ## @.str.7
	.asciz	"x86"

	.comm	_x86_triplets,8,3               ## @x86_triplets
L_.str.8:                               ## @.str.8
	.asciz	"mips"

	.comm	_mips_triplets,8,3              ## @mips_triplets
L_.str.9:                               ## @.str.9
	.asciz	"binutils for %s not supported.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Please install %s for %s.\nYou can add it to PATH, set CROSS_COMPILE or override the default using --%s.\n"

	.no_dead_strip	_perf_session_env__lookup_binutils_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_session_env__lookup_binutils_path
_perf_session_env__lookup_binutils_path: ; @perf_session_env__lookup_binutils_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	str	xzr, [sp, #16]
	ldr	w0, [x0]
	bl	_normalize_arch
	mov	x21, x0
	add	x0, sp, #24
	bl	_uname
	tbnz	x0, #63, LBB0_25
; %bb.1:
	ldr	w0, [sp, #24]
	bl	_normalize_arch
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_25
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.3:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	x3, x20
	bl	_asprintf
	tbnz	x0, #63, LBB0_28
; %bb.4:
	ldr	x0, [sp, #16]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _F_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _F_OK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_access
	cbnz	x0, LBB0_28
	b	LBB0_25
LBB0_6:
	bl	_lookup_path
	cbnz	x0, LBB0_25
; %bb.7:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.10:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.11:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.12:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.13:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_21
; %bb.14:
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.15:
Lloh21:
	adrp	x0, l_.str.9@PAGE
Lloh22:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	b	LBB0_27
LBB0_16:
Lloh23:
	adrp	x8, _arm_triplets@GOTPAGE
Lloh24:
	ldr	x8, [x8, _arm_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
Lloh25:
	adrp	x8, _powerpc_triplets@GOTPAGE
Lloh26:
	ldr	x8, [x8, _powerpc_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
Lloh27:
	adrp	x8, _sh_triplets@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sh_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_19:
Lloh29:
	adrp	x8, _s390_triplets@GOTPAGE
Lloh30:
	ldr	x8, [x8, _s390_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh31:
	adrp	x8, _sparc_triplets@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sparc_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
Lloh33:
	adrp	x8, _x86_triplets@GOTPAGE
Lloh34:
	ldr	x8, [x8, _x86_triplets@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh35:
	adrp	x8, _mips_triplets@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mips_triplets@GOTPAGEOFF]
LBB0_23:
	ldr	x22, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_lookup_triplets
	tbnz	w0, #31, LBB0_26
; %bb.24:
	ldr	x2, [x22, w0, uxtw #3]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	x3, x20
	bl	_asprintf
	tbnz	x0, #63, LBB0_28
LBB0_25:
	mov	w0, #0
	ldr	x8, [sp, #16]
	b	LBB0_29
LBB0_26:
	stp	x21, x20, [sp]
Lloh39:
	adrp	x0, l_.str.10@PAGE
Lloh40:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x20
LBB0_27:
	bl	_ui__error
LBB0_28:
	ldr	x0, [sp, #16]
	bl	_free
	mov	x8, #0
	mov	w0, #-1
LBB0_29:
	str	x8, [x19]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CROSS_COMPILE"

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

	.comm	_F_OK,4,2                       ; @F_OK
l_.str.2:                               ; @.str.2
	.asciz	"arm"

	.comm	_arm_triplets,8,3               ; @arm_triplets
l_.str.3:                               ; @.str.3
	.asciz	"powerpc"

	.comm	_powerpc_triplets,8,3           ; @powerpc_triplets
l_.str.4:                               ; @.str.4
	.asciz	"sh"

	.comm	_sh_triplets,8,3                ; @sh_triplets
l_.str.5:                               ; @.str.5
	.asciz	"s390"

	.comm	_s390_triplets,8,3              ; @s390_triplets
l_.str.6:                               ; @.str.6
	.asciz	"sparc"

	.comm	_sparc_triplets,8,3             ; @sparc_triplets
l_.str.7:                               ; @.str.7
	.asciz	"x86"

	.comm	_x86_triplets,8,3               ; @x86_triplets
l_.str.8:                               ; @.str.8
	.asciz	"mips"

	.comm	_mips_triplets,8,3              ; @mips_triplets
l_.str.9:                               ; @.str.9
	.asciz	"binutils for %s not supported.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Please install %s for %s.\nYou can add it to PATH, set CROSS_COMPILE or override the default using --%s.\n"

	.no_dead_strip	_perf_session_env__lookup_binutils_path
.subsections_via_symbols
