	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exhaust_named_child
_exhaust_named_child:                   ## @exhaust_named_child
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.1:
	incl	%r14d
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r12
	movq	_O_CREAT@GOTPCREL(%rip), %r15
	leaq	-116(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TEST_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movl	$64, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %r8d
	callq	_snprintf
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$511, %ecx                      ## imm = 0x1FF
	movl	$1, %r8d
	callq	_ksem_open
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_3
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$2, %edi
LBB0_10:
	callq	_CSTAT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.5:
	movq	_EMFILE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.6:
	movq	_ENFILE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_7
## %bb.8:
	movl	$1, %edi
	jmp	LBB0_10
LBB0_7:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.comm	_TEST_PATH,8,3                  ## @TEST_PATH
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSPC,8,3                     ## @ENOSPC
	.comm	_EMFILE,8,3                     ## @EMFILE
	.comm	_ENFILE,8,3                     ## @ENFILE
	.no_dead_strip	_exhaust_named_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exhaust_named_child
_exhaust_named_child:                   ; @exhaust_named_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	w19, #0
	add	w21, w0, #1
Lloh3:
	adrp	x22, _TEST_PATH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TEST_PATH@GOTPAGEOFF]
Lloh5:
	adrp	x23, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _O_CREAT@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x22]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x20
	mov	x4, x19
	bl	_snprintf
	ldr	w2, [x23]
	add	x0, sp, #4
	add	x1, sp, #8
	mov	w3, #511
	mov	w4, #1
	bl	_ksem_open
	tbnz	x0, #63, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	cmp	w21, w19
	b.ne	LBB0_2
LBB0_4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	w0, #2
LBB0_5:
	bl	_CSTAT
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _EMFILE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EMFILE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _ENFILE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ENFILE@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	ccmp	x1, x10, #4, ne
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	mov	x1, #0
	b	LBB0_5
LBB0_9:
	mov	w0, #1
	b	LBB0_5
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.comm	_TEST_PATH,8,3                  ; @TEST_PATH
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSPC,8,3                     ; @ENOSPC
	.comm	_EMFILE,8,3                     ; @EMFILE
	.comm	_ENFILE,8,3                     ; @ENFILE
	.no_dead_strip	_exhaust_named_child
.subsections_via_symbols
