	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_backends_set
_proxy_backends_set:                    ## @proxy_backends_set
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_luaL_checkself
	movq	(%rax), %r14
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r15
	movl	-36(%rbp), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	callq	_g_strdup
	movq	%rax, %rbx
	movq	_BACKEND_TYPE_RO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movl	-36(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	callq	_g_strdup
	movq	%rax, %rbx
	movq	_BACKEND_TYPE_RW@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_network_backends_add
LBB0_5:
	movq	%rbx, %rdi
	callq	_g_free
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-36(%rbp), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_tointeger
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_network_backends_remove
	jmp	LBB0_6
LBB0_10:
	movl	-36(%rbp), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	callq	_g_strdup
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_network_backends_addclient
	jmp	LBB0_5
LBB0_12:
	movl	-36(%rbp), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movl	%eax, %edi
	callq	_g_strdup
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_network_backends_removeclient
	jmp	LBB0_5
LBB0_14:
	movl	-36(%rbp), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_network_backends_save
	jmp	LBB0_6
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_luaL_error
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addslave"

	.comm	_BACKEND_TYPE_RO,4,2            ## @BACKEND_TYPE_RO
L_.str.1:                               ## @.str.1
	.asciz	"addmaster"

	.comm	_BACKEND_TYPE_RW,4,2            ## @BACKEND_TYPE_RW
L_.str.2:                               ## @.str.2
	.asciz	"removebackend"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"saveconfig"

L_.str.6:                               ## @.str.6
	.asciz	"proxy.global.backends.%s is not writable"

	.no_dead_strip	_proxy_backends_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_backends_set
_proxy_backends_set:                    ; @proxy_backends_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_luaL_checkself
	ldr	x19, [x0]
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #2
	bl	_luaL_checklstring
	mov	x21, x0
	ldr	w22, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tostring
	bl	_g_strdup
	mov	x20, x0
Lloh2:
	adrp	x8, _BACKEND_TYPE_RO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BACKEND_TYPE_RO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w22, [sp, #12]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tostring
	bl	_g_strdup
	mov	x20, x0
Lloh6:
	adrp	x8, _BACKEND_TYPE_RW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BACKEND_TYPE_RW@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_network_backends_add
LBB0_5:
	mov	x0, x20
	bl	_g_free
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w22, [sp, #12]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tointeger
	mov	x1, x0
	mov	x0, x19
	bl	_network_backends_remove
	b	LBB0_6
LBB0_10:
	ldr	w22, [sp, #12]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tostring
	bl	_g_strdup
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_network_backends_addclient
	b	LBB0_5
LBB0_12:
	ldr	w22, [sp, #12]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tostring
	bl	_g_strdup
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_network_backends_removeclient
	b	LBB0_5
LBB0_14:
	ldr	w22, [sp, #12]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strleq
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_network_backends_save
	b	LBB0_6
LBB0_16:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_luaL_error
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	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	"addslave"

	.comm	_BACKEND_TYPE_RO,4,2            ; @BACKEND_TYPE_RO
l_.str.1:                               ; @.str.1
	.asciz	"addmaster"

	.comm	_BACKEND_TYPE_RW,4,2            ; @BACKEND_TYPE_RW
l_.str.2:                               ; @.str.2
	.asciz	"removebackend"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"saveconfig"

l_.str.6:                               ; @.str.6
	.asciz	"proxy.global.backends.%s is not writable"

	.no_dead_strip	_proxy_backends_set
.subsections_via_symbols
