	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tr2_dst_get_trace_fd           ## -- Begin function tr2_dst_get_trace_fd
	.p2align	4, 0x90
_tr2_dst_get_trace_fd:                  ## @tr2_dst_get_trace_fd
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
	jmp	LBB0_19
LBB0_2:
	movl	$1, (%rbx)
	movl	8(%rbx), %edi
	callq	_tr2_sysenv_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.11:
	movsbl	(%r14), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, 4(%rbx)
	jmp	LBB0_19
LBB0_6:
	movl	$0, 4(%rbx)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_19
LBB0_13:
	movq	%r14, %rdi
	callq	_is_absolute_path
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_is_directory
	movq	%rbx, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_15
## %bb.20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tr2_dst_try_auto_path          ## TAILCALL
LBB0_16:
	movq	_PREFIX_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_17
## %bb.21:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tr2_dst_try_unix_domain_socket ## TAILCALL
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tr2_dst_try_path               ## TAILCALL
LBB0_17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tr2_dst_malformed_warning
	movq	%rbx, %rdi
	callq	_tr2_dst_trace_disable
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"false"

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

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

	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_PREFIX_AF_UNIX,4,2             ## @PREFIX_AF_UNIX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tr2_dst_get_trace_fd           ; -- Begin function tr2_dst_get_trace_fd
	.p2align	2
_tr2_dst_get_trace_fd:                  ; @tr2_dst_get_trace_fd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	b	LBB0_12
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #8]
	bl	_tr2_sysenv_get
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_11
; %bb.6:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.7:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.9:
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_atoi
	str	w0, [x19, #4]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	str	wzr, [x19, #4]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh8:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	w0, [x19, #4]
	b	LBB0_12
LBB0_14:
	mov	x0, x20
	bl	_is_absolute_path
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_is_directory
	cbz	x0, LBB0_19
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tr2_dst_try_auto_path
LBB0_17:
Lloh11:
	adrp	x8, _PREFIX_AF_UNIX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PREFIX_AF_UNIX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_starts_with
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tr2_dst_try_unix_domain_socket
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tr2_dst_try_path
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_tr2_dst_malformed_warning
	mov	x0, x19
	bl	_tr2_dst_trace_disable
	mov	w0, #0
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"false"

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

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

	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_PREFIX_AF_UNIX,4,2             ; @PREFIX_AF_UNIX
.subsections_via_symbols
