	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function network_mysqld_admin_plugin_apply_config
_network_mysqld_admin_plugin_apply_config: ## @network_mysqld_admin_plugin_apply_config
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	cmpl	$0, 28(%rsi)
	je	LBB0_4
## %bb.5:
	cmpl	$0, 24(%rbx)
	je	LBB0_6
## %bb.7:
	movq	%rdi, %r14
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_g_strdup_printf
	movq	%rax, 16(%rbx)
LBB0_9:
	xorl	%eax, %eax
	callq	_network_mysqld_con_new
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_add_connection
	movq	%rbx, 8(%r12)
	movq	%r12, 8(%rbx)
	xorl	%eax, %eax
	callq	_network_socket_new
	movq	%rax, %r15
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_network_mysqld_server_connection_init
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	callq	_network_address_set_address
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_network_socket_bind
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	4(%r15), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_network_mysqld_admin_con_accept@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %r8
	callq	_event_set
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_event_base_set
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_event_add
	jmp	LBB0_12
LBB0_1:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_g_critical
	movl	$-1, %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Failed to get bind address, please set by --admin-address=<host:port>"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
L_.str.1:                               ## @.str.1
	.asciz	"%s: --admin-username needs to be set"

L_.str.2:                               ## @.str.2
	.asciz	"%s: --admin-password needs to be set"

L_.str.3:                               ## @.str.3
	.asciz	"%s/lib/mysql-proxy/lua/admin.lua"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_network_mysqld_admin_con_accept,4,2 ## @network_mysqld_admin_con_accept
	.no_dead_strip	_network_mysqld_admin_plugin_apply_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function network_mysqld_admin_plugin_apply_config
_network_mysqld_admin_plugin_apply_config: ; @network_mysqld_admin_plugin_apply_config
	.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	w8, [x1]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #28]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_10
; %bb.3:
	mov	x19, x0
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_g_strdup_printf
	str	x0, [x21, #16]
LBB0_5:
	bl	_network_mysqld_con_new
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_network_mysqld_add_connection
	str	x21, [x22, #8]
	str	x22, [x21, #8]
	bl	_network_socket_new
	mov	x20, x0
	str	x0, [x22]
	mov	x0, x22
	bl	_network_mysqld_server_connection_init
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_network_address_set_address
	cbnz	x0, LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_network_socket_bind
	cbnz	x0, LBB0_12
; %bb.7:
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x8, _EV_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh4:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh8:
	adrp	x8, _network_mysqld_admin_con_accept@GOTPAGE
Lloh9:
	ldr	x8, [x8, _network_mysqld_admin_con_accept@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x22
	bl	_event_set
	ldr	w0, [x19]
	mov	x1, x20
	bl	_event_base_set
	mov	x0, x20
	mov	x1, #0
	bl	_event_add
	mov	w0, #0
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_g_critical
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Failed to get bind address, please set by --admin-address=<host:port>"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
l_.str.1:                               ; @.str.1
	.asciz	"%s: --admin-username needs to be set"

l_.str.2:                               ; @.str.2
	.asciz	"%s: --admin-password needs to be set"

l_.str.3:                               ; @.str.3
	.asciz	"%s/lib/mysql-proxy/lua/admin.lua"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_network_mysqld_admin_con_accept,4,2 ; @network_mysqld_admin_con_accept
	.no_dead_strip	_network_mysqld_admin_plugin_apply_config
.subsections_via_symbols
