	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function git_config_copy_or_rename_section_in_file
_git_config_copy_or_rename_section_in_file: ## @git_config_copy_or_rename_section_in_file
	.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
	subq	$1144, %rsp                     ## imm = 0x478
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1080(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -1120(%rbp)
	leaq	-1144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_section_name_is_ok
	testl	%eax, %eax
	je	LBB0_40
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_git_pathdup
	movq	%rax, %r15
	movq	%rax, %r12
LBB0_5:
	leaq	-1080(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_hold_lock_file_for_update
	movl	%eax, -1084(%rbp)               ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_38
## %bb.6:
	movq	%rbx, -1168(%rbp)               ## 8-byte Spill
	movq	%r14, -1176(%rbp)               ## 8-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_41
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_fileno
	leaq	-1152(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_43
## %bb.8:
	leaq	-1080(%rbp), %rdi
	callq	_get_lock_file_path
	movl	$4095, %esi                     ## imm = 0xFFF
	andl	-1152(%rbp), %esi
	movq	%rax, %rdi
	callq	_chmod
	testq	%rax, %rax
	movq	%r14, -1096(%rbp)               ## 8-byte Spill
	js	LBB0_44
## %bb.9:
	movq	%r15, -1128(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %rdi
	movq	%rdi, %r15
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_48
## %bb.10:
	movl	%r13d, -1156(%rbp)              ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -1136(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %ebx
	testl	%r13d, %r13d
	je	LBB0_27
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-1096(%rbp), %r14               ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	movl	%ebx, %r13d
	testq	%rax, %rax
	je	LBB0_49
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movb	-1072(%rbp), %al
	testb	%al, %al
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movzbl	-1071(%rbp,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_16
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %r14d
	cmpb	$91, -1072(%rbp,%r14)
	jne	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-1120(%rbp), %rdx
	testq	%rdx, %rdx
	jle	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-1112(%rbp), %rsi
	movl	-1084(%rbp), %edi               ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_write_in_full
	testq	%rax, %rax
	js	LBB0_60
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	-1120(%rbp), %rdi
	callq	_strbuf_reset
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r14,%rbp), %rdi
	addq	$-1072, %rdi                    ## imm = 0xFBD0
	movq	-1176(%rbp), %rsi               ## 8-byte Reload
	callq	_section_name_match
	testl	%eax, %eax
	jle	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %r13d
	movq	-1136(%rbp), %rax               ## 8-byte Reload
	incl	%eax
	movq	%rax, -1136(%rbp)               ## 8-byte Spill
	movq	-1168(%rbp), %r14               ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, -1144(%rbp)
	cmpl	$0, -1156(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	leaq	-1144(%rbp), %rsi
	callq	_store_create_section
	movq	%rax, -1120(%rbp)
	movq	%rdx, -1112(%rbp)
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	$1, %r14b
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %r13
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %rbx
	testb	%r14b, %r14b
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, -1120(%rbp)
	jle	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	-1120(%rbp), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strbuf_add
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-1084(%rbp), %edi               ## 4-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_write_in_full
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movq	-1096(%rbp), %r14               ## 8-byte Reload
	jns	LBB0_13
	jmp	LBB0_59
LBB0_33:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_34:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-1084(%rbp), %edi               ## 4-byte Reload
	movq	%r14, %rsi
	leaq	-1144(%rbp), %rdx
	callq	_write_section
	testq	%rax, %rax
	js	LBB0_60
## %bb.35:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	%ebx, %r13d
	movslq	%r13d, %rax
	leaq	(%rax,%rbp), %r13
	addq	$-1072, %r13                    ## imm = 0xFBD0
	movq	%r13, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	$9, -1(%r13)
	decq	%r13
LBB0_37:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_38:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_error
LBB0_39:
	movl	%eax, %ebx
	jmp	LBB0_54
LBB0_40:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_error
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_55
LBB0_41:
	movq	%r12, %rdi
	callq	_warn_on_fopen_errors
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_54
## %bb.42:
	xorl	%ebx, %ebx
	jmp	LBB0_53
LBB0_43:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	jmp	LBB0_45
LBB0_44:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	leaq	-1080(%rbp), %rdi
	callq	_get_lock_file_path
	movl	%r14d, %edi
	movq	-1096(%rbp), %r14               ## 8-byte Reload
	movq	%rax, %rsi
LBB0_45:
	callq	_error_errno
LBB0_46:
	movl	%eax, %ebx
LBB0_47:
	movq	%r14, %rdi
	callq	_fclose
	jmp	LBB0_54
LBB0_48:
	xorl	%eax, %eax
	movq	%rax, -1136(%rbp)               ## 8-byte Spill
LBB0_49:
	movq	-1120(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-1128(%rbp), %r15               ## 8-byte Reload
	movq	-1136(%rbp), %rbx               ## 8-byte Reload
	jle	LBB0_52
## %bb.50:
	movq	-1112(%rbp), %rsi
	movl	-1084(%rbp), %edi               ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_write_in_full
	testq	%rax, %rax
	js	LBB0_58
## %bb.51:
	leaq	-1120(%rbp), %rdi
	callq	_strbuf_reset
LBB0_52:
	movq	%r14, %rdi
	callq	_fclose
LBB0_53:
	leaq	-1080(%rbp), %rdi
	callq	_commit_lock_file
	testq	%rax, %rax
	js	LBB0_57
LBB0_54:
	leaq	-1080(%rbp), %rdi
	callq	_rollback_lock_file
LBB0_55:
	movq	%r15, %rdi
	callq	_free
	leaq	-1144(%rbp), %rdi
	callq	_config_store_data_clear
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_61
## %bb.56:
	movl	%ebx, %eax
	addq	$1144, %rsp                     ## imm = 0x478
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_error_errno
	jmp	LBB0_39
LBB0_58:
	leaq	-1080(%rbp), %rdi
	callq	_get_lock_file_path
	movq	%rax, %rdi
	callq	_write_error
	jmp	LBB0_46
LBB0_59:
	leaq	-1080(%rbp), %rdi
	callq	_get_lock_file_path
	movq	%rax, %rdi
	callq	_write_error
	movl	%eax, %ebx
	movq	-1128(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_47
LBB0_60:
	leaq	-1080(%rbp), %rdi
	callq	_get_lock_file_path
	movq	%rax, %rdi
	callq	_write_error
	movl	%eax, %ebx
	movq	-1128(%rbp), %r15               ## 8-byte Reload
	movq	-1096(%rbp), %r14               ## 8-byte Reload
	jmp	LBB0_47
LBB0_61:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid section name: %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"could not lock config file %s"

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

L_.str.4:                               ## @.str.4
	.asciz	"fstat on %s failed"

L_.str.5:                               ## @.str.5
	.asciz	"chmod on %s failed"

L_.str.6:                               ## @.str.6
	.asciz	"could not write config file %s"

	.no_dead_strip	_git_config_copy_or_rename_section_in_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function git_config_copy_or_rename_section_in_file
_git_config_copy_or_rename_section_in_file: ; @git_config_copy_or_rename_section_in_file
	.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
	sub	sp, sp, #1104
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh6:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh8:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_section_name_is_ok
	cbz	w0, LBB0_38
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x19, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_git_pathdup
	mov	x19, x0
	mov	x20, x0
LBB0_5:
	add	x0, sp, #56
	mov	x1, x20
	mov	w2, #0
	bl	_hold_lock_file_for_update
	tbnz	w0, #31, LBB0_36
; %bb.6:
	mov	x26, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_39
; %bb.7:
	mov	x21, x0
	bl	_fileno
	add	x1, sp, #48
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_40
; %bb.8:
	add	x0, sp, #56
	bl	_get_lock_file_path
	ldr	w8, [sp, #48]
	and	w1, w8, #0xfff
	bl	_chmod
	tbnz	x0, #63, LBB0_41
; %bb.9:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x19, sp, #64
	add	x0, sp, #64
	mov	w1, #1024
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_45
; %bb.10:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	mov	w23, #0
	mov	w25, #0
	add	x24, x19, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w19, #1
	cbz	w25, LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #64
	mov	w1, #1024
	mov	x2, x21
	bl	_fgets
	mov	x25, x19
	cbz	x0, LBB0_46
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldrb	w8, [sp, #64]
	cbz	w8, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x28, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldrb	w8, [x24, x28]
	add	x28, x28, #1
	cbnz	w8, LBB0_15
	b	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, sp, #64
	add	x27, x8, w28, uxtw
	ldrb	w8, [x27]
	cmp	w8, #91
	b.ne	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x2, [sp, #32]
	cmp	x2, #1
	b.lt	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x26
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_write_in_full
	tbnz	x0, #63, LBB0_55
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #32
	bl	_strbuf_reset
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_section_name_match
	cmp	w0, #1
	b.lt	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	cbz	x22, LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	mov	x0, x22
	bl	_strlen
	str	x0, [sp, #24]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x27, sp, #64
	add	x1, sp, #24
	mov	x0, x22
	bl	_store_create_section
	mov	w19, #0
	stp	x0, x1, [sp, #32]
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w19, #0
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x27, sp, #64
LBB0_27:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
	bl	_strlen
	mov	x28, x0
	cbz	w19, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #32]
	cmp	x8, #1
	b.lt	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #32
	mov	x1, x27
	mov	x2, x28
	bl	_strbuf_add
LBB0_30:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x26
	mov	x1, x27
	mov	x2, x28
	bl	_write_in_full
	tbnz	x0, #63, LBB0_55
; %bb.31:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w19, #0
	b	LBB0_12
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w19, #1
	b	LBB0_12
LBB0_33:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x2, sp, #24
	mov	x0, x26
	mov	x1, x22
	bl	_write_section
	tbnz	x0, #63, LBB0_55
; %bb.34:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w27, w28
	add	x9, sp, #64
	add	x27, x9, w8, sxtw
	mov	x0, x27
	bl	_strlen
	mov	w19, #0
	cbz	x0, LBB0_27
; %bb.35:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #9
	strb	w8, [x27, #-1]!
	b	LBB0_27
LBB0_36:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error
LBB0_37:
	mov	x23, x0
	b	LBB0_51
LBB0_38:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x22
	bl	_error
	mov	x23, x0
	mov	x19, #0
	b	LBB0_52
LBB0_39:
	mov	x0, x20
	bl	_warn_on_fopen_errors
	mov	x23, x0
	cbnz	w0, LBB0_51
	b	LBB0_50
LBB0_40:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x20
	b	LBB0_42
LBB0_41:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x20, x0
	add	x0, sp, #56
	bl	_get_lock_file_path
	mov	x1, x0
	mov	x0, x20
LBB0_42:
	bl	_error_errno
LBB0_43:
	mov	x23, x0
LBB0_44:
	mov	x0, x21
	bl	_fclose
	b	LBB0_51
LBB0_45:
	mov	w23, #0
LBB0_46:
	ldr	x2, [sp, #32]
	cmp	x2, #1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_49
; %bb.47:
	ldr	x1, [sp, #40]
	mov	x0, x26
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_write_in_full
	tbnz	x0, #63, LBB0_56
; %bb.48:
	add	x0, sp, #32
	bl	_strbuf_reset
LBB0_49:
	mov	x0, x21
	bl	_fclose
LBB0_50:
	add	x0, sp, #56
	bl	_commit_lock_file
	tbnz	x0, #63, LBB0_54
LBB0_51:
	add	x0, sp, #56
	bl	_rollback_lock_file
LBB0_52:
	mov	x0, x19
	bl	_free
	add	x0, sp, #24
	bl	_config_store_data_clear
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_57
; %bb.53:
	mov	x0, x23
	add	sp, sp, #1104
	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_54:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error_errno
	b	LBB0_37
LBB0_55:
	add	x0, sp, #56
	bl	_get_lock_file_path
	bl	_write_error
	mov	x23, x0
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_44
LBB0_56:
	add	x0, sp, #56
	bl	_get_lock_file_path
	bl	_write_error
	b	LBB0_43
LBB0_57:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid section name: %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"could not lock config file %s"

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

l_.str.4:                               ; @.str.4
	.asciz	"fstat on %s failed"

l_.str.5:                               ; @.str.5
	.asciz	"chmod on %s failed"

l_.str.6:                               ; @.str.6
	.asciz	"could not write config file %s"

	.no_dead_strip	_git_config_copy_or_rename_section_in_file
.subsections_via_symbols
