	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdlimit_named_sems
_fdlimit_named_sems:                    ## @fdlimit_named_sems
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_fdlimit_named_child@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-100(%rbp), %rdx
	movl	$10, %esi
	callq	_child_worker
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movl	-100(%rbp), %edi
	callq	_CSTAT_ERROR
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	-100(%rbp), %edi
	callq	_CSTAT_CLASS
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.2:
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_fail_errno
	jmp	LBB0_9
LBB0_7:
	movl	-100(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	callq	_pass
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_fail_errno
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	$10, %esi
LBB0_8:
	callq	_fail_err
LBB0_9:
	movq	_TEST_PATH@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	L_.str.4(%rip), %r14
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$2, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$3, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$4, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$5, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$6, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$7, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$8, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$9, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
	movq	(%r15), %rcx
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movl	$10, %r8d
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_ksem_unlink
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_fdlimit_named_child,4,2        ## @fdlimit_named_child
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ksem_open"

L_.str.1:                               ## @.str.1
	.asciz	"Limit of %d semaphores not enforced"

L_.str.2:                               ## @.str.2
	.asciz	"getrlimit"

L_.str.3:                               ## @.str.3
	.asciz	"bad child state %#x"

L_.str.4:                               ## @.str.4
	.asciz	"%s%d"

	.comm	_TEST_PATH,8,3                  ## @TEST_PATH
	.no_dead_strip	_fdlimit_named_sems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdlimit_named_sems
_fdlimit_named_sems:                    ; @fdlimit_named_sems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _fdlimit_named_child@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fdlimit_named_child@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #4
	mov	w1, #10
	bl	_child_worker
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w0, [sp, #4]
	bl	_CSTAT_ERROR
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	ldr	w0, [sp, #4]
	bl	_CSTAT_CLASS
	cmp	w0, #4
	b.hi	LBB0_4
; %bb.2:
	mov	w8, w0
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fail_errno
	b	LBB0_9
LBB0_4:
	ldr	w1, [sp, #4]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:
	bl	_pass
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fail_errno
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #10
LBB0_8:
	bl	_fail_err
LBB0_9:
Lloh19:
	adrp	x20, _TEST_PATH@GOTPAGE
Lloh20:
	ldr	x20, [x20, _TEST_PATH@GOTPAGEOFF]
	ldr	x3, [x20]
Lloh21:
	adrp	x19, l_.str.4@PAGE
Lloh22:
	add	x19, x19, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #0
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #1
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #2
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #3
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #4
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #5
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #6
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #7
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #8
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #9
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
	ldr	x3, [x20]
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	mov	w4, #10
	bl	_snprintf
	add	x0, sp, #8
	bl	_ksem_unlink
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_fdlimit_named_child,4,2        ; @fdlimit_named_child
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ksem_open"

l_.str.1:                               ; @.str.1
	.asciz	"Limit of %d semaphores not enforced"

l_.str.2:                               ; @.str.2
	.asciz	"getrlimit"

l_.str.3:                               ; @.str.3
	.asciz	"bad child state %#x"

l_.str.4:                               ; @.str.4
	.asciz	"%s%d"

	.comm	_TEST_PATH,8,3                  ; @TEST_PATH
	.no_dead_strip	_fdlimit_named_sems
.subsections_via_symbols
