	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fmtstr
_fmtstr:                                ## @fmtstr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	leaq	L_.str(%rip), %r12
	cmovneq	%rcx, %r12
	movl	16(%rbp), %ecx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movl	16(%rbp), %eax
	movl	%eax, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r12,%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.4:
	movl	16(%rbp), %eax
                                        ## kill: def $eax killed $eax killed $rax def $rax
LBB0_5:
	subl	%eax, %r9d
	testl	%r9d, %r9d
	cmovlel	%ebx, %r9d
	movq	_DP_F_MINUS@GOTPCREL(%rip), %rax
	movl	%r9d, %r14d
	negl	%r14d
	testl	%r8d, (%rax)
	cmovel	%r9d, %r14d
	testl	%r14d, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.7:
	movl	16(%rbp), %eax
	movq	%rdx, %r13
	testl	%eax, %eax
	jle	LBB0_8
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	$32, %ecx
	callq	_DOPR_OUTCH
	leal	-1(%r15), %r14d
	incl	%ebx
	cmpl	$2, %r15d
	jb	LBB0_8
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	16(%rbp), %eax
	cmpl	%eax, %ebx
	jl	LBB0_22
	jmp	LBB0_8
LBB0_6:
	movq	%rdx, %r13
LBB0_8:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_9
## %bb.17:
	movl	16(%rbp), %ecx
	cmpl	%ecx, %ebx
	movq	%r13, %r15
	jge	LBB0_10
## %bb.18:
	incq	%r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movsbl	%al, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_DOPR_OUTCH
	incl	%ebx
	movzbl	(%r12), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r12
	movl	16(%rbp), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_19
	jmp	LBB0_11
LBB0_9:
	movq	%r13, %r15
LBB0_10:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	testl	%r14d, %r14d
	jns	LBB0_16
## %bb.12:
	movl	16(%rbp), %eax
	cmpl	%eax, %ebx
	jge	LBB0_16
## %bb.13:
	incl	%ebx
	incl	%r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$32, %ecx
	callq	_DOPR_OUTCH
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	1(%rbx), %eax
	incl	%r14d
	movl	16(%rbp), %ecx
	cmpl	%ecx, %ebx
	movl	%eax, %ebx
	jl	LBB0_14
LBB0_16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<NULL>"

	.comm	_DP_F_MINUS,4,2                 ## @DP_F_MINUS
	.no_dead_strip	_fmtstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fmtstr
_fmtstr:                                ; @fmtstr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x6
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x3, #0
	csel	x24, x8, x3, eq
	cmp	w6, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	mov	w9, w19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x24, x8]
	cbz	w10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x9
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	sub	w8, w5, w8
Lloh2:
	adrp	x9, _DP_F_MINUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DP_F_MINUS@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
Lloh4:
	ldr	w9, [x9]
	tst	w9, w4
	cneg	w25, w8, ne
	cmp	w25, #1
	mov	w23, #0
	ccmp	w19, #1, #8, ge
	b.lt	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x25
	ldr	x1, [x21]
	mov	x0, x22
	mov	x2, x20
	mov	w3, #32
	bl	_DOPR_OUTCH
	sub	w25, w25, #1
	add	w23, w23, #1
	cmp	w26, #2
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w23, w19
	b.lt	LBB0_7
LBB0_9:
	ldrb	w8, [x24]
	cmp	w8, #0
	ccmp	w23, w19, #0, ne
	b.ge	LBB0_12
; %bb.10:
	add	x24, x24, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21]
	sxtb	w3, w8
	mov	x0, x22
	mov	x2, x20
	bl	_DOPR_OUTCH
	add	w23, w23, #1
	ldrb	w8, [x24], #1
	cmp	w8, #0
	ccmp	w23, w19, #0, ne
	b.lt	LBB0_11
LBB0_12:
	tbz	w25, #31, LBB0_17
; %bb.13:
	cmp	w23, w19
	b.ge	LBB0_17
; %bb.14:
	add	w24, w23, #1
	add	w23, w25, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21]
	mov	x0, x22
	mov	x2, x20
	mov	w3, #32
	bl	_DOPR_OUTCH
	cbz	w23, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w8, w24, #1
	add	w23, w23, #1
	cmp	w24, w19
	mov	x24, x8
	b.lt	LBB0_15
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<NULL>"

	.comm	_DP_F_MINUS,4,2                 ; @DP_F_MINUS
	.no_dead_strip	_fmtstr
.subsections_via_symbols
