	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_colors
_check_colors:                          ## @check_colors
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_max_colors@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	setle	%al
	movq	_max_pairs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	setg	%cl
	cmpb	%cl, %al
	je	LBB0_3
## %bb.1:
	cmpq	%rdx, %rsi
	jle	LBB0_4
## %bb.2:
	movq	_initialize_pair@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	__nc_warning
LBB0_4:
	movq	_set_foreground@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_set_background@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_PAIRED
	movq	_set_a_foreground@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_set_a_background@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_PAIRED
	movq	_set_color_pair@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_initialize_pair@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_PAIRED
	movq	(%rbx), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%r13), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rbx), %rdi
	movq	(%r13), %rsi
	callq	__nc_capcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	__nc_warning
LBB0_8:
	movq	(%r12), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	(%r14), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	(%r12), %rdi
	movq	(%r14), %rsi
	callq	__nc_capcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	__nc_warning
LBB0_12:
	movq	(%r15), %rdi
	callq	_VALID_NUMERIC
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	_max_pairs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VALID_NUMERIC
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.15:
	cmpq	$0, (%r12)
	jne	LBB0_18
LBB0_16:
	cmpq	$0, (%r13)
	setne	%al
	cmpq	$0, (%r14)
	setne	%cl
	testb	%cl, %al
	jne	LBB0_18
## %bb.17:
	movq	_set_color_pair@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
LBB0_18:
	movq	_orig_pair@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_orig_colors@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VALID_STRING
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__nc_warning                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_max_colors,8,3                 ## @max_colors
	.comm	_max_pairs,8,3                  ## @max_pairs
	.comm	_initialize_pair,8,3            ## @initialize_pair
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent values for max_colors (%d) and max_pairs (%d)"

	.comm	_set_foreground,8,3             ## @set_foreground
	.comm	_set_background,8,3             ## @set_background
	.comm	_set_a_foreground,8,3           ## @set_a_foreground
	.comm	_set_a_background,8,3           ## @set_a_background
	.comm	_set_color_pair,8,3             ## @set_color_pair
L_.str.1:                               ## @.str.1
	.asciz	"expected setf/setaf to be different"

L_.str.2:                               ## @.str.2
	.asciz	"expected setb/setab to be different"

	.comm	_orig_pair,8,3                  ## @orig_pair
	.comm	_orig_colors,8,3                ## @orig_colors
L_.str.3:                               ## @.str.3
	.asciz	"expected either op/oc string for resetting colors"

	.no_dead_strip	_check_colors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_colors
_check_colors:                          ; @check_colors
	.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
Lloh0:
	adrp	x20, _max_colors@GOTPAGE
Lloh1:
	ldr	x20, [x20, _max_colors@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #1
	cset	w10, lt
Lloh2:
	adrp	x19, _max_pairs@GOTPAGE
Lloh3:
	ldr	x19, [x19, _max_pairs@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x9, #0
	cset	w11, gt
Lloh4:
	adrp	x26, _initialize_pair@GOTPAGE
Lloh5:
	ldr	x26, [x26, _initialize_pair@GOTPAGEOFF]
	cmp	w10, w11
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x10, #0, #0, gt
	b.ne	LBB0_3
LBB0_2:
	stp	x8, x9, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__nc_warning
LBB0_3:
Lloh8:
	adrp	x22, _set_foreground@GOTPAGE
Lloh9:
	ldr	x22, [x22, _set_foreground@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh10:
	adrp	x21, _set_background@GOTPAGE
Lloh11:
	ldr	x21, [x21, _set_background@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_PAIRED
Lloh12:
	adrp	x23, _set_a_foreground@GOTPAGE
Lloh13:
	ldr	x23, [x23, _set_a_foreground@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh14:
	adrp	x24, _set_a_background@GOTPAGE
Lloh15:
	ldr	x24, [x24, _set_a_background@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_PAIRED
Lloh16:
	adrp	x25, _set_color_pair@GOTPAGE
Lloh17:
	ldr	x25, [x25, _set_color_pair@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x1, [x26]
	bl	_PAIRED
	ldr	x0, [x22]
	bl	_VALID_STRING
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x23]
	bl	_VALID_STRING
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x22]
	ldr	x1, [x23]
	bl	__nc_capcmp
	cbnz	w0, LBB0_7
; %bb.6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__nc_warning
LBB0_7:
	ldr	x0, [x21]
	bl	_VALID_STRING
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x0, [x24]
	bl	_VALID_STRING
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x21]
	ldr	x1, [x24]
	bl	__nc_capcmp
	cbnz	w0, LBB0_11
; %bb.10:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__nc_warning
LBB0_11:
	ldr	x0, [x20]
	bl	_VALID_NUMERIC
	cbz	x0, LBB0_19
; %bb.12:
	ldr	x0, [x19]
	bl	_VALID_NUMERIC
	cbz	x0, LBB0_19
; %bb.13:
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x21]
	cbnz	x8, LBB0_17
LBB0_15:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_17
; %bb.16:
	ldr	x8, [x25]
	cbz	x8, LBB0_19
LBB0_17:
Lloh22:
	adrp	x8, _orig_pair@GOTPAGE
Lloh23:
	ldr	x8, [x8, _orig_pair@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	bl	_VALID_STRING
	cbnz	x0, LBB0_19
; %bb.18:
Lloh25:
	adrp	x8, _orig_colors@GOTPAGE
Lloh26:
	ldr	x8, [x8, _orig_colors@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	bl	_VALID_STRING
	cbz	x0, LBB0_20
LBB0_19:
	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
LBB0_20:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	__nc_warning
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_max_colors,8,3                 ; @max_colors
	.comm	_max_pairs,8,3                  ; @max_pairs
	.comm	_initialize_pair,8,3            ; @initialize_pair
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent values for max_colors (%d) and max_pairs (%d)"

	.comm	_set_foreground,8,3             ; @set_foreground
	.comm	_set_background,8,3             ; @set_background
	.comm	_set_a_foreground,8,3           ; @set_a_foreground
	.comm	_set_a_background,8,3           ; @set_a_background
	.comm	_set_color_pair,8,3             ; @set_color_pair
l_.str.1:                               ; @.str.1
	.asciz	"expected setf/setaf to be different"

l_.str.2:                               ; @.str.2
	.asciz	"expected setb/setab to be different"

	.comm	_orig_pair,8,3                  ; @orig_pair
	.comm	_orig_colors,8,3                ; @orig_colors
l_.str.3:                               ; @.str.3
	.asciz	"expected either op/oc string for resetting colors"

	.no_dead_strip	_check_colors
.subsections_via_symbols
