	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MapAttr
_MapAttr:                               ## @MapAttr
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_A_COLOR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_AssertTCB
	xorl	%eax, %eax
	callq	_SetSP
	movl	%r14d, %edi
	callq	_PairNumber
LBB0_2:
	movq	_A_REVERSE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	movl	%ebx, %ecx
	shll	$4, %ecx
	andl	$112, %ecx
	shrl	$4, %ebx
	andl	$7, %ebx
	orl	%eax, %ebx
	orl	%ecx, %ebx
LBB0_4:
	movq	_A_STANDOUT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.6:
	movl	%ebx, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	movl	%ebx, %ecx
	shll	$4, %ecx
	andl	$112, %ecx
	shrl	$4, %ebx
	andl	$7, %ebx
	orl	%eax, %ebx
	orl	%ecx, %ebx
	movq	_BACKGROUND_INTENSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_BACKGROUND_INTENSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	_A_BOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	je	LBB0_9
## %bb.8:
	movq	_FOREGROUND_INTENSITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	movq	_A_DIM@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r14d
	cmovel	%r14d, %eax
	orl	%eax, %ebx
	orl	%ecx, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_COLOR,4,2                    ## @A_COLOR
	.comm	_NUMPAIRS,4,2                   ## @NUMPAIRS
	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.comm	_A_STANDOUT,4,2                 ## @A_STANDOUT
	.comm	_BACKGROUND_INTENSITY,4,2       ## @BACKGROUND_INTENSITY
	.comm	_A_BOLD,4,2                     ## @A_BOLD
	.comm	_FOREGROUND_INTENSITY,4,2       ## @FOREGROUND_INTENSITY
	.comm	_A_DIM,4,2                      ## @A_DIM
	.no_dead_strip	_MapAttr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MapAttr
_MapAttr:                               ; @MapAttr
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _A_COLOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_COLOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	bl	_AssertTCB
	bl	_SetSP
	mov	x0, x19
	bl	_PairNumber
LBB0_2:
Lloh3:
	adrp	x8, _A_REVERSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_REVERSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	and	w8, w20, #0xff00
	bfxil	w8, w20, #4, #3
	bfi	w8, w20, #4, #3
	csel	w8, w20, w8, eq
Lloh6:
	adrp	x9, _A_STANDOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _A_STANDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_4
; %bb.3:
	and	w10, w8, #0xff00
Lloh9:
	adrp	x9, _BACKGROUND_INTENSITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BACKGROUND_INTENSITY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bfxil	w10, w8, #4, #3
	bfi	w10, w8, #4, #3
	orr	w8, w10, w9
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _BACKGROUND_INTENSITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BACKGROUND_INTENSITY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
LBB0_5:
Lloh15:
	adrp	x10, _A_BOLD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _A_BOLD@GOTPAGEOFF]
Lloh17:
	adrp	x11, _FOREGROUND_INTENSITY@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FOREGROUND_INTENSITY@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w19
	csel	w10, wzr, w11, eq
Lloh21:
	adrp	x11, _A_DIM@GOTPAGE
Lloh22:
	ldr	x11, [x11, _A_DIM@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh23:
	ldr	w10, [x11]
	tst	w10, w19
	csel	w9, wzr, w9, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_A_COLOR,4,2                    ; @A_COLOR
	.comm	_NUMPAIRS,4,2                   ; @NUMPAIRS
	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.comm	_A_STANDOUT,4,2                 ; @A_STANDOUT
	.comm	_BACKGROUND_INTENSITY,4,2       ; @BACKGROUND_INTENSITY
	.comm	_A_BOLD,4,2                     ; @A_BOLD
	.comm	_FOREGROUND_INTENSITY,4,2       ; @FOREGROUND_INTENSITY
	.comm	_A_DIM,4,2                      ; @A_DIM
	.no_dead_strip	_MapAttr
.subsections_via_symbols
