	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_erase_file               ## -- Begin function _krb5_erase_file
	.p2align	4, 0x90
__krb5_erase_file:                      ## @_krb5_erase_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_rk_cloexec
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	__krb5_xlock
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_close
	movslq	%r12d, %rax
	jmp	LBB0_14
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	cmovneq	%rcx, %rax
	jmp	LBB0_14
LBB0_5:
	movq	%rbx, %rdi
	callq	_unlink
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:
	leaq	-56(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	-80(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jne	LBB0_15
## %bb.8:
	movq	-72(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.9:
	cmpq	$0, -40(%rbp)
	je	LBB0_16
## %bb.10:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__krb5_xunlock
	movl	%r15d, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__krb5_xunlock
	movl	%r15d, %edi
	callq	_close
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
LBB0_14:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__krb5_xunlock
	movl	%r15d, %edi
	callq	_close
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	movl	%r15d, %edi
	callq	_scrub_file
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__krb5_xunlock
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_close
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movslq	%ebx, %rax
	jmp	LBB0_14
LBB0_18:
	movslq	%r14d, %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EPERM,8,3                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_erase_file               ; -- Begin function _krb5_erase_file
	.p2align	2
__krb5_erase_file:                      ; @_krb5_erase_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x20, x0
	add	x1, sp, #24
	mov	x0, x21
	bl	_lstat
	tbnz	w0, #31, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x19, x0
	bl	_rk_cloexec
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	bl	__krb5_xlock
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	bl	_close
	sxtw	x0, w22
	b	LBB0_14
LBB0_4:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ENOENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x0, xzr, x8, eq
	b	LBB0_14
LBB0_5:
	mov	x0, x21
	bl	_unlink
	tbnz	x0, #63, LBB0_11
; %bb.6:
	mov	x1, sp
	mov	x0, x19
	bl	_fstat
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	x8, [sp, #24]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:
	ldr	x8, [sp, #32]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_16
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	__krb5_xunlock
	mov	x0, x19
	bl	_close
	mov	x0, #0
	b	LBB0_14
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	__krb5_xunlock
	mov	x0, x19
	bl	_close
LBB0_12:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_13:
	ldr	x0, [x8]
LBB0_14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	__krb5_xunlock
	mov	x0, x19
	bl	_close
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	mov	x0, x19
	bl	_scrub_file
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	__krb5_xunlock
	mov	x20, x0
	mov	x0, x19
	bl	_close
	sxtw	x8, w20
	sxtw	x9, w21
	cmp	w21, #0
	csel	x0, x8, x9, eq
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EPERM,8,3                      ; @EPERM
.subsections_via_symbols
