	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_variables
_write_variables:                       ## @write_variables
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	_res_associd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.25:
	movq	_CERR_PERMISSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctl_error                      ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	callq	_ctlsysstatus
	movl	%eax, %edi
	callq	_htons
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_sys_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_ctl_getitem
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	movq	%rax, %r12
	movq	_EOV@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$61, -1(%rbx)
	movq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_set_sys_var
	movq	%r15, %rdi
	callq	_free
	movq	_sys_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_ctl_getitem
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movl	(%r12), %ebx
	movl	(%r14), %r15d
	movl	%ebx, %eax
	testl	%ebx, %r15d
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ext_sys_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_ctl_getitem
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_CAN_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %r15d
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$2, %eax
	movslq	%eax, %rdi
	callq	_emalloc
	movq	%rax, %r15
	movq	8(%r12), %rax
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpb	$61, %cl
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	incq	%rax
	movb	%cl, -1(%rbx)
	jmp	LBB0_18
LBB0_23:
	xorl	%edi, %edi
	callq	_ctl_flushpkt
	jmp	LBB0_24
LBB0_9:
	movq	_CERR_PERMISSION@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	cmpb	$0, (%rdi)
	je	LBB0_11
## %bb.14:
	leaq	-56(%rbp), %rsi
	callq	_atoint
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	movq	_LEAP_NOTINSYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	testq	%rax, -56(%rbp)
	je	LBB0_21
## %bb.16:
	movq	_CERR_BADVALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_CERR_BADFMT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_CERR_UNKNOWNVAR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_ctl_error
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_CERR_UNSPEC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_res_associd,8,3                ## @res_associd
	.comm	_CERR_PERMISSION,4,2            ## @CERR_PERMISSION
	.comm	_rpkt,4,2                       ## @rpkt
	.comm	_sys_var,4,2                    ## @sys_var
	.comm	_EOV,4,2                        ## @EOV
	.comm	_ext_sys_var,4,2                ## @ext_sys_var
	.comm	_CERR_UNKNOWNVAR,4,2            ## @CERR_UNKNOWNVAR
	.comm	_CAN_WRITE,4,2                  ## @CAN_WRITE
	.comm	_CERR_BADFMT,4,2                ## @CERR_BADFMT
	.comm	_LEAP_NOTINSYNC,8,3             ## @LEAP_NOTINSYNC
	.comm	_CERR_BADVALUE,4,2              ## @CERR_BADVALUE
	.comm	_CERR_UNSPEC,4,2                ## @CERR_UNSPEC
	.no_dead_strip	_write_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_variables
_write_variables:                       ; @write_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [sp]
Lloh0:
	adrp	x8, _res_associd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _res_associd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CERR_PERMISSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERR_PERMISSION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ctl_error
LBB0_2:
	bl	_ctlsysstatus
	bl	_htons
Lloh6:
	adrp	x8, _rpkt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rpkt@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
Lloh9:
	adrp	x23, _sys_var@GOTPAGE
Lloh10:
	ldr	x23, [x23, _sys_var@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_ctl_getitem
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
Lloh11:
	adrp	x24, _EOV@GOTPAGE
Lloh12:
	ldr	x24, [x24, _EOV@GOTPAGEOFF]
Lloh13:
	adrp	x25, _CAN_WRITE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _CAN_WRITE@GOTPAGEOFF]
	mov	w26, #61
Lloh15:
	adrp	x27, _ext_sys_var@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ext_sys_var@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x20, x8
	strb	w26, [x21], #1
	ldr	x22, [sp, #8]
	mov	x0, x22
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	mov	x0, x20
	bl	_strlen
	add	w1, w0, #1
	ldr	w2, [x19]
	mov	x0, x20
	bl	_set_sys_var
	mov	x0, x20
	bl	_free
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_ctl_getitem
	mov	x19, x0
	cbz	x0, LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [x19]
	ldr	w9, [x24]
	ands	w20, w9, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #8
	bl	_ctl_getitem
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x0
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	bl	_strlen
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #2
	sxtw	x0, w8
	bl	_emalloc
	mov	x20, x0
	mov	x8, #0
	ldr	x9, [x19, #8]
	ldrb	w10, [x9, x8]
	cbz	w10, LBB0_4
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #61
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	strb	w10, [x20, x8]
	add	x8, x8, #1
	ldrb	w10, [x9, x8]
	cbnz	w10, LBB0_12
	b	LBB0_4
LBB0_14:
	mov	w0, #0
	bl	_ctl_flushpkt
	b	LBB0_23
LBB0_15:
Lloh17:
	adrp	x8, _CERR_PERMISSION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CERR_PERMISSION@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	ldrb	w8, [x0]
	cbz	w8, LBB0_20
; %bb.17:
	mov	x1, sp
	bl	_atoint
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x8, [sp]
Lloh19:
	adrp	x9, _LEAP_NOTINSYNC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LEAP_NOTINSYNC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	bics	xzr, x8, x9
	b.eq	LBB0_24
; %bb.19:
Lloh22:
	adrp	x8, _CERR_BADVALUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CERR_BADVALUE@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh24:
	adrp	x8, _CERR_BADFMT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CERR_BADFMT@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh26:
	adrp	x8, _CERR_UNKNOWNVAR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CERR_UNKNOWNVAR@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	bl	_ctl_error
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
Lloh28:
	adrp	x8, _CERR_UNSPEC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CERR_UNSPEC@GOTPAGEOFF]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_res_associd,8,3                ; @res_associd
	.comm	_CERR_PERMISSION,4,2            ; @CERR_PERMISSION
	.comm	_rpkt,4,2                       ; @rpkt
	.comm	_sys_var,4,2                    ; @sys_var
	.comm	_EOV,4,2                        ; @EOV
	.comm	_ext_sys_var,4,2                ; @ext_sys_var
	.comm	_CERR_UNKNOWNVAR,4,2            ; @CERR_UNKNOWNVAR
	.comm	_CAN_WRITE,4,2                  ; @CAN_WRITE
	.comm	_CERR_BADFMT,4,2                ; @CERR_BADFMT
	.comm	_LEAP_NOTINSYNC,8,3             ; @LEAP_NOTINSYNC
	.comm	_CERR_BADVALUE,4,2              ; @CERR_BADVALUE
	.comm	_CERR_UNSPEC,4,2                ; @CERR_UNSPEC
	.no_dead_strip	_write_variables
.subsections_via_symbols
