	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jq_compile_args                ## -- Begin function jq_compile_args
	.p2align	4, 0x90
_jq_compile_args:                       ## @jq_compile_args
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_jv_nomem_handler
	movl	%r15d, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_ARRAY@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_jv_get_kind
	movq	_JV_KIND_OBJECT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	callq	_assert
	movq	%r14, %rdi
	callq	_strlen
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_locfile_init
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_jq_reset
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_bytecode_free
	movq	$0, (%r12)
LBB0_4:
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_load_program
	testl	%eax, %eax
	je	LBB0_5
## %bb.11:
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_jv_free
	jmp	LBB0_7
LBB0_5:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_builtins_bind
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	-36(%rbp), %ebx
	movl	%r15d, %edi
	callq	_args2obj
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_block_compile
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	cmpl	$2, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmovgeq	%rax, %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_jv_string_fmt
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_jq_report_error
LBB0_8:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_optimize
	movq	%rax, (%r12)
LBB0_10:
	movq	%r14, %rdi
	callq	_locfile_free
	xorl	%eax, %eax
	cmpq	$0, (%r12)
	setne	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_ARRAY,8,3              ## @JV_KIND_ARRAY
	.comm	_JV_KIND_OBJECT,8,3             ## @JV_KIND_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<top-level>"

L_.str.1:                               ## @.str.1
	.asciz	"jq: %d compile %s"

L_.str.2:                               ## @.str.2
	.asciz	"errors"

L_.str.3:                               ## @.str.3
	.asciz	"error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jq_compile_args                ; -- Begin function jq_compile_args
	.p2align	2
_jq_compile_args:                       ; @jq_compile_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	bl	_jv_nomem_handler
	mov	x0, x20
	bl	_jv_get_kind
Lloh0:
	adrp	x8, _JV_KIND_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JV_KIND_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_jv_get_kind
Lloh3:
	adrp	x8, _JV_KIND_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JV_KIND_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_3:
	bl	_assert
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_locfile_init
	mov	x21, x0
	mov	x0, x19
	bl	_jq_reset
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_bytecode_free
	str	xzr, [x19]
LBB0_5:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_load_program
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
	mov	x0, x20
	bl	_jv_free
	b	LBB0_9
LBB0_7:
	add	x1, sp, #12
	mov	x0, x19
	bl	_builtins_bind
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w22, [sp, #12]
	mov	x0, x20
	bl	_args2obj
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_block_compile
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #1
	csel	x2, x9, x8, gt
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_jv_string_fmt
	mov	x1, x0
	mov	x0, x19
	bl	_jq_report_error
LBB0_10:
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_optimize
	str	x0, [x19]
LBB0_12:
	mov	x0, x21
	bl	_locfile_free
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_ARRAY,8,3              ; @JV_KIND_ARRAY
	.comm	_JV_KIND_OBJECT,8,3             ; @JV_KIND_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<top-level>"

l_.str.1:                               ; @.str.1
	.asciz	"jq: %d compile %s"

l_.str.2:                               ; @.str.2
	.asciz	"errors"

l_.str.3:                               ; @.str.3
	.asciz	"error"

.subsections_via_symbols
