	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_logging_init                ## -- Begin function pg_logging_init
	.p2align	4, 0x90
_pg_logging_init:                       ## @pg_logging_init
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	__IONBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	movq	%r14, %rdi
	callq	_get_progname
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PG_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___pg_log_level@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movl	(%r15), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_18
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%rax, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rbx
	leaq	L_.str.6(%rip), %r12
	leaq	L_.str.7(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_strtok
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	movb	$0, (%rax)
	incq	%r15
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_strdup
	movq	_sgr_error@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_strdup
	movq	_sgr_warning@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	callq	_strdup
	movq	_sgr_locus@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_15
LBB0_17:
	movq	_SGR_ERROR_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sgr_error@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_SGR_WARNING_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sgr_warning@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_SGR_LOCUS_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sgr_locus@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PG_COLOR"

	.comm	_stderr,4,2                     ## @stderr
	.comm	__IONBF,4,2                     ## @_IONBF
	.comm	_progname,4,2                   ## @progname
	.comm	_PG_LOG_INFO,4,2                ## @PG_LOG_INFO
	.comm	___pg_log_level,4,2             ## @__pg_log_level
L_.str.1:                               ## @.str.1
	.asciz	"always"

L_.str.2:                               ## @.str.2
	.asciz	"auto"

L_.str.3:                               ## @.str.3
	.asciz	"PG_COLORS"

L_.str.4:                               ## @.str.4
	.asciz	":"

L_.str.5:                               ## @.str.5
	.asciz	"error"

	.comm	_sgr_error,8,3                  ## @sgr_error
L_.str.6:                               ## @.str.6
	.asciz	"warning"

	.comm	_sgr_warning,8,3                ## @sgr_warning
L_.str.7:                               ## @.str.7
	.asciz	"locus"

	.comm	_sgr_locus,8,3                  ## @sgr_locus
	.comm	_SGR_ERROR_DEFAULT,8,3          ## @SGR_ERROR_DEFAULT
	.comm	_SGR_WARNING_DEFAULT,8,3        ## @SGR_WARNING_DEFAULT
	.comm	_SGR_LOCUS_DEFAULT,8,3          ## @SGR_LOCUS_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_logging_init                ; -- Begin function pg_logging_init
	.p2align	2
_pg_logging_init:                       ; @pg_logging_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh2:
	adrp	x21, _stderr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x8, __IONBF@GOTPAGE
Lloh5:
	ldr	x8, [x8, __IONBF@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
	mov	x0, x20
	bl	_get_progname
Lloh7:
	adrp	x8, _progname@GOTPAGE
Lloh8:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
Lloh10:
	adrp	x8, _PG_LOG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PG_LOG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, ___pg_log_level@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___pg_log_level@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	cbz	x19, LBB0_17
; %bb.1:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_17
; %bb.3:
	ldr	w0, [x21]
	bl	_fileno
	bl	_isatty
	cbz	x0, LBB0_17
LBB0_4:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_16
; %bb.5:
	bl	_strdup
	cbz	x0, LBB0_17
; %bb.6:
	mov	x19, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strtok
	cbz	x0, LBB0_18
; %bb.7:
	mov	x24, x0
Lloh24:
	adrp	x20, l_.str.4@PAGE
Lloh25:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh26:
	adrp	x21, l_.str.5@PAGE
Lloh27:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh28:
	adrp	x26, _sgr_error@GOTPAGE
Lloh29:
	ldr	x26, [x26, _sgr_error@GOTPAGEOFF]
Lloh30:
	adrp	x22, l_.str.6@PAGE
Lloh31:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh32:
	adrp	x27, _sgr_warning@GOTPAGE
Lloh33:
	ldr	x27, [x27, _sgr_warning@GOTPAGEOFF]
Lloh34:
	adrp	x28, _sgr_locus@GOTPAGE
Lloh35:
	ldr	x28, [x28, _sgr_locus@GOTPAGEOFF]
Lloh36:
	adrp	x23, l_.str.7@PAGE
Lloh37:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, #0
	mov	x1, x20
	bl	_strtok
	mov	x24, x0
	cbz	x0, LBB0_18
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, x0
	strb	wzr, [x25], #1
	mov	x0, x24
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_strdup
	str	x0, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_strdup
	str	x0, [x27]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_strdup
	str	x0, [x28]
	b	LBB0_8
LBB0_16:
Lloh38:
	adrp	x8, _SGR_ERROR_DEFAULT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SGR_ERROR_DEFAULT@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _sgr_error@GOTPAGE
Lloh42:
	ldr	x9, [x9, _sgr_error@GOTPAGEOFF]
Lloh43:
	str	x8, [x9]
Lloh44:
	adrp	x8, _SGR_WARNING_DEFAULT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SGR_WARNING_DEFAULT@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
Lloh47:
	adrp	x9, _sgr_warning@GOTPAGE
Lloh48:
	ldr	x9, [x9, _sgr_warning@GOTPAGEOFF]
Lloh49:
	str	x8, [x9]
Lloh50:
	adrp	x8, _SGR_LOCUS_DEFAULT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SGR_LOCUS_DEFAULT@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _sgr_locus@GOTPAGE
Lloh54:
	ldr	x9, [x9, _sgr_locus@GOTPAGEOFF]
Lloh55:
	str	x8, [x9]
LBB0_17:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PG_COLOR"

	.comm	_stderr,4,2                     ; @stderr
	.comm	__IONBF,4,2                     ; @_IONBF
	.comm	_progname,4,2                   ; @progname
	.comm	_PG_LOG_INFO,4,2                ; @PG_LOG_INFO
	.comm	___pg_log_level,4,2             ; @__pg_log_level
l_.str.1:                               ; @.str.1
	.asciz	"always"

l_.str.2:                               ; @.str.2
	.asciz	"auto"

l_.str.3:                               ; @.str.3
	.asciz	"PG_COLORS"

l_.str.4:                               ; @.str.4
	.asciz	":"

l_.str.5:                               ; @.str.5
	.asciz	"error"

	.comm	_sgr_error,8,3                  ; @sgr_error
l_.str.6:                               ; @.str.6
	.asciz	"warning"

	.comm	_sgr_warning,8,3                ; @sgr_warning
l_.str.7:                               ; @.str.7
	.asciz	"locus"

	.comm	_sgr_locus,8,3                  ; @sgr_locus
	.comm	_SGR_ERROR_DEFAULT,8,3          ; @SGR_ERROR_DEFAULT
	.comm	_SGR_WARNING_DEFAULT,8,3        ; @SGR_WARNING_DEFAULT
	.comm	_SGR_LOCUS_DEFAULT,8,3          ; @SGR_LOCUS_DEFAULT
.subsections_via_symbols
