	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OS_getSystemMaxProcesses
_OS_getSystemMaxProcesses:              ## @OS_getSystemMaxProcesses
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_max_proc@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_KERN_MAXPROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	$4, -48(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.2:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
LBB0_3:
	movl	%eax, (%rbx)
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_max_proc,4,2                   ## @max_proc
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_MAXPROC,4,2               ## @KERN_MAXPROC
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl KERN_MAXPROC failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.no_dead_strip	_OS_getSystemMaxProcesses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OS_getSystemMaxProcesses
_OS_getSystemMaxProcesses:              ; @OS_getSystemMaxProcesses
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x20, _max_proc@GOTPAGE
Lloh4:
	ldr	x20, [x20, _max_proc@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _KERN_MAXPROC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KERN_MAXPROC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	mov	w8, #4
	str	x8, [sp]
	add	x0, sp, #16
	add	x2, sp, #12
	mov	x3, sp
	mov	w1, #2
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_3:
	str	w8, [x19]
Lloh11:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh16:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
Lloh21:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_max_proc,4,2                   ; @max_proc
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_MAXPROC,4,2               ; @KERN_MAXPROC
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl KERN_MAXPROC failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.no_dead_strip	_OS_getSystemMaxProcesses
.subsections_via_symbols
