	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tok2strbuf                     ## -- Begin function tok2strbuf
	.p2align	4, 0x90
_tok2strbuf:                            ## @tok2strbuf
	.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
	movq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpq	%rcx, 8(%rdi)
	je	LBB0_7
## %bb.3:
	addq	$24, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	16(%rdi), %rdx
	cmpq	%rcx, (%rdi)
	movq	%rdx, %rdi
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rdx
	cmovneq	%rsi, %rdx
	movq	%rbx, %rdi
	movq	%r8, %rsi
	callq	_snprintf
	movq	%rbx, %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tok2strbuf                     ; -- Begin function tok2strbuf
	.p2align	2
_tok2strbuf:                            ; @tok2strbuf
	.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, x3
	mov	x3, x2
	cbz	x0, LBB0_6
; %bb.1:
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x9, [x8, #8]
	cmp	x9, x3
	b.eq	LBB0_7
; %bb.3:
	add	x8, x8, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x8, #-8]
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8], #16
	cmp	x9, x3
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x2, x8, x1, eq
	mov	x0, x19
	mov	x1, x4
	bl	_snprintf
	mov	x0, x19
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%d"

.subsections_via_symbols
