	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function worker_map_limit
_worker_map_limit:                      ## @worker_map_limit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_num_iterations@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movq	_num_sections@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_pt_section_map
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_pt_section_unmap
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	imull	$-373475417, %r13d, %eax        ## imm = 0xE9BD37A7
	cmpl	$186737708, %eax                ## imm = 0xB21642C
	ja	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r15d, %rax
	leaq	l___const.worker_map_limit.limits(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_pt_iscache_set_limit
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	andl	$3, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	xorl	%eax, %eax
	movq	_num_iterations@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jl	LBB0_5
	jmp	LBB0_14
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_2:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.worker_map_limit.limits
l___const.worker_map_limit.limits:
	.long	32768                           ## 0x8000
	.long	12288                           ## 0x3000
	.long	73728                           ## 0x12000
	.long	0                               ## 0x0

	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_num_iterations,4,2             ## @num_iterations
	.comm	_num_sections,4,2               ## @num_sections
	.no_dead_strip	_worker_map_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function worker_map_limit
_worker_map_limit:                      ; @worker_map_limit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x20, _num_iterations@GOTPAGE
Lloh1:
	ldr	x20, [x20, _num_iterations@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x19, x0
	mov	w22, #0
	mov	w21, #0
Lloh2:
	adrp	x23, _num_sections@GOTPAGE
Lloh3:
	ldr	x23, [x23, _num_sections@GOTPAGEOFF]
	mov	w24, #14247
	movk	w24, #59837, lsl #16
	mov	w25, #25644
	movk	w25, #2849, lsl #16
Lloh4:
	adrp	x26, l___const.worker_map_limit.limits@PAGE
Lloh5:
	add	x26, x26, l___const.worker_map_limit.limits@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x27, lsl #2]
	bl	_pt_section_map
	tbnz	w0, #31, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x27, lsl #2]
	bl	_pt_section_unmap
	tbnz	w0, #31, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.lt	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	w8, w21, w24
	cmp	w8, w25
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26, w22, sxtw #2]
	mov	x0, x19
	bl	_pt_iscache_set_limit
	tbnz	w0, #31, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, #1
	and	w22, w8, #0x3
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_3
	b	LBB0_14
LBB0_12:
Lloh6:
	adrp	x8, _pte_internal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.worker_map_limit.limits
l___const.worker_map_limit.limits:
	.long	32768                           ; 0x8000
	.long	12288                           ; 0x3000
	.long	73728                           ; 0x12000
	.long	0                               ; 0x0

	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_num_iterations,4,2             ; @num_iterations
	.comm	_num_sections,4,2               ; @num_sections
	.no_dead_strip	_worker_map_limit
.subsections_via_symbols
