	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_getpgid                    ## -- Begin function sys_getpgid
	.p2align	4, 0x90
_sys_getpgid:                           ## @sys_getpgid
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_STRACE
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_2
LBB0_3:
	movq	_pids_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_lock
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_unlock
	jmp	LBB0_4
LBB0_2:
	movq	__EPERM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getpgid(%d)"

	.comm	_current,8,3                    ## @current
	.comm	__EPERM,8,3                     ## @_EPERM
	.comm	_pids_lock,4,2                  ## @pids_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_getpgid                    ; -- Begin function sys_getpgid
	.p2align	2
_sys_getpgid:                           ; @sys_getpgid
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_STRACE
Lloh2:
	adrp	x21, _current@GOTPAGE
Lloh3:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_3
LBB0_2:
Lloh4:
	adrp	x20, _pids_lock@GOTPAGE
Lloh5:
	ldr	x20, [x20, _pids_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_lock
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x19, [x8]
	mov	x0, x20
	bl	_unlock
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, __EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
LBB0_4:
	mov	x0, x19
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getpgid(%d)"

	.comm	_current,8,3                    ; @current
	.comm	__EPERM,8,3                     ; @_EPERM
	.comm	_pids_lock,4,2                  ; @pids_lock
.subsections_via_symbols
