	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_sysvars
_read_sysvars:                          ## @read_sysvars
	.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
	xorl	%eax, %eax
	callq	_ctlsysstatus
	movl	%eax, %edi
	callq	_htons
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_res_authokay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ctl_sys_num_events@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_2:
	movq	_CS_MAXCODE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_ext_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_count_var
	cltq
	leaq	(%rbx,%rax), %r15
	incq	%r15
	movq	%r15, %rdi
	callq	_emalloc_zero
	movq	%rax, %r14
	movq	_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-56(%rbp), %rsi
	callq	_ctl_getitem
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %rbx
	movq	_EOV@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpq	%r15, 8(%rbx)
	setb	%dil
	callq	_INSIST
	movq	8(%rbx), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%r14,%rbx,4)
	movq	_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_ctl_getitem
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ext_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_ctl_getitem
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %ecx
	testl	%ecx, (%r13)
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rax
	movq	_CS_MAXCODE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rbx
	incq	%rbx
	xorl	%edi, %edi
	cmpq	%r15, %rbx
	setb	%dil
	callq	_INSIST
	jmp	LBB0_12
LBB0_24:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_def_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_27
## %bb.25:
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	callq	_ctl_putsys
	movl	(%rbx), %edi
	addq	$4, %rbx
	testl	%edi, %edi
	jne	LBB0_26
LBB0_27:
	movq	_ext_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.28:
	movq	_EOV@GOTPCREL(%rip), %r15
	movl	(%rbx), %eax
	testl	%eax, (%r15)
	jne	LBB0_33
## %bb.29:
	addq	$24, %rbx
	movq	_DEF@GOTPCREL(%rip), %r12
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	(%rbx), %eax
	addq	$24, %rbx
	testl	%eax, (%r15)
	jne	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%r12)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-8(%rbx), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ctl_putdata
	jmp	LBB0_32
LBB0_13:
	movq	_CS_MAXCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.20:
	movl	$1, %ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	ja	LBB0_15
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r14,%rbx,4)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%ebx, %edi
	callq	_ctl_putsys
	movq	_CS_MAXCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_7:
	movq	_CERR_BADVALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_CERR_UNKNOWNVAR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_ctl_error
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_34
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rcx
	incq	%rcx
	cmpq	%r15, %rcx
	jae	LBB0_33
## %bb.16:
	movl	$1, %ebx
	movl	$16, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%eax, %rdx
	leaq	(%r14,%rdx), %rcx
	addq	$2, %rcx
	incq	%r14
	addq	%rbx, %rdx
	incq	%rdx
	incq	%rbx
	addq	$24, %r13
	cmpq	%r15, %rdx
	jae	LBB0_33
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_ext_sys_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ctl_putdata
	movq	_CS_MAXCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_33:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%edi, %edi
	callq	_ctl_flushpkt
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rpkt,4,2                       ## @rpkt
	.comm	_res_authokay,8,3               ## @res_authokay
	.comm	_ctl_sys_num_events,8,3         ## @ctl_sys_num_events
	.comm	_CS_MAXCODE,4,2                 ## @CS_MAXCODE
	.comm	_ext_sys_var,8,3                ## @ext_sys_var
	.comm	_sys_var,8,3                    ## @sys_var
	.comm	_EOV,4,2                        ## @EOV
	.comm	_CERR_BADVALUE,4,2              ## @CERR_BADVALUE
	.comm	_CERR_UNKNOWNVAR,4,2            ## @CERR_UNKNOWNVAR
	.comm	_def_sys_var,8,3                ## @def_sys_var
	.comm	_DEF,4,2                        ## @DEF
	.no_dead_strip	_read_sysvars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_sysvars
_read_sysvars:                          ; @read_sysvars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_ctlsysstatus
	bl	_htons
Lloh0:
	adrp	x8, _rpkt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rpkt@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _res_authokay@GOTPAGE
Lloh4:
	ldr	x8, [x8, _res_authokay@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ctl_sys_num_events@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ctl_sys_num_events@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
LBB0_2:
Lloh9:
	adrp	x23, _CS_MAXCODE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CS_MAXCODE@GOTPAGEOFF]
	ldrsw	x19, [x23]
Lloh11:
	adrp	x22, _ext_sys_var@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ext_sys_var@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_count_var
	add	x8, x19, w0, sxtw
	add	x20, x8, #1
	mov	x0, x20
	bl	_emalloc_zero
	mov	x19, x0
Lloh13:
	adrp	x24, _sys_var@GOTPAGE
Lloh14:
	ldr	x24, [x24, _sys_var@GOTPAGEOFF]
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_ctl_getitem
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
Lloh15:
	adrp	x25, _EOV@GOTPAGE
Lloh16:
	ldr	x25, [x25, _EOV@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, x20
	cset	w0, lo
	bl	_INSIST
	ldr	x21, [x21, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w26, [x19, x21, lsl #2]
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_ctl_getitem
	mov	x21, x0
	cbz	x0, LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22]
	add	x1, sp, #8
	bl	_ctl_getitem
	cbz	x0, LBB0_30
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x0]
	tst	w9, w8
	b.ne	LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0, #8]
	ldrsw	x9, [x23]
	add	x8, x8, x9
	add	x21, x8, #1
	cmp	x21, x20
	cset	w0, lo
	bl	_INSIST
	b	LBB0_5
LBB0_10:
Lloh17:
	adrp	x8, _def_sys_var@GOTPAGE
Lloh18:
	ldr	x8, [x8, _def_sys_var@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w0, [x8]
	cbz	w0, LBB0_13
; %bb.11:
	add	x20, x8, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_ctl_putsys
	ldr	w0, [x20], #4
	cbnz	w0, LBB0_12
LBB0_13:
	ldr	x9, [x22]
	cbz	x9, LBB0_29
; %bb.14:
Lloh20:
	adrp	x21, _EOV@GOTPAGE
Lloh21:
	ldr	x21, [x21, _EOV@GOTPAGEOFF]
	ldr	w10, [x21]
	ldr	w8, [x9]
	tst	w8, w10
	b.ne	LBB0_29
; %bb.15:
	add	x22, x9, #24
Lloh22:
	adrp	x23, _DEF@GOTPAGE
Lloh23:
	ldr	x23, [x23, _DEF@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w9, [x21]
	ldr	w8, [x22], #24
	tst	w8, w9
	b.ne	LBB0_29
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldur	x20, [x22, #-8]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_ctl_putdata
	b	LBB0_16
LBB0_19:
	ldr	w8, [x23]
	cbz	w8, LBB0_24
; %bb.20:
	mov	w21, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.hi	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, x21, lsl #2]
	cbz	w9, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x21
	bl	_ctl_putsys
	ldr	w8, [x23]
	b	LBB0_21
LBB0_24:
	mov	x9, x8
	sxtw	x9, w9
	add	x9, x9, #1
	cmp	x9, x20
	b.hs	LBB0_29
; %bb.25:
	mov	x26, #0
	mov	w24, #1
	mov	w25, #16
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	sxtw	x10, w8
	add	x9, x26, x10
	add	x26, x26, #1
	add	x9, x9, #2
	add	x24, x24, #1
	add	x25, x25, #24
	add	x10, x10, x24
	cmp	x10, x20
	b.hs	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, x9, lsl #2]
	cbz	w9, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x22]
	ldr	x21, [x8, x25]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_ctl_putdata
	ldr	w8, [x23]
	b	LBB0_26
LBB0_29:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	bl	_ctl_flushpkt
	b	LBB0_33
LBB0_30:
Lloh24:
	adrp	x8, _CERR_BADVALUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CERR_BADVALUE@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
Lloh26:
	adrp	x8, _CERR_UNKNOWNVAR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CERR_UNKNOWNVAR@GOTPAGEOFF]
LBB0_32:
	ldr	w0, [x8]
	bl	_ctl_error
	mov	x0, x19
	bl	_free
LBB0_33:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_rpkt,4,2                       ; @rpkt
	.comm	_res_authokay,8,3               ; @res_authokay
	.comm	_ctl_sys_num_events,8,3         ; @ctl_sys_num_events
	.comm	_CS_MAXCODE,4,2                 ; @CS_MAXCODE
	.comm	_ext_sys_var,8,3                ; @ext_sys_var
	.comm	_sys_var,8,3                    ; @sys_var
	.comm	_EOV,4,2                        ; @EOV
	.comm	_CERR_BADVALUE,4,2              ; @CERR_BADVALUE
	.comm	_CERR_UNKNOWNVAR,4,2            ; @CERR_UNKNOWNVAR
	.comm	_def_sys_var,8,3                ; @def_sys_var
	.comm	_DEF,4,2                        ; @DEF
	.no_dead_strip	_read_sysvars
.subsections_via_symbols
