	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r2w2
_r2w2:                                  ## @r2w2
	.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	_wrkpid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_pub_lwproc_newlwp
	movq	_quittingtime@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rump_sys_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_rump_sys_close
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_wrkpid,4,2                     ## @wrkpid
	.comm	_quittingtime,4,2               ## @quittingtime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dir/file1"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.no_dead_strip	_r2w2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r2w2
_r2w2:                                  ; @r2w2
	.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
Lloh0:
	adrp	x8, _wrkpid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wrkpid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rump_pub_lwproc_newlwp
Lloh3:
	adrp	x20, _quittingtime@GOTPAGE
Lloh4:
	ldr	x20, [x20, _quittingtime@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, #0
	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_2:
Lloh5:
	adrp	x21, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _O_RDWR@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rump_sys_open
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_rump_sys_close
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	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	"/dir/file1"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.no_dead_strip	_r2w2
.subsections_via_symbols
