	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Settings_new                   ## -- Begin function Settings_new
	.p2align	4, 0x90
_Settings_new:                          ## @Settings_new
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$112, %esi
	callq	_xCalloc
	movq	%rax, %rbx
	movq	_PERCENT_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movups	%xmm0, 20(%rbx)
	movups	%xmm0, 4(%rbx)
	movl	%r14d, 48(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 52(%rbx)
	movq	_Platform_numberOfFields@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	$4, %esi
	callq	_xCalloc
	movq	%rax, 64(%rbx)
	movl	$0, 104(%rbx)
	movq	_Platform_defaultFields@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_Process_fields@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdi)
	movslq	(%rcx,%rdi), %rdx
	movl	(%rsi,%rdx,4), %edx
	orl	%edx, 104(%rbx)
	movl	4(%rcx,%rdi), %edx
	addq	$4, %rdi
	testl	%edx, %edx
	jne	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_xStrdup
	movq	%rax, 72(%rbx)
	movq	$0, 96(%rbx)
	movl	$0, 80(%rbx)
	movq	_DEFAULT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
LBB0_17:
	movq	72(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_Settings_read
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movl	$1, 80(%rbx)
	movq	_SYSCONFDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_String_cat
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_Settings_read
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_free
	testl	%r15d, %r15d
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_Settings_defaultMeters
	movl	$1, 16(%rbx)
	movl	$1, 32(%rbx)
	movl	$1, 56(%rbx)
	movl	$1, 84(%rbx)
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %r14
	cmovneq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_String_cat
	movq	%rax, 72(%rbx)
	movq	%r12, %rdi
	callq	_xStrdup
	movq	%rax, %r15
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_String_cat
	movq	%rax, 72(%rbx)
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_String_cat
	movq	%rax, %r15
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
LBB0_8:
	callq	_String_cat
	movq	%rax, %r12
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_String_cat
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_CRT_dropPrivileges
	movq	%r15, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	movq	%r12, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lstat
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	-40(%rbp), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	xorl	%r14d, %r14d
LBB0_11:
	xorl	%eax, %eax
	callq	_CRT_restorePrivileges
	movq	$0, 96(%rbx)
	movl	$0, 80(%rbx)
	movq	_DEFAULT_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	testq	%r14, %r14
	je	LBB0_17
## %bb.12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Settings_read
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	callq	_Settings_write
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_unlink
LBB0_15:
	movq	%r14, %rdi
	callq	_free
LBB0_20:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PERCENT_CPU,4,2                ## @PERCENT_CPU
	.comm	_Platform_numberOfFields,4,2    ## @Platform_numberOfFields
	.comm	_Platform_defaultFields,8,3     ## @Platform_defaultFields
	.comm	_Process_fields,8,3             ## @Process_fields
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTOPRC"

L_.str.1:                               ## @.str.1
	.asciz	"HOME"

L_.str.2:                               ## @.str.2
	.space	1

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

L_.str.4:                               ## @.str.4
	.asciz	"/htop/htoprc"

L_.str.5:                               ## @.str.5
	.asciz	"/htop"

L_.str.6:                               ## @.str.6
	.asciz	"/.config/htop/htoprc"

L_.str.7:                               ## @.str.7
	.asciz	"/.config"

L_.str.8:                               ## @.str.8
	.asciz	"/.config/htop"

L_.str.9:                               ## @.str.9
	.asciz	"/.htoprc"

	.comm	_DEFAULT_DELAY,4,2              ## @DEFAULT_DELAY
	.comm	_SYSCONFDIR,8,3                 ## @SYSCONFDIR
L_.str.10:                              ## @.str.10
	.asciz	"/htoprc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Settings_new                   ; -- Begin function Settings_new
	.p2align	2
_Settings_new:                          ; @Settings_new
	.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	x20, x0
	mov	w21, #1
	mov	w0, #1
	mov	w1, #112
	bl	_xCalloc
	mov	x19, x0
Lloh0:
	adrp	x8, _PERCENT_CPU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERCENT_CPU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #108]
	str	w21, [x0]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #4]
	stur	q0, [x0, #20]
	str	q0, [x0, #32]
	str	w20, [x0, #48]
	movi.2s	v0, #1
	stur	d0, [x0, #52]
Lloh3:
	adrp	x8, _Platform_numberOfFields@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Platform_numberOfFields@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w0, w8, #1
	mov	w1, #4
	bl	_xCalloc
	str	x0, [x19, #64]
	str	wzr, [x19, #104]
Lloh6:
	adrp	x8, _Platform_defaultFields@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Platform_defaultFields@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	ldr	w8, [x10]
	cbz	w8, LBB0_3
; %bb.1:
Lloh9:
	adrp	x9, _Process_fields@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Process_fields@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x10, x10, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x0], #4
	ldursw	x8, [x10, #-4]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w11, [x19, #104]
	orr	w8, w11, w8
	str	w8, [x19, #104]
	ldr	w8, [x10], #4
	cbnz	w8, LBB0_2
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.4:
	bl	_xStrdup
	str	x0, [x19, #72]
	str	xzr, [x19, #96]
	str	wzr, [x19, #80]
Lloh14:
	adrp	x8, _DEFAULT_DELAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DEFAULT_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #88]
LBB0_5:
	ldr	x1, [x19, #72]
	mov	x0, x19
	bl	_Settings_read
	cbnz	w0, LBB0_19
; %bb.6:
	mov	w22, #1
	str	w22, [x19, #80]
Lloh17:
	adrp	x8, _SYSCONFDIR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SYSCONFDIR@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_String_cat
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_Settings_read
	mov	x21, x0
	mov	x0, x20
	bl	_free
	cbnz	w21, LBB0_19
; %bb.7:
	mov	x0, x19
	bl	_Settings_defaultMeters
	str	w22, [x19, #16]
	str	w22, [x19, #32]
	str	w22, [x19, #56]
	str	w22, [x19, #84]
	b	LBB0_19
LBB0_8:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
Lloh24:
	adrp	x8, l_.str.2@PAGE
Lloh25:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x20, x8, x0, eq
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_String_cat
	str	x0, [x19, #72]
	mov	x0, x22
	bl	_xStrdup
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	b	LBB0_11
LBB0_10:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_String_cat
	str	x0, [x19, #72]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_String_cat
	mov	x21, x0
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
LBB0_11:
	bl	_String_cat
	mov	x22, x0
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_String_cat
	mov	x20, x0
	bl	_CRT_dropPrivileges
	mov	x0, x21
	mov	w1, #448
	bl	_mkdir
	mov	x0, x22
	mov	w1, #448
	bl	_mkdir
	mov	x0, x22
	bl	_free
	mov	x0, x21
	bl	_free
	add	x1, sp, #8
	mov	x0, x20
	bl	_lstat
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [sp, #8]
	bl	_S_ISLNK
	cbz	x0, LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_free
	mov	x20, #0
LBB0_14:
	bl	_CRT_restorePrivileges
	str	xzr, [x19, #96]
	str	wzr, [x19, #80]
Lloh40:
	adrp	x8, _DEFAULT_DELAY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DEFAULT_DELAY@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x19, #88]
	cbz	x20, LBB0_5
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_Settings_read
	cbz	w0, LBB0_20
; %bb.16:
	mov	x0, x19
	bl	_Settings_write
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_unlink
LBB0_18:
	mov	x0, x20
	bl	_free
LBB0_19:
	mov	x0, x19
	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
LBB0_20:
	mov	x0, x20
	bl	_free
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_PERCENT_CPU,4,2                ; @PERCENT_CPU
	.comm	_Platform_numberOfFields,4,2    ; @Platform_numberOfFields
	.comm	_Platform_defaultFields,8,3     ; @Platform_defaultFields
	.comm	_Process_fields,8,3             ; @Process_fields
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTOPRC"

l_.str.1:                               ; @.str.1
	.asciz	"HOME"

l_.str.2:                               ; @.str.2
	.space	1

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

l_.str.4:                               ; @.str.4
	.asciz	"/htop/htoprc"

l_.str.5:                               ; @.str.5
	.asciz	"/htop"

l_.str.6:                               ; @.str.6
	.asciz	"/.config/htop/htoprc"

l_.str.7:                               ; @.str.7
	.asciz	"/.config"

l_.str.8:                               ; @.str.8
	.asciz	"/.config/htop"

l_.str.9:                               ; @.str.9
	.asciz	"/.htoprc"

	.comm	_DEFAULT_DELAY,4,2              ; @DEFAULT_DELAY
	.comm	_SYSCONFDIR,8,3                 ; @SYSCONFDIR
l_.str.10:                              ; @.str.10
	.asciz	"/htoprc"

.subsections_via_symbols
