	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdlimit_unnamed_sems
_fdlimit_unnamed_sems:                  ## @fdlimit_unnamed_sems
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_fdlimit_unnamed_child@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-4(%rbp), %rdx
	movl	$10, %esi
	callq	_child_worker
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_1:
	movl	-4(%rbp), %edi
	callq	_CSTAT_ERROR
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	-4(%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	-4(%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
	jmp	LBB0_9
	.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_unnamed_child,4,2      ## @fdlimit_unnamed_child
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ksem_init"

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"

	.no_dead_strip	_fdlimit_unnamed_sems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdlimit_unnamed_sems
_fdlimit_unnamed_sems:                  ; @fdlimit_unnamed_sems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _fdlimit_unnamed_child@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fdlimit_unnamed_child@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x2, x29, #4
	mov	w1, #10
	bl	_child_worker
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	ldur	w0, [x29, #-4]
	bl	_CSTAT_ERROR
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
	ldur	w0, [x29, #-4]
	bl	_CSTAT_CLASS
	cmp	w0, #4
	b.hi	LBB0_5
; %bb.3:
	mov	w8, w0
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fail_errno
	b	LBB0_1
LBB0_5:
	ldur	w1, [x29, #-4]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
	bl	_pass
	b	LBB0_1
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fail_errno
	b	LBB0_1
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #10
LBB0_9:
	bl	_fail_err
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_fdlimit_unnamed_child,4,2      ; @fdlimit_unnamed_child
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ksem_init"

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"

	.no_dead_strip	_fdlimit_unnamed_sems
.subsections_via_symbols
