	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rewrite_credential_file
_rewrite_credential_file:               ## @rewrite_credential_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_credential_lock@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_hold_lock_file_for_update
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_print_line
LBB0_4:
	movq	_print_line@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_parse_credential_file
	movq	_credential_lock@GOTPCREL(%rip), %rdi
	callq	_commit_lock_file
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
	testq	%r15, %r15
	jne	LBB0_3
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die_errno                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_credential_lock,4,2            ## @credential_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get credential storage lock"

L_.str.1:                               ## @.str.1
	.asciz	"unable to write credential store"

	.no_dead_strip	_rewrite_credential_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rewrite_credential_file
_rewrite_credential_file:               ; @rewrite_credential_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _credential_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _credential_lock@GOTPAGEOFF]
	mov	x1, x20
	mov	w2, #0
	bl	_hold_lock_file_for_update
	tbnz	x0, #63, LBB0_5
; %bb.1:
	cbz	x21, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_print_line
LBB0_3:
Lloh2:
	adrp	x3, _print_line@GOTPAGE
Lloh3:
	ldr	x3, [x3, _print_line@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_parse_credential_file
Lloh4:
	adrp	x0, _credential_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _credential_lock@GOTPAGEOFF]
	bl	_commit_lock_file
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
	cbnz	x21, LBB0_2
	b	LBB0_3
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_die_errno
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_credential_lock,4,2            ; @credential_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get credential storage lock"

l_.str.1:                               ; @.str.1
	.asciz	"unable to write credential store"

	.no_dead_strip	_rewrite_credential_file
.subsections_via_symbols
