	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_connection_pool_lua_add_connection ## -- Begin function network_connection_pool_lua_add_connection
	.p2align	4, 0x90
_network_connection_pool_lua_add_connection: ## @network_connection_pool_lua_add_connection
	.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
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	cmpq	$0, 16(%rax)
	jne	LBB0_3
## %bb.2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	24(%rax), %rcx
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_g_warning
	xorl	%eax, %eax
	callq	_network_mysqld_auth_response_new
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_C
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_g_string_assign_len
	movq	(%rbx), %rax
LBB0_3:
	movl	$1, (%rax)
	movq	8(%r15), %rdi
	callq	_chassis_event_thread_pool
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_network_connection_pool_add
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movl	8(%rdi), %esi
	addq	$4, %rdi
	movq	_EV_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_network_mysqld_con_idle_handle@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %r8
	callq	_event_set
	movl	8(%rbx), %edi
	movq	(%rbx), %rsi
	addq	$4, %rsi
	callq	_chassis_event_add_local
LBB0_5:
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_g_atomic_int_compare_and_exchange
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rdi
	callq	_g_atomic_int_dec_and_test
LBB0_7:
	movq	$0, 8(%r15)
	movl	$-1, (%r15)
	movq	$0, (%rbx)
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: (remove) remove socket from pool, response is NULL, src is %s, dst is %s"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
L_.str.1:                               ## @.str.1
	.asciz	"mysql_proxy_invalid_user"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_network_mysqld_con_idle_handle,4,2 ## @network_mysqld_con_idle_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_connection_pool_lua_add_connection ; -- Begin function network_connection_pool_lua_add_connection
	.p2align	2
_network_connection_pool_lua_add_connection: ; @network_connection_pool_lua_add_connection
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldp	x8, x9, [x8, #24]
	ldr	x9, [x9]
	ldr	w2, [x9]
	ldr	x8, [x8]
	ldr	w3, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_warning
	bl	_network_mysqld_auth_response_new
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	w20, [x0]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_C
	mov	x1, x0
	mov	x0, x20
	bl	_g_string_assign_len
	ldr	x8, [x19]
LBB0_3:
	mov	w9, #1
	str	w9, [x8]
	ldr	x0, [x21, #8]
	bl	_chassis_event_thread_pool
	ldr	x1, [x19]
	bl	_network_connection_pool_add
	cbz	x0, LBB0_5
; %bb.4:
	mov	x4, x0
	ldr	x8, [x19]
	add	x0, x8, #4
	ldr	w1, [x8, #8]
Lloh7:
	adrp	x8, _EV_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _network_mysqld_con_idle_handle@GOTPAGE
Lloh11:
	ldr	x8, [x8, _network_mysqld_con_idle_handle@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	bl	_event_set
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_chassis_event_add_local
LBB0_5:
	ldr	x0, [x21, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_g_atomic_int_compare_and_exchange
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x21, #8]
	bl	_g_atomic_int_dec_and_test
LBB0_7:
	str	xzr, [x21, #8]
	mov	w8, #-1
	str	w8, [x21]
	str	xzr, [x19]
LBB0_8:
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: (remove) remove socket from pool, response is NULL, src is %s, dst is %s"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
l_.str.1:                               ; @.str.1
	.asciz	"mysql_proxy_invalid_user"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_network_mysqld_con_idle_handle,4,2 ; @network_mysqld_con_idle_handle
.subsections_via_symbols
