	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %ebx
	movslq	24(%rbp), %r13
	testq	%r8, %r8
	leaq	L_.str(%rip), %rdi
	cmovneq	%r8, %rdi
	movq	%r13, %rsi
	testq	%r13, %r13
	jns	LBB0_2
## %bb.1:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_2:
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_OPENSSL_strnlen
	movl	%ebx, %esi
	subl	%eax, %esi
	xorl	%ecx, %ecx
	orl	%esi, %ebx
	cmovsl	%ecx, %esi
	testq	%r13, %r13
	js	LBB0_4
## %bb.3:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	subl	%esi, %edx
	cmpl	%r13d, %edx
	leal	(%rsi,%r13), %edx
	cmovlel	%ecx, %edx
	movl	%edx, %r13d
LBB0_4:
	movq	_DP_F_MINUS@GOTPCREL(%rip), %rcx
	movl	%esi, %r14d
	negl	%r14d
	testl	%r15d, (%rcx)
	cmovel	%esi, %r14d
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r12d
	negl	%r12d
	xorl	%ebx, %ebx
	movl	%r14d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r13d, %ebx
	jge	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$32, %r8d
	callq	_doapr_outch
	testl	%eax, %eax
	je	LBB0_28
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%r15d
	incl	%ebx
	movl	%r12d, %eax
	addl	%ebx, %eax
	jne	LBB0_6
## %bb.10:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %r15d
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_22
LBB0_12:
	movl	%ebx, %r14d
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
LBB0_14:
	movq	%rax, %rbx
	addl	%r14d, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	cmpl	%r13d, %eax
	jge	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%r12), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_doapr_outch
	testl	%eax, %eax
	je	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_15
## %bb.19:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_22
LBB0_21:
	addl	%r12d, %r14d
LBB0_22:
	movl	$1, %ebx
	testl	%r15d, %r15d
	jns	LBB0_29
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r14d
	incl	%r15d
	je	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	js	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	%r13d, %r14d
	jge	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$32, %r8d
	callq	_doapr_outch
	testl	%eax, %eax
	jne	LBB0_23
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$56, %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	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x7
	mov	x27, x6
	mov	x26, x5
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x4, #0
	csel	x24, x8, x4, eq
Lloh2:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sxtw	x9, w19
	cmp	w7, #0
	csel	x1, x8, x9, lt
	mov	x0, x24
	bl	_OPENSSL_strnlen
	mov	x25, x0
	sub	w8, w27, w25
	orr	w9, w27, w8
	cmp	w9, #0
	csel	w8, wzr, w8, lt
	tbnz	w19, #31, LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w10, w8, w19
	sub	w11, w9, w8
	cmp	w11, w19
	csel	w19, w10, w9, gt
LBB0_2:
Lloh8:
	adrp	x9, _DP_F_MINUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DP_F_MINUS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w26
	cneg	w26, w8, ne
	cmp	w26, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w27, #0
	mov	w28, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w19, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w19
	b.ge	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #32
	bl	_doapr_outch
	cbz	w0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w28, #1
	sub	w27, w27, #1
	cmp	w26, w28
	b.ne	LBB0_4
; %bb.8:
	mov	w27, #0
	cbnz	x25, LBB0_11
	b	LBB0_17
LBB0_9:
	mov	x27, x26
	mov	w26, #0
	cbnz	x25, LBB0_11
	b	LBB0_17
LBB0_10:
	add	w27, w26, w27
	mov	x26, x28
	cbz	x25, LBB0_17
LBB0_11:
	add	w28, w26, w25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w19, #31, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, w19
	b.ge	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrsb	w4, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_doapr_outch
	cbz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	add	w26, w26, #1
	subs	x25, x25, #1
	b.ne	LBB0_12
; %bb.16:
	mov	x26, x28
LBB0_17:
	tbnz	w27, #31, LBB0_20
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w19, #31, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w26, w19
	b.ge	LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #32
	bl	_doapr_outch
	cbz	w0, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	add	w26, w26, #1
	adds	w27, w27, #1
	b.lo	LBB0_20
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<NULL>"

	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_DP_F_MINUS,4,2                 ; @DP_F_MINUS
	.no_dead_strip	_fmtstr
.subsections_via_symbols
