	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RtlJSONLogError
_RtlJSONLogError:                       ## @RtlJSONLogError
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_JSON_Parser_GetError
	movq	_JSON_Error_AbortedByHandler@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_JSON_Writer_GetError
	movq	_JSON_Error_AbortedByHandler@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rdi
	callq	_JSON_Writer_GetError
	movq	%rax, %rdi
	callq	_JSON_ErrorString
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RARCH_ERR                      ## TAILCALL
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_JSON_Parser_GetError
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	8(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	callq	_JSON_Parser_GetErrorLocation
	movl	-64(%rbp), %r12d
	incl	%r12d
	movl	-80(%rbp), %r15d
	movl	-72(%rbp), %ebx
	incl	%ebx
	movq	%r14, %rdi
	callq	_JSON_ErrorString
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_Error_AbortedByHandler,8,3 ## @JSON_Error_AbortedByHandler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Invalid JSON at line %d, column %d (input byte %d) - %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: could not write output - %s.\n"

	.no_dead_strip	_RtlJSONLogError
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RtlJSONLogError
_RtlJSONLogError:                       ; @RtlJSONLogError
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x20, _JSON_Error_AbortedByHandler@GOTPAGE
Lloh1:
	ldr	x20, [x20, _JSON_Error_AbortedByHandler@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_JSON_Parser_GetError
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_2:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_JSON_Writer_GetError
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x19]
	bl	_JSON_Writer_GetError
	bl	_JSON_ErrorString
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_RARCH_ERR
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_JSON_Parser_GetError
	mov	x20, x0
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	ldr	x0, [x19, #8]
	add	x1, sp, #32
	bl	_JSON_Parser_GetErrorLocation
	ldr	w8, [sp, #48]
	ldr	w9, [sp, #40]
	add	w19, w8, #1
	add	w21, w9, #1
	ldr	x22, [sp, #32]
	mov	x0, x20
	bl	_JSON_ErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_RARCH_ERR
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_Error_AbortedByHandler,8,3 ; @JSON_Error_AbortedByHandler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Invalid JSON at line %d, column %d (input byte %d) - %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: could not write output - %s.\n"

	.no_dead_strip	_RtlJSONLogError
.subsections_via_symbols
