	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w1
_w1:                                    ## @w1
	.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	_wrkpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_pub_lwproc_newlwp
	movq	_quittingtime@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_O_CREAT@GOTPCREL(%rip), %r14
	movq	_O_TRUNC@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_rump_sys_unlink
	movl	%ebx, %edi
	callq	_rump_sys_close
	cmpl	$0, (%r12)
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r15, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail_errno
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_wrkpid,4,2                     ## @wrkpid
	.comm	_quittingtime,4,2               ## @quittingtime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rename.test1"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"create"

	.no_dead_strip	_w1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w1
_w1:                                    ; @w1
	.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
Lloh0:
	adrp	x8, _wrkpid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wrkpid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rump_pub_lwproc_newlwp
Lloh3:
	adrp	x22, _quittingtime@GOTPAGE
Lloh4:
	ldr	x22, [x22, _quittingtime@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, #0
	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_2:
Lloh5:
	adrp	x23, _O_WRONLY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _O_WRONLY@GOTPAGEOFF]
Lloh7:
	adrp	x24, _O_CREAT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _O_CREAT@GOTPAGEOFF]
Lloh9:
	adrp	x19, l_.str@PAGE
Lloh10:
	add	x19, x19, l_.str@PAGEOFF
Lloh11:
	adrp	x25, _O_TRUNC@GOTPAGE
Lloh12:
	ldr	x25, [x25, _O_TRUNC@GOTPAGEOFF]
Lloh13:
	adrp	x26, _errno@GOTPAGE
Lloh14:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh17:
	adrp	x27, _EEXIST@GOTPAGE
Lloh18:
	ldr	x27, [x27, _EEXIST@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_rump_sys_unlink
	mov	x0, x21
	bl	_rump_sys_close
	ldr	w8, [x22]
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #438
	bl	_rump_sys_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_atf_tc_fail_errno
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_wrkpid,4,2                     ; @wrkpid
	.comm	_quittingtime,4,2               ; @quittingtime
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rename.test1"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"create"

	.no_dead_strip	_w1
.subsections_via_symbols
