	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_errmsg                     ## -- Begin function ctf_errmsg
	.p2align	4, 0x90
_ctf_errmsg:                            ## @ctf_errmsg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ECTF_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edi, %ecx
	jg	LBB0_3
## %bb.1:
	movl	%edi, %eax
	subl	%ecx, %eax
	movq	__ctf_nerr@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.2:
	movq	__ctf_errlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_3:
	callq	_ctf_strerror
LBB0_4:
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECTF_BASE,4,2                  ## @ECTF_BASE
	.comm	__ctf_nerr,4,2                  ## @_ctf_nerr
	.comm	__ctf_errlist,8,3               ## @_ctf_errlist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_errmsg                     ; -- Begin function ctf_errmsg
	.p2align	2
_ctf_errmsg:                            ; @ctf_errmsg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ECTF_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECTF_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.gt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, __ctf_nerr@GOTPAGE
Lloh4:
	ldr	x9, [x9, __ctf_nerr@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, __ctf_errlist@GOTPAGE
Lloh7:
	ldr	x9, [x9, __ctf_errlist@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
	bl	_ctf_strerror
LBB0_4:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ECTF_BASE,4,2                  ; @ECTF_BASE
	.comm	__ctf_nerr,4,2                  ; @_ctf_nerr
	.comm	__ctf_errlist,8,3               ; @_ctf_errlist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown error"

.subsections_via_symbols
