	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swift_demangle_cmd
_swift_demangle_cmd:                    ## @swift_demangle_cmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_have_swift_demangle@GOTPCREL(%rip), %r15
	cmpl	$-1, (%r15)
	movq	_swift_demangle_cmd.swift_demangle(%rip), %rax
	jne	LBB0_9
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movl	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	callq	_r_file_path
	movq	%rax, _swift_demangle_cmd.swift_demangle(%rip)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_r_file_path
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_swift_demangle_cmd.swift_demangle(%rip), %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_r_str_newf
	movq	%rax, _swift_demangle_cmd.swift_demangle(%rip)
	movl	$1, (%r15)
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movq	_swift_demangle_cmd.swift_demangle(%rip), %rax
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_15
LBB0_12:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_swift_demangle_cmd.swift_demangle(%rip), %rsi
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rdx
	callq	_r_sys_cmd_strf
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	jne	LBB0_19
## %bb.17:
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rdi
	callq	_r_str_trim
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_swift_demangle_cmd.swift_demangle,8,3 ## @swift_demangle_cmd.swift_demangle
	.comm	_have_swift_demangle,4,2        ## @have_swift_demangle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swift-demangle"

L_.str.1:                               ## @.str.1
	.asciz	"xcrun"

L_.str.2:                               ## @.str.2
	.asciz	"%s swift-demangle"

L_.str.3:                               ## @.str.3
	.asciz	"'"

L_.str.4:                               ## @.str.4
	.asciz	"\\"

L_.str.5:                               ## @.str.5
	.asciz	"%s -compact '%s'"

	.no_dead_strip	_swift_demangle_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swift_demangle_cmd
_swift_demangle_cmd:                    ; @swift_demangle_cmd
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _have_swift_demangle@GOTPAGE
Lloh1:
	ldr	x22, [x22, _have_swift_demangle@GOTPAGEOFF]
	ldr	w9, [x22]
	adrp	x21, _swift_demangle_cmd.swift_demangle@PAGE
	ldr	x8, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
	cmn	w9, #1
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_8
; %bb.1:
	str	wzr, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_file_path
	str	x0, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_7
LBB0_3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_file_path
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
	bl	_free
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_r_str_newf
	str	x0, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
	mov	w8, #1
	str	w8, [x22]
LBB0_6:
	mov	x0, x20
	bl	_free
LBB0_7:
	ldr	x8, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
LBB0_8:
	cbz	x8, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_13
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	ldr	x1, [x21, _swift_demangle_cmd.swift_demangle@PAGEOFF]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_r_sys_cmd_strf
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.14:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_16:
	mov	x0, x19
	bl	_r_str_trim
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_swift_demangle_cmd.swift_demangle,8,3 ; @swift_demangle_cmd.swift_demangle
	.comm	_have_swift_demangle,4,2        ; @have_swift_demangle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swift-demangle"

l_.str.1:                               ; @.str.1
	.asciz	"xcrun"

l_.str.2:                               ; @.str.2
	.asciz	"%s swift-demangle"

l_.str.3:                               ; @.str.3
	.asciz	"'"

l_.str.4:                               ; @.str.4
	.asciz	"\\"

l_.str.5:                               ; @.str.5
	.asciz	"%s -compact '%s'"

	.no_dead_strip	_swift_demangle_cmd
.subsections_via_symbols
