	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_trace_fd
_get_trace_fd:                          ## @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)
	jne	LBB0_19
## %bb.1:
	movl	12(%rbx), %edi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.10:
	movsbl	(%r14), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, 4(%rbx)
	jmp	LBB0_18
LBB0_5:
	movl	$0, 4(%rbx)
LBB0_18:
	movl	$1, (%rbx)
LBB0_19:
	movl	4(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_18
LBB0_12:
	movq	%r14, %rdi
	callq	_is_absolute_path
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, 4(%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_18
LBB0_16:
	movl	12(%rbx), %eax
	movslq	%eax, %rcx
	leaq	L_.str.6(%rip), %rdi
	movq	%rcx, %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_17
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rdx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warning
LBB0_17:
	movq	%rbx, %rdi
	callq	_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	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.5:                               ## @.str.5
	.asciz	"could not open '%s' for tracing: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.6:                               ## @.str.6
	.asciz	"unknown trace value for '%s': %s\n         If you want to trace into a file, then please set %s\n         to an absolute pathname (starting with /)"

	.no_dead_strip	_get_trace_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_trace_fd
_get_trace_fd:                          ; @get_trace_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_12
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_getenv
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_10
; %bb.5:
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.6:
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.7:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.8:
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_atoi
	str	w0, [x19, #4]
	b	LBB0_11
LBB0_10:
	str	wzr, [x19, #4]
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh8:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_14:
	mov	x0, x20
	bl	_is_absolute_path
	cbz	x0, LBB0_17
; %bb.15:
Lloh11:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #438
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.16:
	mov	w8, #1
	stp	w0, w8, [x19, #4]
	b	LBB0_11
LBB0_17:
	ldrsw	x1, [x19, #12]
	str	x1, [sp]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x20
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
LBB0_19:
	bl	_warning
	mov	x0, x19
	bl	_trace_disable
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.5:                               ; @.str.5
	.asciz	"could not open '%s' for tracing: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.6:                               ; @.str.6
	.asciz	"unknown trace value for '%s': %s\n         If you want to trace into a file, then please set %s\n         to an absolute pathname (starting with /)"

	.no_dead_strip	_get_trace_fd
.subsections_via_symbols
