	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openfiles2
_openfiles2:                            ## @openfiles2
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_AFILE@GOTPCREL(%rip), %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%rbx
	jne	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	callq	_getppid
	movq	_SIGUSR1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kill
	movq	_RENDEZVOUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_R_OK@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	callq	_access
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	movl	(%r14), %edi
	jmp	LBB0_7
LBB0_8:
	xorl	%edi, %edi
	callq	__exit
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_AFILE,4,2                      ## @AFILE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open: %s\n"

	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_RENDEZVOUS,4,2                 ## @RENDEZVOUS
	.comm	_R_OK,4,2                       ## @R_OK
	.no_dead_strip	_openfiles2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openfiles2
_openfiles2:                            ; @openfiles2
	.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	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	xzr, [x20]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _AFILE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AFILE@GOTPAGEOFF]
Lloh4:
	adrp	x22, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _O_RDONLY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_4:
	bl	_getppid
Lloh6:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kill
Lloh9:
	adrp	x19, _RENDEZVOUS@GOTPAGE
Lloh10:
	ldr	x19, [x19, _RENDEZVOUS@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh11:
	adrp	x20, _R_OK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _R_OK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	bl	_access
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1000
	bl	_usleep
	ldr	w0, [x19]
	b	LBB0_5
LBB0_7:
	mov	w0, #0
	bl	__exit
LBB0_8:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	x0, [x20]
	bl	_strerror
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_AFILE,4,2                      ; @AFILE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open: %s\n"

	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_RENDEZVOUS,4,2                 ; @RENDEZVOUS
	.comm	_R_OK,4,2                       ; @R_OK
	.no_dead_strip	_openfiles2
.subsections_via_symbols
