	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_err_cb
_test_err_cb:                           ## @test_err_cb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_JV_PRINT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_jv_dump_string
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, %edi
	callq	_jv_string_value
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$9, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_jv_string_value
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
LBB0_4:
	movl	(%r14), %edi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movl	$10, %esi
	callq	_strchr
	movb	$0, (%rax)
LBB0_6:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jv_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_STRING,8,3             ## @JV_KIND_STRING
	.comm	_JV_PRINT_INVALID,4,2           ## @JV_PRINT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"jq: error"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_test_err_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_err_cb
_test_err_cb:                           ; @test_err_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_jv_get_kind
Lloh0:
	adrp	x8, _JV_KIND_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JV_KIND_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _JV_PRINT_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JV_PRINT_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_jv_dump_string
	mov	x19, x0
LBB0_2:
	mov	x0, x19
	bl	_jv_string_value
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #9
	bl	_strncmp
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w21, [x20]
	mov	x0, x19
	bl	_jv_string_value
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
LBB0_4:
	ldr	w0, [x20]
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	mov	w1, #10
	bl	_strchr
	strb	wzr, [x0]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_jv_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_STRING,8,3             ; @JV_KIND_STRING
	.comm	_JV_PRINT_INVALID,4,2           ; @JV_PRINT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jq: error"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_test_err_cb
.subsections_via_symbols
