	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sysroot
_get_sysroot:                           ## @get_sysroot
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %edi
	jl	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movl	%edi, %r12d
	movl	$1, %ebx
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_CONST_STRNEQ
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_5:
	movq	_BINDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_relative_sysroot
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_TOOLBINDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_relative_sysroot
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_TARGET_SYSTEM_ROOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_3:
	movq	(%r15,%rbx,8), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cltq
	addq	%rbx, %rax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--sysroot="

	.comm	_BINDIR,4,2                     ## @BINDIR
	.comm	_TOOLBINDIR,4,2                 ## @TOOLBINDIR
	.comm	_TARGET_SYSTEM_ROOT,8,3         ## @TARGET_SYSTEM_ROOT
	.no_dead_strip	_get_sysroot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sysroot
_get_sysroot:                           ; @get_sysroot
	.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
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	mov	w8, w0
	add	x20, x1, #8
	sub	x21, x8, #1
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, x19
	bl	_CONST_STRNEQ
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _BINDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BINDIR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_get_relative_sysroot
	cbnz	x0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _TOOLBINDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOOLBINDIR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_get_relative_sysroot
Lloh8:
	adrp	x8, _TARGET_SYSTEM_ROOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TARGET_SYSTEM_ROOT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, x8, x0, eq
	b	LBB0_7
LBB0_6:
	ldr	x19, [x20]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	x0, x19, w0, sxtw
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--sysroot="

	.comm	_BINDIR,4,2                     ; @BINDIR
	.comm	_TOOLBINDIR,4,2                 ; @TOOLBINDIR
	.comm	_TARGET_SYSTEM_ROOT,8,3         ; @TARGET_SYSTEM_ROOT
	.no_dead_strip	_get_sysroot
.subsections_via_symbols
