	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_resultset_fields_get
_proxy_resultset_fields_get:            ## @proxy_resultset_fields_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_luaL_checkself
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkinteger
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r14), %rdx
	movq	_G_MAXINT@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jg	LBB0_6
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	cmpl	%edx, %eax
	jg	LBB0_3
## %bb.4:
	movq	8(%r14), %rcx
	decl	%eax
	movq	(%rcx,%rax,8), %r14
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_lua_newuserdata
	movq	%r14, (%rax)
	movq	_methods_proxy_resultset_fields_field@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_proxy_getmetatable
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setmetatable
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_lua_pushnil
LBB0_5:
	movl	$1, %ecx
LBB0_6:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_MAXINT,8,3                   ## @G_MAXINT
	.comm	_methods_proxy_resultset_fields_field,4,2 ## @methods_proxy_resultset_fields_field
	.no_dead_strip	_proxy_resultset_fields_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_resultset_fields_get
_proxy_resultset_fields_get:            ; @proxy_resultset_fields_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_luaL_checkself
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checkinteger
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _G_MAXINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _G_MAXINT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	subs	w9, w0, #1
	b.lt	LBB0_5
; %bb.3:
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x20, [x8, w9, uxtw #3]
	mov	x0, x19
	mov	w1, #8
	bl	_lua_newuserdata
	str	x20, [x0]
Lloh3:
	adrp	x8, _methods_proxy_resultset_fields_field@GOTPAGE
Lloh4:
	ldr	x8, [x8, _methods_proxy_resultset_fields_field@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_proxy_getmetatable
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setmetatable
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_lua_pushnil
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_G_MAXINT,8,3                   ; @G_MAXINT
	.comm	_methods_proxy_resultset_fields_field,4,2 ; @methods_proxy_resultset_fields_field
	.no_dead_strip	_proxy_resultset_fields_get
.subsections_via_symbols
