	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_vsnprintf
_event_vsnprintf:                       ## @event_vsnprintf
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_vsnprintf
	movb	$0, -1(%rbx,%r14)
	movslq	%eax, %rcx
	cmpq	%rbx, %rcx
	movl	$-1, %eax
	cmovbl	%ecx, %eax
	movl	$-1, %edx
	testl	%ecx, %ecx
	cmovsl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_event_vsnprintf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_vsnprintf
_event_vsnprintf:                       ; @event_vsnprintf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	w19, #-1
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	bl	_vsnprintf
                                        ; kill: def $w0 killed $w0 def $x0
	add	x8, x20, x21
	sturb	wzr, [x8, #-1]
	sxtw	x8, w0
	cmp	x8, x20
	ccmp	w0, w19, #4, lo
	csinv	w19, w0, wzr, gt
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_event_vsnprintf
.subsections_via_symbols
