	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scm_check_creds
_scm_check_creds:                       ## @scm_check_creds
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_current_cred
	movq	%rax, %r15
	movq	(%r14), %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_tgid_vnr
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.1:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	8(%r14), %rax
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.3:
	cmpq	8(%r15), %rax
	je	LBB0_6
## %bb.4:
	cmpq	16(%r15), %rax
	je	LBB0_6
## %bb.5:
	movq	_CAP_SETUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	16(%r14), %rax
	xorl	%r14d, %r14d
	cmpq	24(%r15), %rax
	je	LBB0_11
## %bb.7:
	cmpq	32(%r15), %rax
	je	LBB0_11
## %bb.8:
	cmpq	40(%r15), %rax
	je	LBB0_11
## %bb.9:
	movq	_CAP_SETGID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_CAP_SETUID,4,2                 ## @CAP_SETUID
	.comm	_CAP_SETGID,4,2                 ## @CAP_SETGID
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_scm_check_creds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scm_check_creds
_scm_check_creds:                       ; @scm_check_creds
	.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
	bl	_current_cred
	mov	x19, x0
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_task_tgid_vnr
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_11
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _CAP_SETUID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP_SETUID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_11
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _CAP_SETGID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_SETGID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_capable
	cbz	x0, LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_CAP_SETUID,4,2                 ; @CAP_SETUID
	.comm	_CAP_SETGID,4,2                 ; @CAP_SETGID
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_scm_check_creds
.subsections_via_symbols
