	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cons_check
_cons_check:                            ## @cons_check
	.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
	callq	_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r12
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strsep
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cons_find
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	incl	%r14d
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.9:
	testl	%r14d, %r14d
	jne	LBB0_10
	jmp	LBB0_13
LBB0_14:
	movq	%rax, %rdi
	callq	_free
LBB0_8:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	xorl	%r13d, %r13d
LBB0_10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_consoles@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	$8, %ebx
	leaq	L_.str.4(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ,"

L_.str.1:                               ## @.str.1
	.asciz	"console %s is invalid!\n"

	.comm	_consoles,8,3                   ## @consoles
L_.str.4:                               ## @.str.4
	.asciz	"    %s\n"

L_str:                                  ## @str
	.asciz	"Available consoles:"

L_str.5:                                ## @str.5
	.asciz	"no valid consoles!"

	.no_dead_strip	_cons_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cons_check
_cons_check:                            ; @cons_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_strdup
	mov	x20, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	w19, #0
	mov	w24, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_strsep
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	bl	_cons_find
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [sp]
	mov	x0, x22
	bl	_printf
	add	w24, w24, #1
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_free
	cbz	w19, LBB0_10
; %bb.8:
	cbnz	w24, LBB0_11
	b	LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_free
LBB0_10:
Lloh4:
	adrp	x0, l_str.5@PAGE
Lloh5:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	mov	w19, #0
LBB0_11:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x21, _consoles@GOTPAGE
Lloh9:
	ldr	x21, [x21, _consoles@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.12:
	mov	w22, #8
Lloh10:
	adrp	x20, l_.str.4@PAGE
Lloh11:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	add	x22, x22, #8
	cbnz	x8, LBB0_13
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ,"

l_.str.1:                               ; @.str.1
	.asciz	"console %s is invalid!\n"

	.comm	_consoles,8,3                   ; @consoles
l_.str.4:                               ; @.str.4
	.asciz	"    %s\n"

l_str:                                  ; @str
	.asciz	"Available consoles:"

l_str.5:                                ; @str.5
	.asciz	"no valid consoles!"

	.no_dead_strip	_cons_check
.subsections_via_symbols
