	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configfile
_configfile:                            ## @configfile
	.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	_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cfgfile_add
	leaq	L_.str(%rip), %rdi
	callq	_path
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	_err
LBB0_2:
	movq	_SBUF_AUTOEXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_sbuf_new
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_sbuf_clear
	movq	_filebased@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_configfile_filebased
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_configfile_dynamic
LBB0_5:
	movq	%r15, %rdi
	callq	_sbuf_finish
	movq	_kernconfstr@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_KERNCONFTAG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_strstr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
LBB0_7:
	movb	$0, (%rbx)
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_fputs
	movq	%r15, %rdi
	callq	_sbuf_data
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fputs
	movl	(%r12), %edi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fputs
	movq	%r15, %rdi
	callq	_sbuf_delete
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str(%rip), %rdi
	callq	_path
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rdi
	callq	_path
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_moveifchanged
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfgfile_removeall              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PREFIX,4,2                     ## @PREFIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config.c.new"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_SBUF_AUTOEXTEND,4,2            ## @SBUF_AUTOEXTEND
	.comm	_filebased,8,3                  ## @filebased
	.comm	_kernconfstr,8,3                ## @kernconfstr
	.comm	_KERNCONFTAG,4,2                ## @KERNCONFTAG
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"Something went terribly wrong!"

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

	.no_dead_strip	_configfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configfile
_configfile:                            ; @configfile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _PREFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREFIX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cfgfile_add
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_path
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_err
LBB0_2:
Lloh9:
	adrp	x8, _SBUF_AUTOEXTEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBUF_AUTOEXTEND@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	mov	w2, #2048
	bl	_sbuf_new
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_sbuf_clear
Lloh12:
	adrp	x8, _filebased@GOTPAGE
Lloh13:
	ldr	x8, [x8, _filebased@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_configfile_filebased
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_configfile_dynamic
LBB0_5:
	mov	x0, x20
	bl	_sbuf_finish
Lloh15:
	adrp	x23, _kernconfstr@GOTPAGE
Lloh16:
	ldr	x23, [x23, _kernconfstr@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh17:
	adrp	x22, _KERNCONFTAG@GOTPAGE
Lloh18:
	ldr	x22, [x22, _KERNCONFTAG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_strstr
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_7:
	strb	wzr, [x21]
	ldr	x0, [x23]
	mov	x1, x19
	bl	_fputs
	mov	x0, x20
	bl	_sbuf_data
	mov	x1, x19
	bl	_fputs
	ldr	w0, [x22]
	bl	_strlen
	add	x0, x21, w0, sxtw
	mov	x1, x19
	bl	_fputs
	mov	x0, x20
	bl	_sbuf_delete
	mov	x0, x19
	bl	_fclose
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_path
	mov	x19, x0
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_path
	mov	x1, x0
	mov	x0, x19
	bl	_moveifchanged
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cfgfile_removeall
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PREFIX,4,2                     ; @PREFIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config.c.new"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_SBUF_AUTOEXTEND,4,2            ; @SBUF_AUTOEXTEND
	.comm	_filebased,8,3                  ; @filebased
	.comm	_kernconfstr,8,3                ; @kernconfstr
	.comm	_KERNCONFTAG,4,2                ; @KERNCONFTAG
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"Something went terribly wrong!"

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

	.no_dead_strip	_configfile
.subsections_via_symbols
