	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cons_change
_cons_change:                           ## @cons_change
	.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	_consoles@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	addq	$8, %rax
	movq	_C_ACTIVEIN@GOTPCREL(%rip), %rdx
	movq	_C_ACTIVEOUT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%ebx, (%rcx)
	movq	(%rax), %rcx
	addq	$8, %rax
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_3:
	callq	_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r13
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strsep
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_cons_find
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_C_ACTIVEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_C_ACTIVEIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_consoles@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	%eax, %ebx
	movq	(%rdx,%rbx,8), %rax
	orl	%ecx, (%rax)
	xorl	%edi, %edi
	callq	*16(%rax)
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	movq	_C_PRESENTOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_C_PRESENTIN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	jmp	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	testl	%r12d, %r12d
	movq	_consoles@GOTPCREL(%rip), %r14
	jne	LBB0_19
	jmp	LBB0_15
LBB0_5:
	movq	%rax, %rdi
	callq	_free
LBB0_15:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.16:
	xorl	%r15d, %r15d
	movl	$8, %ebx
	movq	_C_PRESENTIN@GOTPCREL(%rip), %r13
	movq	_C_PRESENTOUT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_C_ACTIVEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_C_ACTIVEIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	*16(%rcx)
	movq	(%r14), %rax
	movq	-8(%rax,%rbx), %rdx
	movq	(%rax,%rbx), %rcx
	movl	(%r12), %eax
	orl	(%r13), %eax
	movl	(%rdx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	$1, %edx
	adcl	$0, %r15d
	addq	$8, %rbx
	testq	%rcx, %rcx
	jne	LBB0_17
## %bb.18:
	testl	%r15d, %r15d
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
	je	LBB0_20
LBB0_19:
	movq	_CMD_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_consoles,8,3                   ## @consoles
	.comm	_C_ACTIVEIN,4,2                 ## @C_ACTIVEIN
	.comm	_C_ACTIVEOUT,4,2                ## @C_ACTIVEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ,"

	.comm	_C_PRESENTIN,4,2                ## @C_PRESENTIN
	.comm	_C_PRESENTOUT,4,2               ## @C_PRESENTOUT
L_.str.1:                               ## @.str.1
	.asciz	"console %s failed to initialize\n"

	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.no_dead_strip	_cons_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cons_change
_cons_change:                           ; @cons_change
	.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
Lloh0:
	adrp	x22, _consoles@GOTPAGE
Lloh1:
	ldr	x22, [x22, _consoles@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x9]
Lloh2:
	adrp	x23, _C_ACTIVEIN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _C_ACTIVEIN@GOTPAGEOFF]
Lloh4:
	adrp	x24, _C_ACTIVEOUT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _C_ACTIVEOUT@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x23]
	ldr	w11, [x24]
	orr	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
	ldr	x8, [x9], #8
	cbnz	x8, LBB0_2
LBB0_3:
	bl	_strdup
	mov	x19, x0
	str	x0, [sp, #8]
Lloh6:
	adrp	x25, _C_PRESENTIN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _C_PRESENTIN@GOTPAGEOFF]
Lloh8:
	adrp	x26, _C_PRESENTOUT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _C_PRESENTOUT@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.4:
	mov	w27, #0
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w27, w27, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_cons_find
	tbnz	w0, #31, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	x9, [x22]
	mov	w10, w0
	lsl	x28, x10, #3
	ldr	x9, [x9, x28]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
	ldr	x8, [x9, #16]
	mov	w0, #0
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8, x28]
	ldr	w9, [x8]
	ldr	w10, [x25]
	ldr	w11, [x26]
	orr	w10, w11, w10
	bics	wzr, w10, w9
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	w27, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_printf
	b	LBB0_6
LBB0_12:
	mov	x0, x19
	bl	_free
	cbnz	w27, LBB0_18
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_free
LBB0_14:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.15:
	mov	x19, #0
	mov	w20, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	ldr	w10, [x8]
	orr	w9, w9, w10
	str	w9, [x8]
	ldr	x8, [x8, #16]
	mov	w0, #0
	blr	x8
	ldr	x8, [x22]
	add	x8, x8, x19
	ldp	x9, x8, [x8]
	ldr	w9, [x9]
	ldr	w10, [x25]
	ldr	w11, [x26]
	orr	w10, w11, w10
	bics	wzr, w10, w9
	cinc	w20, w20, eq
	add	x19, x19, #8
	cbnz	x8, LBB0_16
; %bb.17:
	cbz	w20, LBB0_19
LBB0_18:
Lloh14:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh16:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
LBB0_20:
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_consoles,8,3                   ; @consoles
	.comm	_C_ACTIVEIN,4,2                 ; @C_ACTIVEIN
	.comm	_C_ACTIVEOUT,4,2                ; @C_ACTIVEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ,"

	.comm	_C_PRESENTIN,4,2                ; @C_PRESENTIN
	.comm	_C_PRESENTOUT,4,2               ; @C_PRESENTOUT
l_.str.1:                               ; @.str.1
	.asciz	"console %s failed to initialize\n"

	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.no_dead_strip	_cons_change
.subsections_via_symbols
