	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_scm_creds_cmsgcred    ## -- Begin function uc_check_scm_creds_cmsgcred
	.p2align	4, 0x90
_uc_check_scm_creds_cmsgcred:           ## @uc_check_scm_creds_cmsgcred
	.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, %rbx
	movq	_SCM_CREDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edx
	callq	_uc_check_cmsghdr
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movq	%rax, %rbx
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_uc_dbgmsg
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_uc_dbgmsg
	movq	16(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_uc_dbgmsg
	movq	24(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_uc_dbgmsg
	movq	32(%rbx), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_uc_dbgmsg
	movq	(%rbx), %rsi
	movq	_uc_cfg@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	xorl	%r15d, %r15d
	cmpq	%rdx, %rsi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r15d
LBB0_4:
	movq	8(%rbx), %rsi
	movq	8(%r14), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r15d
LBB0_6:
	movq	16(%rbx), %rsi
	movq	16(%r14), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_8
## %bb.7:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r15d
LBB0_8:
	movq	24(%rbx), %rsi
	movq	24(%r14), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_10
## %bb.9:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r15d
LBB0_10:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.12:
	testq	%rsi, %rsi
	js	LBB0_13
LBB0_14:
	movq	_CMGROUP_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_16
## %bb.15:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r15d
LBB0_16:
	movq	40(%rbx), %rsi
	movq	(%rsi), %rax
	movq	32(%r14), %rdx
	cmpq	%rdx, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.12(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movq	40(%rbx), %rsi
	movl	$-1, %r15d
LBB0_18:
	movq	32(%rbx), %rcx
	leaq	L_.str.13(%rip), %rdi
	leaq	L_.str.14(%rip), %rdx
	xorl	%r8d, %r8d
	callq	_uc_check_groups
	testq	%rax, %rax
	movl	$-1, %eax
	cmovnsl	%r15d, %eax
	jmp	LBB0_19
LBB0_1:
	movl	$-1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movq	32(%rbx), %rsi
	movl	$-1, %r15d
	testq	%rsi, %rsi
	jns	LBB0_14
LBB0_13:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movq	32(%rbx), %rsi
	movl	$-1, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SCM_CREDS,4,2                  ## @SCM_CREDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmsgcred.cmcred_pid %ld"

L_.str.1:                               ## @.str.1
	.asciz	"cmsgcred.cmcred_uid %lu"

L_.str.2:                               ## @.str.2
	.asciz	"cmsgcred.cmcred_euid %lu"

L_.str.3:                               ## @.str.3
	.asciz	"cmsgcred.cmcred_gid %lu"

L_.str.4:                               ## @.str.4
	.asciz	"cmsgcred.cmcred_ngroups %d"

	.comm	_uc_cfg,40,3                    ## @uc_cfg
L_.str.5:                               ## @.str.5
	.asciz	"cmsgcred.cmcred_pid %ld != %ld"

L_.str.6:                               ## @.str.6
	.asciz	"cmsgcred.cmcred_uid %lu != %lu"

L_.str.7:                               ## @.str.7
	.asciz	"cmsgcred.cmcred_euid %lu != %lu"

L_.str.8:                               ## @.str.8
	.asciz	"cmsgcred.cmcred_gid %lu != %lu"

L_.str.9:                               ## @.str.9
	.asciz	"cmsgcred.cmcred_ngroups == 0"

L_.str.10:                              ## @.str.10
	.asciz	"cmsgcred.cmcred_ngroups %d < 0"

	.comm	_CMGROUP_MAX,8,3                ## @CMGROUP_MAX
L_.str.11:                              ## @.str.11
	.asciz	"cmsgcred.cmcred_ngroups %d > %d"

L_.str.12:                              ## @.str.12
	.asciz	"cmsgcred.cmcred_groups[0] %lu != %lu (EGID)"

L_.str.13:                              ## @.str.13
	.asciz	"cmsgcred.cmcred_groups"

L_.str.14:                              ## @.str.14
	.asciz	"cmsgcred.cmcred_ngroups"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_scm_creds_cmsgcred    ; -- Begin function uc_check_scm_creds_cmsgcred
	.p2align	2
_uc_check_scm_creds_cmsgcred:           ; @uc_check_scm_creds_cmsgcred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, _SCM_CREDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCM_CREDS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #48
	bl	_uc_check_cmsghdr
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_CMSG_DATA
	mov	x19, x0
	ldr	x1, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #16]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #24]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #32]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x8, [x19]
Lloh13:
	adrp	x20, _uc_cfg@GOTPAGE
Lloh14:
	ldr	x20, [x20, _uc_cfg@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_17
LBB0_4:
	stp	x8, x9, [sp]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_uc_logmsgx
	mov	w21, #-1
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	stp	x8, x9, [sp]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_uc_logmsgx
	mov	w21, #-1
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	stp	x8, x9, [sp]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_uc_logmsgx
	mov	w21, #-1
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.10:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_19
LBB0_11:
	tbnz	x8, #63, LBB0_20
LBB0_12:
Lloh21:
	adrp	x9, _CMGROUP_MAX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CMGROUP_MAX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.13:
	stp	x8, x9, [sp]
Lloh24:
	adrp	x0, l_.str.11@PAGE
Lloh25:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_uc_logmsgx
	mov	w21, #-1
LBB0_14:
	ldr	x1, [x19, #40]
	ldr	x8, [x1]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
	stp	x8, x9, [sp]
Lloh26:
	adrp	x0, l_.str.12@PAGE
Lloh27:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_uc_logmsgx
	ldr	x1, [x19, #40]
	mov	w21, #-1
LBB0_16:
	ldr	x3, [x19, #32]
Lloh28:
	adrp	x0, l_.str.13@PAGE
Lloh29:
	add	x0, x0, l_.str.13@PAGEOFF
Lloh30:
	adrp	x2, l_.str.14@PAGE
Lloh31:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	w4, #0
	bl	_uc_check_groups
	cmp	x0, #0
	csinv	w0, w21, wzr, ge
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
	stp	x8, x9, [sp]
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_uc_logmsgx
	mov	w21, #-1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_11
LBB0_19:
Lloh34:
	adrp	x0, l_.str.9@PAGE
Lloh35:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_uc_logmsgx
	ldr	x8, [x19, #32]
	mov	w21, #-1
	tbz	x8, #63, LBB0_12
LBB0_20:
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.10@PAGE
Lloh37:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_uc_logmsgx
	ldr	x8, [x19, #32]
	mov	w21, #-1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SCM_CREDS,4,2                  ; @SCM_CREDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmsgcred.cmcred_pid %ld"

l_.str.1:                               ; @.str.1
	.asciz	"cmsgcred.cmcred_uid %lu"

l_.str.2:                               ; @.str.2
	.asciz	"cmsgcred.cmcred_euid %lu"

l_.str.3:                               ; @.str.3
	.asciz	"cmsgcred.cmcred_gid %lu"

l_.str.4:                               ; @.str.4
	.asciz	"cmsgcred.cmcred_ngroups %d"

	.comm	_uc_cfg,40,3                    ; @uc_cfg
l_.str.5:                               ; @.str.5
	.asciz	"cmsgcred.cmcred_pid %ld != %ld"

l_.str.6:                               ; @.str.6
	.asciz	"cmsgcred.cmcred_uid %lu != %lu"

l_.str.7:                               ; @.str.7
	.asciz	"cmsgcred.cmcred_euid %lu != %lu"

l_.str.8:                               ; @.str.8
	.asciz	"cmsgcred.cmcred_gid %lu != %lu"

l_.str.9:                               ; @.str.9
	.asciz	"cmsgcred.cmcred_ngroups == 0"

l_.str.10:                              ; @.str.10
	.asciz	"cmsgcred.cmcred_ngroups %d < 0"

	.comm	_CMGROUP_MAX,8,3                ; @CMGROUP_MAX
l_.str.11:                              ; @.str.11
	.asciz	"cmsgcred.cmcred_ngroups %d > %d"

l_.str.12:                              ; @.str.12
	.asciz	"cmsgcred.cmcred_groups[0] %lu != %lu (EGID)"

l_.str.13:                              ; @.str.13
	.asciz	"cmsgcred.cmcred_groups"

l_.str.14:                              ; @.str.14
	.asciz	"cmsgcred.cmcred_ngroups"

.subsections_via_symbols
