	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_errtomsg                       ## -- Begin function errtomsg
	.p2align	4, 0x90
_errtomsg:                              ## @errtomsg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %ecx
	movq	_errmsgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	js	LBB0_7
## %bb.3:
	addq	$16, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, %edx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edx
	addq	$16, %rax
	testl	%edx, %edx
	jns	LBB0_4
LBB0_7:
	leaq	_errtomsg.ebuf(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_snprintf
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_8
LBB0_5:
	movq	-8(%rax), %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_errtomsg.ebuf,40,4 ## @errtomsg.ebuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"success"

	.comm	_errmsgs,8,3                    ## @errmsgs
L_.str.1:                               ## @.str.1
	.asciz	"error %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_errtomsg                       ; -- Begin function errtomsg
	.p2align	2
_errtomsg:                              ; @errtomsg
	.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
	cbz	w0, LBB0_6
; %bb.1:
	mov	x3, x0
Lloh0:
	adrp	x8, _errmsgs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errmsgs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_5
; %bb.2:
	add	x8, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w3
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8], #16
	tbz	w9, #31, LBB0_3
LBB0_5:
Lloh3:
	adrp	x19, _errtomsg.ebuf@PAGE
Lloh4:
	add	x19, x19, _errtomsg.ebuf@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #40
	bl	_snprintf
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldur	x19, [x8, #-8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_errtomsg.ebuf,40,0 ; @errtomsg.ebuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"success"

	.comm	_errmsgs,8,3                    ; @errmsgs
l_.str.1:                               ; @.str.1
	.asciz	"error %d"

.subsections_via_symbols
