	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_queue_add
_proxy_queue_add:                       ## @proxy_queue_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_luaL_checkself
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_luaL_checkinteger
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_luaL_checklstring
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_g_string_sized_new
	movq	%rax, %r14
	movq	-56(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_g_string_append_len
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_injection_new
	movq	%rax, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_lua_istable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$4, %edx
	movl	$-1, %ecx
	callq	_luaL_opt
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_lua_getfield
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_lua_isnil
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_lua_isboolean
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_lua_toboolean
	movl	%eax, (%r12)
LBB0_5:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_lua_pop
LBB0_12:
	cmpl	$128, %r15d
	je	LBB0_15
LBB0_13:
	cmpl	$129, %r15d
	jne	LBB0_16
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_network_injection_queue_append
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_11:
	movq	%r13, %rdi
	callq	_proxy_lua_dumpstack_verbose
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_luaL_typerror
	cmpl	$128, %r15d
	jne	LBB0_13
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_network_injection_queue_prepend
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	callq	_g_assert_not_reached
                                        ## implicit-def: $eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$128, %r15d
	je	LBB0_10
## %bb.7:
	cmpl	$129, %r15d
	jne	LBB0_5
## %bb.8:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.2(%rip), %rdx
LBB0_9:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_luaL_argerror
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_lua_istable,4,2                ## @lua_istable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resultset_is_needed"

L_.str.1:                               ## @.str.1
	.asciz	":append(..., { resultset_is_needed = boolean } ), is %s"

L_.str.2:                               ## @.str.2
	.asciz	":prepend(..., { resultset_is_needed = boolean } ), is %s"

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

	.no_dead_strip	_proxy_queue_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_queue_add
_proxy_queue_add:                       ; @proxy_queue_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	bl	_luaL_checkself
	ldr	x19, [x0]
	mov	x0, x21
	mov	w1, #2
	bl	_luaL_checkinteger
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #3
	bl	_luaL_checklstring
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_g_string_sized_new
	mov	x24, x0
	ldr	x2, [sp, #8]
	mov	x1, x23
	bl	_g_string_append_len
	mov	x0, x22
	mov	x1, x24
	bl	_injection_new
	mov	x22, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _lua_istable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lua_istable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #4
	mov	w3, #-1
	bl	_luaL_opt
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.2:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_lua_getfield
	mov	x0, x21
	mov	w1, #-1
	bl	_lua_isnil
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	w1, #-1
	bl	_lua_isboolean
	cbz	w0, LBB0_13
; %bb.4:
	mov	x0, x21
	mov	w1, #-1
	bl	_lua_toboolean
	str	w0, [x22]
LBB0_5:
	mov	x0, x21
	mov	w1, #1
	bl	_lua_pop
LBB0_6:
	cmp	w20, #128
	b.eq	LBB0_10
LBB0_7:
	cmp	w20, #129
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x19
	mov	x1, x22
	bl	_network_injection_queue_append
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	bl	_proxy_lua_dumpstack_verbose
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_luaL_typerror
	cmp	w20, #128
	b.ne	LBB0_7
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_network_injection_queue_prepend
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	bl	_g_assert_not_reached
                                        ; implicit-def: $w0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	cmp	w20, #128
	b.eq	LBB0_16
; %bb.14:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.15:
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_17:
	mov	x0, x21
	mov	w1, #4
	bl	_luaL_argerror
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_lua_istable,4,2                ; @lua_istable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resultset_is_needed"

l_.str.1:                               ; @.str.1
	.asciz	":append(..., { resultset_is_needed = boolean } ), is %s"

l_.str.2:                               ; @.str.2
	.asciz	":prepend(..., { resultset_is_needed = boolean } ), is %s"

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

	.no_dead_strip	_proxy_queue_add
.subsections_via_symbols
