	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_print_backtrace_gdb         ## -- Begin function dl_print_backtrace_gdb
	.p2align	4, 0x90
_dl_print_backtrace_gdb:                ## @dl_print_backtrace_gdb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$560, %rsp                      ## imm = 0x230
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	leaq	-576(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_readlink
	movb	$0, -576(%rbp,%rax)
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	je	LBB0_5
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.3:
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$560, %rsp                      ## imm = 0x230
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_waitpid                        ## TAILCALL
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	__exit
LBB0_5:
	movl	$2, %edi
	movl	$1, %esi
	callq	_dup2
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	subq	$8, %rsp
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.7(%rip), %r8
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.8(%rip), %r9
	movq	%rdi, %rsi
	pushq	$0
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	pushq	%r8
	callq	_execlp
	addq	$48, %rsp
	xorl	%edi, %edi
	callq	__exit
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"/proc/self/exe"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Can't fork() to run gdb\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"stack trace for %s pid = %s\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"--batch"

L_.str.6:                               ## @.str.6
	.asciz	"-n"

L_.str.7:                               ## @.str.7
	.asciz	"-ex"

L_.str.8:                               ## @.str.8
	.asciz	"thread"

L_.str.9:                               ## @.str.9
	.asciz	"bt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_print_backtrace_gdb         ; -- Begin function dl_print_backtrace_gdb
	.p2align	2
_dl_print_backtrace_gdb:                ; @dl_print_backtrace_gdb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #576
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_getpid
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #70
	bl	_sprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x19, sp, #26
	add	x1, sp, #26
	mov	w2, #511
	bl	_readlink
	strb	wzr, [x19, x0]
	bl	_fork
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x1, #0
	mov	w2, #0
	add	sp, sp, #576
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	b	_waitpid
LBB0_4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	bl	__exit
LBB0_5:
	mov	w0, #2
	mov	w1, #1
	bl	_dup2
Lloh15:
	adrp	x8, _stdout@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	sub	x19, x29, #70
	add	x20, sp, #26
	stp	x20, x19, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	stp	x19, xzr, [sp, #8]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	str	x20, [sp]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
Lloh24:
	adrp	x3, l_.str.6@PAGE
Lloh25:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh26:
	adrp	x5, l_.str.8@PAGE
Lloh27:
	add	x5, x5, l_.str.8@PAGEOFF
Lloh28:
	adrp	x4, l_.str.7@PAGE
Lloh29:
	add	x4, x4, l_.str.7@PAGEOFF
Lloh30:
	adrp	x7, l_.str.9@PAGE
Lloh31:
	add	x7, x7, l_.str.9@PAGEOFF
	mov	x1, x0
	mov	x6, x4
	bl	_execlp
	mov	w0, #0
	bl	__exit
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"/proc/self/exe"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Can't fork() to run gdb\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"stack trace for %s pid = %s\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"--batch"

l_.str.6:                               ; @.str.6
	.asciz	"-n"

l_.str.7:                               ; @.str.7
	.asciz	"-ex"

l_.str.8:                               ; @.str.8
	.asciz	"thread"

l_.str.9:                               ; @.str.9
	.asciz	"bt"

.subsections_via_symbols
