	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConGetDefaultAttributes        ## -- Begin function ConGetDefaultAttributes
	.p2align	4, 0x90
_ConGetDefaultAttributes:               ## @ConGetDefaultAttributes
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	_GENERIC_READ@GOTPCREL(%rip), %rcx
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rcx
	movq	_FILE_SHARE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	$0, (%rsp)
	movl	%eax, %edi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_CreateFile
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_5
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetConsoleScreenBufferInfo
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_CloseHandle
LBB0_5:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CONOUT$"

	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConGetDefaultAttributes        ; -- Begin function ConGetDefaultAttributes
	.p2align	2
_ConGetDefaultAttributes:               ; @ConGetDefaultAttributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
Lloh2:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GENERIC_WRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GENERIC_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh8:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh10:
	adrp	x9, _FILE_SHARE_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FILE_SHARE_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh14:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFile
Lloh17:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	x21, [x8]
	b	LBB0_5
LBB0_2:
	mov	x20, x0
	add	x1, sp, #8
	bl	_GetConsoleScreenBufferInfo
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_CloseHandle
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CONOUT$"

	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
