	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_connection_get
_proxy_connection_get:                  ## @proxy_connection_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_luaL_checkself
	movq	(%rax), %r12
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r14
	movq	16(%r12), %r13
	movl	-44(%rbp), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	-44(%rbp), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movl	-44(%rbp), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_luaL_error
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-44(%rbp), %ebx
	leaq	L_.str.6(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_lua_pushinteger
	jmp	LBB0_15
LBB0_9:
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	jne	LBB0_13
LBB0_11:
	cmpq	$0, (%r12)
	je	LBB0_14
## %bb.12:
	movl	-44(%rbp), %ebx
	leaq	L_.str.8(%rip), %rdi
	callq	_C
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_lua_newuserdata
	xorl	%ecx, %ecx
	cmpb	$115, (%r14)
	sete	%cl
	movq	(%r12,%rcx,8), %rcx
	movq	%rcx, (%rax)
	movq	%r15, %rdi
	callq	_network_socket_lua_getmetatable
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_lua_setmetatable
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	callq	_lua_pushnil
LBB0_15:
	movl	$1, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default_db"

L_.str.1:                               ## @.str.1
	.asciz	"proxy.connection.default_db is deprecated, use proxy.connection.client.default_db or proxy.connection.server.default_db instead"

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

L_.str.3:                               ## @.str.3
	.asciz	"proxy.connection.thread_id is deprecated, use proxy.connection.server.thread_id instead"

L_.str.4:                               ## @.str.4
	.asciz	"mysqld_version"

L_.str.5:                               ## @.str.5
	.asciz	"proxy.connection.mysqld_version is deprecated, use proxy.connection.server.mysqld_version instead"

L_.str.6:                               ## @.str.6
	.asciz	"backend_ndx"

L_.str.7:                               ## @.str.7
	.asciz	"server"

L_.str.8:                               ## @.str.8
	.asciz	"client"

	.no_dead_strip	_proxy_connection_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_connection_get
_proxy_connection_get:                  ; @proxy_connection_get
	.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	x19, x0
	bl	_luaL_checkself
	ldr	x22, [x0]
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checklstring
	mov	x20, x0
	ldr	x23, [x22, #16]
	ldr	w21, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	w21, [sp, #12]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w21, [sp, #12]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_8
; %bb.5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_luaL_error
LBB0_7:
	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_8:
	ldr	w21, [sp, #12]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	bl	_lua_pushinteger
	b	LBB0_16
LBB0_10:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w21, [sp, #12]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbnz	x0, LBB0_14
LBB0_12:
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w21, [sp, #12]
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #4
	bl	_lua_newuserdata
	ldrb	w8, [x20]
	cmp	w8, #115
	cset	w8, eq
	ldr	x8, [x22, w8, uxtw #3]
	str	x8, [x0]
	mov	x0, x19
	bl	_network_socket_lua_getmetatable
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setmetatable
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_lua_pushnil
LBB0_16:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default_db"

l_.str.1:                               ; @.str.1
	.asciz	"proxy.connection.default_db is deprecated, use proxy.connection.client.default_db or proxy.connection.server.default_db instead"

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

l_.str.3:                               ; @.str.3
	.asciz	"proxy.connection.thread_id is deprecated, use proxy.connection.server.thread_id instead"

l_.str.4:                               ; @.str.4
	.asciz	"mysqld_version"

l_.str.5:                               ; @.str.5
	.asciz	"proxy.connection.mysqld_version is deprecated, use proxy.connection.server.mysqld_version instead"

l_.str.6:                               ; @.str.6
	.asciz	"backend_ndx"

l_.str.7:                               ; @.str.7
	.asciz	"server"

l_.str.8:                               ; @.str.8
	.asciz	"client"

	.no_dead_strip	_proxy_connection_get
.subsections_via_symbols
