	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vasnmprintf
_vasnmprintf:                           ## @vasnmprintf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%rcx, %rsi
	movl	%r8d, %edx
	callq	_vasprintf
	testl	%eax, %eax
	jle	LBB0_34
## %bb.1:
	movq	-64(%rbp), %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rdi
	movq	%rdi, -112(%rbp)
	callq	_malloc
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_33
## %bb.2:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r15, %rcx
	cmovbq	%rcx, %r15
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx
	movq	%rax, -56(%rbp)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	(%r14), %ecx
LBB0_4:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	cmpb	$0, (%rbx)
	je	LBB0_40
## %bb.5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$-4, %eax
	cltq
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leal	-4(%rcx), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_33:
	movq	-64(%rbp), %rdi
	callq	_free
	movl	$-1, %eax
LBB0_34:
	testq	%r14, %r14
	je	LBB0_36
## %bb.35:
	movl	$0, (%r14)
LBB0_36:
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movq	$0, (%rbx)
	movl	$-1, %eax
	jmp	LBB0_44
LBB0_38:
	movq	-64(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpb	$0, (%rbx)
	movl	%r13d, %r15d
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %r14
	je	LBB0_41
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movl	(%r14), %edx
	leaq	-92(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_mbtowc
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r13d
	movl	-92(%rbp), %edi
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_wcwidth
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_mbtowc
	xorl	%eax, %eax
	callq	_dangerous_locale
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_23
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$13, %edi
	ja	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	movl	$9728, %eax                     ## imm = 0x2600
	btl	%edi, %eax
	jae	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	movslq	%r13d, %r14
	testl	%r12d, %r12d
	jne	LBB0_17
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	addq	%r14, %rbx
	testl	%r15d, %r15d
	movl	$0, %edx
	cmovsl	%edx, %r13d
	addl	%r15d, %r13d
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_dangerous_locale
	testq	%rax, %rax
	jne	LBB0_46
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_30
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
	movl	%r13d, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%edx, %edx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=2
	incq	%rbx
	testl	%r15d, %r15d
	cmovsl	%edx, %r13d
	addl	%r15d, %r13d
	decl	%r14d
	movl	%r13d, %r15d
	cmpl	$1, %r14d
	jle	LBB0_8
LBB0_25:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	movl	$4, %r13d
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	-56(%rbp), %rax
	subq	-80(%rbp), %rax
	cmpq	-136(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=2
	cmpl	-88(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	-56(%rbp), %rcx
	movl	$4, %r8d
	callq	_grow_dst
	cmpl	$-1, %eax
	je	LBB0_39
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	-56(%rbp), %rdi
	movsbl	(%rbx), %esi
	movq	_VIS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIS_OCTAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_vis
	movl	-56(%rbp), %ecx
	movq	%rax, -56(%rbp)
	movl	%eax, %r13d
	subl	%ecx, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%r13d, %ecx
	movl	$1, %r12d
	xorl	%edx, %edx
	jmp	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rcx
	subq	-80(%rbp), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	subl	%r13d, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	subl	%esi, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	jg	LBB0_32
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	-56(%rbp), %rcx
	movl	%r13d, %r8d
	callq	_grow_dst
	cmpl	$-1, %eax
	je	LBB0_39
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	addl	-84(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r12d, %ecx
	addq	%r14, -56(%rbp)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %ecx
	jmp	LBB0_7
LBB0_39:
	movl	$1, %r12d
	movl	$-1, %r13d
	jmp	LBB0_41
LBB0_40:
	movl	$1, %r12d
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_41:
	movq	-64(%rbp), %rdi
	callq	_free
	movq	-56(%rbp), %rax
	movb	$0, (%rax)
	movq	-80(%rbp), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_43:
	xorl	%eax, %eax
	cmpl	$1, %r12d
	sbbl	%eax, %eax
	orl	%r13d, %eax
	cmpl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	cmovgel	%r13d, %eax
LBB0_44:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movl	$-1, %r13d
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.comm	_VIS_OCTAL,4,2                  ## @VIS_OCTAL
	.comm	_VIS_ALL,4,2                    ## @VIS_ALL
	.no_dead_strip	_vasnmprintf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vasnmprintf
_vasnmprintf:                           ; @vasnmprintf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	add	x0, sp, #56
	mov	x1, x3
	mov	x2, x4
	bl	_vasprintf
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x0, [sp, #56]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x0, w8
	str	x0, [sp, #32]
	bl	_malloc
	str	x0, [sp, #48]
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cmp	x9, x21
	csel	x21, x9, x21, lo
	ldr	x22, [sp, #56]
	str	x0, [sp, #40]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w9, [x20]
LBB0_4:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	ldrb	w8, [x22]
	cbz	w8, LBB0_12
; %bb.5:
	mov	w25, #0
	mov	w26, #0
	sub	w8, w21, #4
	sxtw	x28, w8
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	sub	w19, w9, #4
Lloh3:
	adrp	x24, _MB_CUR_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MB_CUR_MAX@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_16
LBB0_6:
	ldr	x0, [sp, #56]
	bl	_free
	mov	w0, #-1
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	str	wzr, [x20]
LBB0_9:
	cbz	w0, LBB0_11
; %bb.10:
	str	xzr, [x19]
	mov	w0, #-1
	b	LBB0_43
LBB0_11:
	ldr	x8, [sp, #56]
	str	x8, [x19]
	b	LBB0_43
LBB0_12:
	mov	w26, #0
	mov	w25, #0
	mov	w27, #1
	b	LBB0_40
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w27, #0
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, w23, sxtw
	cmp	w26, #0
	csel	w8, wzr, w23, lt
	add	w26, w8, w26
Lloh5:
	adrp	x24, _MB_CUR_MAX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MB_CUR_MAX@GOTPAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_40
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	ldr	w2, [x24]
	add	x0, sp, #28
	mov	x1, x22
	bl	_mbtowc
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x0
	ldr	w0, [sp, #28]
	cbz	x20, LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_wcwidth
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w27, LBB0_14
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [x24]
	mov	x0, #0
	mov	x1, #0
	bl	_mbtowc
	bl	_dangerous_locale
	cbnz	x0, LBB0_39
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w23, #1
	b	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w0, #13
	mov	w8, #1
	lsl	w8, w8, w0
	mov	w9, #9728
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w24, #0
	cbz	w27, LBB0_14
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=1
	ldp	x8, x9, [sp, #40]
	sub	x8, x8, x9
	sub	w9, w21, w23
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	sub	w10, w10, w24
	cmp	x8, w9, sxtw
	ccmp	w25, w10, #0, lt
	b.gt	LBB0_13
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x0, sp, #48
	add	x1, sp, #32
	add	x3, sp, #40
	mov	x2, x21
	mov	x4, x23
	bl	_grow_dst
	cmn	w0, #1
	b.eq	LBB0_38
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w25, w24, w25
	ldr	x0, [sp, #40]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [sp, #40]
	add	x8, x8, w23, sxtw
	str	x8, [sp, #40]
	mov	w27, #1
	b	LBB0_14
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_dangerous_locale
	cbnz	x0, LBB0_39
LBB0_29:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w23, #1
Lloh7:
	adrp	x24, _MB_CUR_MAX@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MB_CUR_MAX@GOTPAGEOFF]
	b.lt	LBB0_15
LBB0_30:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w23, w23, #1
	b	LBB0_34
LBB0_31:                                ;   in Loop: Header=BB0_34 Depth=2
	mov	w27, #0
LBB0_32:                                ;   in Loop: Header=BB0_34 Depth=2
	mov	w8, #4
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x22, x22, #1
	cmp	w26, #0
	csel	w8, wzr, w8, lt
	add	w26, w8, w26
	sub	w23, w23, #1
	cmp	w23, #1
	b.le	LBB0_15
LBB0_34:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w27, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	ldp	x8, x9, [sp, #40]
	sub	x8, x8, x9
	cmp	x8, x28
	ccmp	w25, w19, #0, lt
	b.gt	LBB0_31
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x0, sp, #48
	add	x1, sp, #32
	add	x3, sp, #40
	mov	x2, x21
	mov	w4, #4
	bl	_grow_dst
	cmn	w0, #1
	b.eq	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=2
	ldr	x0, [sp, #40]
	ldrsb	w1, [x22]
Lloh9:
	adrp	x8, _VIS_OCTAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIS_OCTAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VIS_ALL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIS_ALL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w3, #0
	bl	_vis
	ldr	w8, [sp, #40]
	sub	w8, w0, w8
	add	w25, w25, w8
	str	x0, [sp, #40]
	mov	w27, #1
	b	LBB0_33
LBB0_38:
	mov	w27, #1
LBB0_39:
	mov	w26, #-1
LBB0_40:
	ldr	x0, [sp, #56]
	bl	_free
	ldr	x8, [sp, #40]
	strb	wzr, [x8]
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x9]
	cbz	x20, LBB0_42
; %bb.41:
	str	w25, [x20]
LBB0_42:
	cmp	w27, #0
	ccmp	w26, w21, #0, eq
	csinv	w0, w26, wzr, ge
LBB0_43:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.comm	_VIS_OCTAL,4,2                  ; @VIS_OCTAL
	.comm	_VIS_ALL,4,2                    ; @VIS_ALL
	.no_dead_strip	_vasnmprintf
.subsections_via_symbols
