	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpp_write_message
_wpp_write_message:                     ## @wpp_write_message
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_wpp_messages_capacity@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_wpp_messages@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_MESSAGEBUFFER_INITIAL_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	_wpp_messages@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	(%rbx), %ebx
	movl	%ebx, (%r12)
LBB0_4:
	movq	_wpp_messages_size@GOTPCREL(%rip), %r13
	movq	_wpp_messages@GOTPCREL(%rip), %r12
	movq	_wpp_messages_capacity@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rcx
	addq	%rcx, %rax
	subl	%ecx, %ebx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_vsnprintf
	movl	(%r14), %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	jl	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_HeapReAlloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%r12)
	movq	_wpp_messages_capacity@GOTPCREL(%rip), %r14
	movl	%ebx, (%r14)
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_9:
	addl	%eax, %ecx
	movl	%ecx, (%r13)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wpp_messages_capacity,4,2      ## @wpp_messages_capacity
	.comm	_MESSAGEBUFFER_INITIAL_SIZE,4,2 ## @MESSAGEBUFFER_INITIAL_SIZE
	.comm	_wpp_messages,8,3               ## @wpp_messages
	.comm	_wpp_messages_size,4,2          ## @wpp_messages_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reallocating memory for parser messages\n"

	.no_dead_strip	_wpp_write_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpp_write_message
_wpp_write_message:                     ; @wpp_write_message
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _wpp_messages_capacity@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wpp_messages_capacity@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh2:
	adrp	x23, _wpp_messages@GOTPAGE
Lloh3:
	ldr	x23, [x23, _wpp_messages@GOTPAGEOFF]
	cbz	w21, LBB0_2
; %bb.1:
	ldr	x0, [x23]
	b	LBB0_4
LBB0_2:
	bl	_GetProcessHeap
Lloh4:
	adrp	x21, _MESSAGEBUFFER_INITIAL_SIZE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MESSAGEBUFFER_INITIAL_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x23]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w21, [x21]
	str	w21, [x22]
LBB0_4:
Lloh6:
	adrp	x24, _wpp_messages_size@GOTPAGE
Lloh7:
	ldr	x24, [x24, _wpp_messages_size@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x24]
	add	x0, x0, x8
	sub	w1, w21, w8
	mov	x2, x20
	mov	x3, x19
	bl	_vsnprintf
	ldr	w8, [x22]
	tbnz	w0, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
	sub	w10, w8, w9
	cmp	w0, w10
	b.lt	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w21, w8, #1
	bl	_GetProcessHeap
	ldr	x2, [x23]
	mov	w1, #0
	mov	x3, x21
	bl	_HeapReAlloc
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x23]
	str	w21, [x22]
	b	LBB0_5
LBB0_9:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR
LBB0_10:
	add	w8, w9, w0
	str	w8, [x24]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_wpp_messages_capacity,4,2      ; @wpp_messages_capacity
	.comm	_MESSAGEBUFFER_INITIAL_SIZE,4,2 ; @MESSAGEBUFFER_INITIAL_SIZE
	.comm	_wpp_messages,8,3               ; @wpp_messages
	.comm	_wpp_messages_size,4,2          ; @wpp_messages_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reallocating memory for parser messages\n"

	.no_dead_strip	_wpp_write_message
.subsections_via_symbols
