	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_minherit                   ## -- Begin function sys_minherit
	.p2align	4, 0x90
_sys_minherit:                          ## @sys_minherit
	.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	%rdi, %r15
	movl	4(%rsi), %r14d
	movl	8(%rsi), %r12d
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movl	(%rsi), %edi
	addl	%ebx, %edi
	callq	_round_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	subl	%ebx, %r12d
	addl	%r12d, %eax
	movq	(%r15), %rcx
	movq	(%rcx), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_vm_map_inherit
	cmpl	$128, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_minherit                   ; -- Begin function sys_minherit
	.p2align	2
_sys_minherit:                          ; @sys_minherit
	.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
	mov	x20, x0
	ldp	w19, w21, [x1, #4]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w9, w21
	add	w0, w22, w8
	bl	_round_page
	tbnz	w0, #31, LBB0_4
; %bb.1:
	sub	w1, w21, w22
	add	w2, w1, w0
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x3, x19
	bl	_vm_map_inherit
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EACCES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
