	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_current_settings      ## -- Begin function validate_current_settings
	.p2align	4, 0x90
_validate_current_settings:             ## @validate_current_settings
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cur_limits@GOTPCREL(%rip), %r14
	cmpl	$4095, (%r14)                   ## imm = 0xFFF
	jg	LBB0_2
## %bb.1:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movabsq	$70368744185856, %rax           ## imm = 0x400000002000
	movq	%rax, (%r14)
	movq	_RLIMIT_MSGQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_setr
LBB0_2:
	movq	_default_settings@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_cur_def_msgs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	incl	%eax
	movq	_cur_def_msgsize@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	addl	$17, %ecx
	imull	%eax, %ecx
	cmpl	(%r14), %ecx
	jle	LBB0_8
## %bb.4:
	movq	_def_msgsize@GOTPCREL(%rip), %r14
	movq	_def_msgs@GOTPCREL(%rip), %r12
	leaq	L_str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	_cur_max_msgs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	incl	%eax
	movq	_cur_max_msgsize@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	addl	$17, %ecx
	imull	%eax, %ecx
	cmpl	(%r14), %ecx
	jle	LBB0_8
## %bb.6:
	movq	_max_msgsize@GOTPCREL(%rip), %r14
	movq	_max_msgs@GOTPCREL(%rip), %r12
	leaq	L_str(%rip), %rdi
LBB0_7:
	callq	_puts
	movl	(%r12), %edi
	movl	$10, %esi
	callq	_set
	movl	$10, (%rbx)
	movl	(%r14), %edi
	movl	$128, %esi
	callq	_set
	movl	$128, (%r15)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_limits,8,2                 ## @cur_limits
	.comm	_RLIMIT_MSGQUEUE,4,2            ## @RLIMIT_MSGQUEUE
	.comm	_default_settings,8,3           ## @default_settings
	.comm	_cur_def_msgs,4,2               ## @cur_def_msgs
	.comm	_cur_def_msgsize,4,2            ## @cur_def_msgsize
	.comm	_def_msgs,4,2                   ## @def_msgs
	.comm	_def_msgsize,4,2                ## @def_msgsize
	.comm	_cur_max_msgs,4,2               ## @cur_max_msgs
	.comm	_cur_max_msgsize,4,2            ## @cur_max_msgsize
	.comm	_max_msgs,4,2                   ## @max_msgs
	.comm	_max_msgsize,4,2                ## @max_msgsize
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Temporarily lowering maximum queue parameters to something that will work\nwith the current rlimit values in case this is a kernel that ties the default\nqueue parameters to the maximum queue parameters.\n"

L_str.3:                                ## @str.3
	.asciz	"Temporarily lowering default queue parameters to something that will work\nwith the current rlimit values.\n"

L_str.4:                                ## @str.4
	.asciz	"Current rlimit value for POSIX message queue bytes is unreasonably low,\nincreasing.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function validate_current_settings
lCPI0_0:
	.long	8192                            ; 0x2000
	.long	16384                           ; 0x4000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_validate_current_settings
	.p2align	2
_validate_current_settings:             ; @validate_current_settings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _cur_limits@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cur_limits@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #4095
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str.4@PAGE
Lloh3:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh6:
	adrp	x8, _RLIMIT_MSGQUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RLIMIT_MSGQUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_setr
LBB0_2:
Lloh9:
	adrp	x8, _default_settings@GOTPAGE
Lloh10:
	ldr	x8, [x8, _default_settings@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh12:
	adrp	x21, _cur_def_msgs@GOTPAGE
Lloh13:
	ldr	x21, [x21, _cur_def_msgs@GOTPAGEOFF]
Lloh14:
	adrp	x20, _cur_def_msgsize@GOTPAGE
Lloh15:
	ldr	x20, [x20, _cur_def_msgsize@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w9, w9, #17
	madd	w8, w9, w8, w9
	ldr	w9, [x19]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.4:
Lloh16:
	adrp	x19, _def_msgsize@GOTPAGE
Lloh17:
	ldr	x19, [x19, _def_msgsize@GOTPAGEOFF]
Lloh18:
	adrp	x22, _def_msgs@GOTPAGE
Lloh19:
	ldr	x22, [x22, _def_msgs@GOTPAGEOFF]
Lloh20:
	adrp	x0, l_str.3@PAGE
Lloh21:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh22:
	adrp	x21, _cur_max_msgs@GOTPAGE
Lloh23:
	ldr	x21, [x21, _cur_max_msgs@GOTPAGEOFF]
Lloh24:
	adrp	x20, _cur_max_msgsize@GOTPAGE
Lloh25:
	ldr	x20, [x20, _cur_max_msgsize@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w9, w9, #17
	madd	w8, w9, w8, w9
	ldr	w9, [x19]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.6:
Lloh26:
	adrp	x19, _max_msgsize@GOTPAGE
Lloh27:
	ldr	x19, [x19, _max_msgsize@GOTPAGEOFF]
Lloh28:
	adrp	x22, _max_msgs@GOTPAGE
Lloh29:
	ldr	x22, [x22, _max_msgs@GOTPAGEOFF]
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
LBB0_7:
	bl	_puts
	ldr	w0, [x22]
	mov	w22, #10
	mov	w1, #10
	bl	_set
	str	w22, [x21]
	ldr	w0, [x19]
	mov	w19, #128
	mov	w1, #128
	bl	_set
	str	w19, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_limits,8,2                 ; @cur_limits
	.comm	_RLIMIT_MSGQUEUE,4,2            ; @RLIMIT_MSGQUEUE
	.comm	_default_settings,8,3           ; @default_settings
	.comm	_cur_def_msgs,4,2               ; @cur_def_msgs
	.comm	_cur_def_msgsize,4,2            ; @cur_def_msgsize
	.comm	_def_msgs,4,2                   ; @def_msgs
	.comm	_def_msgsize,4,2                ; @def_msgsize
	.comm	_cur_max_msgs,4,2               ; @cur_max_msgs
	.comm	_cur_max_msgsize,4,2            ; @cur_max_msgsize
	.comm	_max_msgs,4,2                   ; @max_msgs
	.comm	_max_msgsize,4,2                ; @max_msgsize
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Temporarily lowering maximum queue parameters to something that will work\nwith the current rlimit values in case this is a kernel that ties the default\nqueue parameters to the maximum queue parameters.\n"

l_str.3:                                ; @str.3
	.asciz	"Temporarily lowering default queue parameters to something that will work\nwith the current rlimit values.\n"

l_str.4:                                ; @str.4
	.asciz	"Current rlimit value for POSIX message queue bytes is unreasonably low,\nincreasing.\n"

.subsections_via_symbols
