	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_stable
_open_stable:                           ## @open_stable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_NFSD_STABLERESTART@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	%r12d, %r13d
LBB0_3:
	leaq	-64(%rbp), %rsi
	movl	%r13d, %edi
	callq	_fstat
	movl	$-1, %r12d
	movl	$-1, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	_NFSD_STABLEBACKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	_NFSD_STABLEBACKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
LBB0_6:
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fstat
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	%ebx, (%r15)
	cmpq	$0, -64(%rbp)
	jle	LBB0_14
## %bb.12:
	movl	%r13d, %edi
	movl	%ebx, %esi
	jmp	LBB0_13
LBB0_7:
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %ebx
LBB0_8:
	movl	%r13d, %edi
	callq	_close
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movl	%ebx, (%r15)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_14:
	cmpq	$0, -56(%rbp)
	jle	LBB0_10
## %bb.15:
	movl	%ebx, %edi
	movl	%r13d, %esi
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_stable                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFSD_STABLERESTART,4,2         ## @NFSD_STABLERESTART
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_NFSD_STABLEBACKUP,4,2          ## @NFSD_STABLEBACKUP
	.no_dead_strip	_open_stable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_stable
_open_stable:                           ; @open_stable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _NFSD_STABLERESTART@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NFSD_STABLERESTART@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	ldr	w8, [x23]
Lloh4:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #384
	bl	_open
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fstat
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh7:
	adrp	x24, _NFSD_STABLEBACKUP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _NFSD_STABLEBACKUP@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #384
	bl	_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
LBB0_5:
	mov	x1, sp
	mov	x0, x22
	bl	_fstat
	tbnz	w0, #31, LBB0_8
; %bb.6:
	str	w21, [x20]
	str	w22, [x19]
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	b	LBB0_16
LBB0_8:
	mov	x0, x22
	bl	_close
LBB0_9:
	mov	w22, #-1
LBB0_10:
	mov	x0, x21
	bl	_close
	mov	w21, #-1
LBB0_11:
	str	w21, [x20]
	str	w22, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w22, #-1
	b	LBB0_11
LBB0_14:
	ldr	x8, [sp]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.15:
	mov	x0, x22
	mov	x1, x21
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_stable
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NFSD_STABLERESTART,4,2         ; @NFSD_STABLERESTART
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_NFSD_STABLEBACKUP,4,2          ; @NFSD_STABLEBACKUP
	.no_dead_strip	_open_stable
.subsections_via_symbols
