	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getprocjid
_getprocjid:                            ## @getprocjid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_KERN_PROC_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%edi, -20(%rbp)
	movq	$4, -40(%rbp)
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	leaq	_getprocjid.proc(%rip), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	_getprocjid.proc(%rip), %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getprocjid.proc,4,2 ## @getprocjid.proc
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_PID,4,2              ## @KERN_PROC_PID
	.comm	_errno,8,3                      ## @errno
	.comm	_ESRCH,8,3                      ## @ESRCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl()"

	.no_dead_strip	_getprocjid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getprocjid
_getprocjid:                            ; @getprocjid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _KERN_PROC_PID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _KERN_PROC_PID@GOTPAGEOFF]
	stp	w8, w9, [sp, #8]
Lloh11:
	ldr	w8, [x10]
	stp	w8, w0, [sp, #16]
	mov	w8, #4
	str	x8, [sp]
	add	x0, sp, #8
	bl	_nitems
	mov	x1, x0
Lloh12:
	adrp	x2, _getprocjid.proc@PAGE
Lloh13:
	add	x2, x2, _getprocjid.proc@PAGEOFF
	add	x0, sp, #8
	mov	x3, sp
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _getprocjid.proc@PAGE
Lloh15:
	ldr	w0, [x8, _getprocjid.proc@PAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ESRCH@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-8]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getprocjid.proc,4,2 ; @getprocjid.proc
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_PID,4,2              ; @KERN_PROC_PID
	.comm	_errno,8,3                      ; @errno
	.comm	_ESRCH,8,3                      ; @ESRCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl()"

	.no_dead_strip	_getprocjid
.subsections_via_symbols
