	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdkre                         ## -- Begin function cmdkre
	.p2align	4, 0x90
_cmdkre:                                ## @cmdkre
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_prefix
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_s2@GOTPCREL(%rip), %rdi
	movq	_s1@GOTPCREL(%rip), %rsi
	callq	_copyinfo
	movq	_run_dev@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_devstat_getdevs
	cmpl	$1, %eax
	je	LBB0_4
## %bb.2:
	movl	$1, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.3:
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_prefix
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_BOOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_z@GOTPCREL(%rip), %rdi
	movq	_s1@GOTPCREL(%rip), %rsi
	callq	_copyinfo
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_4:
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movq	_num_devices@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_generation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MAXDRIVES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	_cur_dev@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	callq	_dscmd
	movl	%eax, %ebx
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_labelkre
	movl	$2, %ebx
LBB0_6:
	movq	_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_prefix
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_prefix
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RUN@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.13:
	movq	_s1@GOTPCREL(%rip), %rdi
	callq	_getinfo
	movq	_run_dev@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_devstat_getdevs
	cmpl	$1, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.15:
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_20
LBB0_17:
	movq	_MAXDRIVES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cur_dev@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	jmp	LBB0_18
LBB0_16:
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	movq	_num_devices@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_generation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MAXDRIVES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	_cur_dev@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
LBB0_18:
	callq	_dscmd
	movl	%eax, %ebx
	cmpl	$2, %eax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_labelkre
	movl	$2, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"run"

	.comm	_s2,4,2                         ## @s2
	.comm	_s1,4,2                         ## @s1
	.comm	_run_dev,8,3                    ## @run_dev
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ## @devstat_errbuf
	.comm	_num_devices,4,2                ## @num_devices
	.comm	_generation,4,2                 ## @generation
L_.str.2:                               ## @.str.2
	.asciz	"refresh"

	.comm	_MAXDRIVES,4,2                  ## @MAXDRIVES
	.comm	_cur_dev,4,2                    ## @cur_dev
	.comm	_RUN,8,3                        ## @RUN
	.comm	_state,8,3                      ## @state
L_.str.3:                               ## @.str.3
	.asciz	"boot"

	.comm	_BOOT,8,3                       ## @BOOT
	.comm	_z,4,2                          ## @z
L_.str.4:                               ## @.str.4
	.asciz	"time"

	.comm	_TIME,8,3                       ## @TIME
L_.str.5:                               ## @.str.5
	.asciz	"zero"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdkre                         ; -- Begin function cmdkre
	.p2align	2
_cmdkre:                                ; @cmdkre
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_prefix
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x0, _s2@GOTPAGE
Lloh3:
	ldr	x0, [x0, _s2@GOTPAGEOFF]
Lloh4:
	adrp	x1, _s1@GOTPAGE
Lloh5:
	ldr	x1, [x1, _s1@GOTPAGEOFF]
	bl	_copyinfo
Lloh6:
	adrp	x19, _run_dev@GOTPAGE
Lloh7:
	ldr	x19, [x19, _run_dev@GOTPAGEOFF]
	mov	x0, #0
	mov	x1, x19
	bl	_devstat_getdevs
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh9:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w19, #1
	mov	w0, #1
	bl	_errx
	b	LBB0_9
LBB0_4:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_prefix
	cbz	x0, LBB0_11
; %bb.5:
Lloh15:
	adrp	x8, _BOOT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BOOT@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _state@GOTPAGE
Lloh19:
	ldr	x9, [x9, _state@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
Lloh21:
	adrp	x0, _z@GOTPAGE
Lloh22:
	ldr	x0, [x0, _z@GOTPAGEOFF]
Lloh23:
	adrp	x1, _s1@GOTPAGE
Lloh24:
	ldr	x1, [x1, _s1@GOTPAGEOFF]
	bl	_copyinfo
	mov	w19, #1
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
Lloh25:
	adrp	x10, _num_devices@GOTPAGE
Lloh26:
	ldr	x10, [x10, _num_devices@GOTPAGEOFF]
Lloh27:
	str	w9, [x10]
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _generation@GOTPAGE
Lloh29:
	ldr	x9, [x9, _generation@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
Lloh31:
	adrp	x8, _MAXDRIVES@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAXDRIVES@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh36:
	adrp	x3, _cur_dev@GOTPAGE
Lloh37:
	ldr	x3, [x3, _cur_dev@GOTPAGEOFF]
	mov	x1, #0
	bl	_dscmd
	mov	x19, x0
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.7:
	bl	_labelkre
	b	LBB0_9
LBB0_8:
	mov	w19, #1
LBB0_9:
Lloh38:
	adrp	x8, _RUN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RUN@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _state@GOTPAGE
Lloh42:
	ldr	x9, [x9, _state@GOTPAGEOFF]
Lloh43:
	str	x8, [x9]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_prefix
	cbz	x0, LBB0_13
; %bb.12:
Lloh46:
	adrp	x8, _TIME@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TIME@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x9, _state@GOTPAGE
Lloh50:
	ldr	x9, [x9, _state@GOTPAGEOFF]
Lloh51:
	str	x8, [x9]
	mov	w19, #1
	b	LBB0_10
LBB0_13:
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_prefix
	cbz	x0, LBB0_19
; %bb.14:
Lloh54:
	adrp	x8, _state@GOTPAGE
Lloh55:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
Lloh57:
	adrp	x9, _RUN@GOTPAGE
Lloh58:
	ldr	x9, [x9, _RUN@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.15:
Lloh60:
	adrp	x0, _s1@GOTPAGE
Lloh61:
	ldr	x0, [x0, _s1@GOTPAGEOFF]
	bl	_getinfo
Lloh62:
	adrp	x19, _run_dev@GOTPAGE
Lloh63:
	ldr	x19, [x19, _run_dev@GOTPAGEOFF]
	mov	x0, #0
	mov	x1, x19
	bl	_devstat_getdevs
	cmp	w0, #1
	b.eq	LBB0_20
; %bb.16:
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh64:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh65:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
Lloh67:
	adrp	x1, l_.str.1@PAGE
Lloh68:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w19, #1
	mov	w0, #1
	bl	_errx
	b	LBB0_10
LBB0_18:
	mov	w19, #1
	b	LBB0_10
LBB0_19:
Lloh69:
	adrp	x8, _MAXDRIVES@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MAXDRIVES@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
Lloh72:
	adrp	x3, _cur_dev@GOTPAGE
Lloh73:
	ldr	x3, [x3, _cur_dev@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	b	LBB0_21
LBB0_20:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
Lloh74:
	adrp	x10, _num_devices@GOTPAGE
Lloh75:
	ldr	x10, [x10, _num_devices@GOTPAGEOFF]
Lloh76:
	str	w9, [x10]
	ldr	w8, [x8]
Lloh77:
	adrp	x9, _generation@GOTPAGE
Lloh78:
	ldr	x9, [x9, _generation@GOTPAGEOFF]
Lloh79:
	str	w8, [x9]
Lloh80:
	adrp	x8, _MAXDRIVES@GOTPAGE
Lloh81:
	ldr	x8, [x8, _MAXDRIVES@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
Lloh83:
	adrp	x0, l_.str.2@PAGE
Lloh84:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh85:
	adrp	x3, _cur_dev@GOTPAGE
Lloh86:
	ldr	x3, [x3, _cur_dev@GOTPAGEOFF]
	mov	x1, #0
LBB0_21:
	bl	_dscmd
	mov	x19, x0
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.22:
	bl	_labelkre
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotStr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"run"

	.comm	_s2,4,2                         ; @s2
	.comm	_s1,4,2                         ; @s1
	.comm	_run_dev,8,3                    ; @run_dev
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ; @devstat_errbuf
	.comm	_num_devices,4,2                ; @num_devices
	.comm	_generation,4,2                 ; @generation
l_.str.2:                               ; @.str.2
	.asciz	"refresh"

	.comm	_MAXDRIVES,4,2                  ; @MAXDRIVES
	.comm	_cur_dev,4,2                    ; @cur_dev
	.comm	_RUN,8,3                        ; @RUN
	.comm	_state,8,3                      ; @state
l_.str.3:                               ; @.str.3
	.asciz	"boot"

	.comm	_BOOT,8,3                       ; @BOOT
	.comm	_z,4,2                          ; @z
l_.str.4:                               ; @.str.4
	.asciz	"time"

	.comm	_TIME,8,3                       ; @TIME
l_.str.5:                               ; @.str.5
	.asciz	"zero"

.subsections_via_symbols
