	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fn_inc_console
_fn_inc_console:                        ## @fn_inc_console
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_want_console@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$-1, %r14d
	jne	LBB0_2
## %bb.1:
	movq	_fg_console@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	_MAX_NR_CONSOLES@GOTPCREL(%rip), %r15
	movl	%r14d, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_vc_cons_allocated
	movl	%ebx, %ecx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	cmpl	%r14d, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpl	(%r15), %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%r14d, %ebx
LBB0_8:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_console                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fg_console,4,2                 ## @fg_console
	.comm	_want_console,4,2               ## @want_console
	.comm	_MAX_NR_CONSOLES,4,2            ## @MAX_NR_CONSOLES
	.no_dead_strip	_fn_inc_console
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fn_inc_console
_fn_inc_console:                        ; @fn_inc_console
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _fg_console@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fg_console@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _want_console@GOTPAGE
Lloh4:
	ldr	x9, [x9, _want_console@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w9, #1
	csel	w20, w8, w9, eq
Lloh6:
	adrp	x21, _MAX_NR_CONSOLES@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAX_NR_CONSOLES@GOTPAGEOFF]
	mov	x19, x20
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w19, #1
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w19, wzr, w8, eq
	mov	x0, x19
	bl	_vc_cons_allocated
	cbz	x0, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	x19, x20
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_console
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fg_console,4,2                 ; @fg_console
	.comm	_want_console,4,2               ; @want_console
	.comm	_MAX_NR_CONSOLES,4,2            ; @MAX_NR_CONSOLES
	.no_dead_strip	_fn_inc_console
.subsections_via_symbols
