	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_scm_creds_sockcred    ## -- Begin function uc_check_scm_creds_sockcred
	.p2align	4, 0x90
_uc_check_scm_creds_sockcred:           ## @uc_check_scm_creds_sockcred
	.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
	movq	_SCM_CREDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_uc_cfg@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_SOCKCREDSIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_uc_check_cmsghdr
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r14, %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	8(%r15), %rdx
	xorl	%r14d, %r14d
	cmpq	%rdx, %rsi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r14d
LBB0_4:
	movq	8(%rbx), %rsi
	movq	16(%r15), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r14d
LBB0_6:
	movq	16(%rbx), %rsi
	movq	24(%r15), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_8
## %bb.7:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r14d
LBB0_8:
	movq	24(%rbx), %rsi
	movq	32(%r15), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_10
## %bb.9:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movl	$-1, %r14d
LBB0_10:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	testq	%rcx, %rcx
	js	LBB0_13
LBB0_14:
	movq	(%r15), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_16
## %bb.15:
	leaq	L_.str.11(%rip), %rdi
	movq	%rcx, %rsi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movq	32(%rbx), %rcx
	movl	$-1, %r14d
LBB0_16:
	movl	40(%rbx), %esi
	leaq	L_.str.12(%rip), %rdi
	leaq	L_.str.13(%rip), %rdx
	movl	$1, %r8d
	callq	_uc_check_groups
	testq	%rax, %rax
	movl	$-1, %eax
	cmovnsl	%r14d, %eax
	jmp	LBB0_17
LBB0_1:
	movl	$-1, %eax
LBB0_17:
	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), %rcx
	movl	$-1, %r14d
	testq	%rcx, %rcx
	jns	LBB0_14
LBB0_13:
	leaq	L_.str.10(%rip), %rdi
	movq	%rcx, %rsi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	movq	32(%rbx), %rcx
	movl	$-1, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SCM_CREDS,4,2                  ## @SCM_CREDS
	.comm	_uc_cfg,40,3                    ## @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sockcred.sc_uid %lu"

L_.str.1:                               ## @.str.1
	.asciz	"sockcred.sc_euid %lu"

L_.str.2:                               ## @.str.2
	.asciz	"sockcred.sc_gid %lu"

L_.str.3:                               ## @.str.3
	.asciz	"sockcred.sc_egid %lu"

L_.str.4:                               ## @.str.4
	.asciz	"sockcred.sc_ngroups %d"

L_.str.5:                               ## @.str.5
	.asciz	"sockcred.sc_uid %lu != %lu"

L_.str.6:                               ## @.str.6
	.asciz	"sockcred.sc_euid %lu != %lu"

L_.str.7:                               ## @.str.7
	.asciz	"sockcred.sc_gid %lu != %lu"

L_.str.8:                               ## @.str.8
	.asciz	"sockcred.sc_egid %lu != %lu"

L_.str.9:                               ## @.str.9
	.asciz	"sockcred.sc_ngroups == 0"

L_.str.10:                              ## @.str.10
	.asciz	"sockcred.sc_ngroups %d < 0"

L_.str.11:                              ## @.str.11
	.asciz	"sockcred.sc_ngroups %d != %u"

L_.str.12:                              ## @.str.12
	.asciz	"sockcred.sc_groups"

L_.str.13:                              ## @.str.13
	.asciz	"sockcred.sc_ngroups"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_scm_creds_sockcred    ; -- Begin function uc_check_scm_creds_sockcred
	.p2align	2
_uc_check_scm_creds_sockcred:           ; @uc_check_scm_creds_sockcred
	.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	w20, [x8]
Lloh3:
	adrp	x21, _uc_cfg@GOTPAGE
Lloh4:
	ldr	x21, [x21, _uc_cfg@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_SOCKCREDSIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_uc_check_cmsghdr
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_CMSG_DATA
	mov	x19, x0
	ldr	x1, [x0]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #16]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #24]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x1, [x19, #32]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_uc_dbgmsg
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_15
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	w20, #-1
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #16]
	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	w20, #-1
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x9, [x21, #24]
	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	w20, #-1
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	x9, [x21, #32]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:
	ldr	x3, [x19, #32]
	cbz	x3, LBB0_17
LBB0_11:
	tbnz	x3, #63, LBB0_18
LBB0_12:
	ldr	x8, [x21]
	cmp	x3, x8
	b.eq	LBB0_14
; %bb.13:
	stp	x3, x8, [sp]
Lloh21:
	adrp	x0, l_.str.11@PAGE
Lloh22:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_uc_logmsgx
	ldr	x3, [x19, #32]
	mov	w20, #-1
LBB0_14:
	ldr	w1, [x19, #40]
Lloh23:
	adrp	x0, l_.str.12@PAGE
Lloh24:
	add	x0, x0, l_.str.12@PAGEOFF
Lloh25:
	adrp	x2, l_.str.13@PAGE
Lloh26:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	w4, #1
	bl	_uc_check_groups
	cmp	x0, #0
	csinv	w0, w20, wzr, ge
LBB0_15:
	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_16:
	stp	x8, x9, [sp]
Lloh27:
	adrp	x0, l_.str.8@PAGE
Lloh28:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_uc_logmsgx
	mov	w20, #-1
	ldr	x3, [x19, #32]
	cbnz	x3, LBB0_11
LBB0_17:
Lloh29:
	adrp	x0, l_.str.9@PAGE
Lloh30:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_uc_logmsgx
	ldr	x3, [x19, #32]
	mov	w20, #-1
	tbz	x3, #63, LBB0_12
LBB0_18:
	str	x3, [sp]
Lloh31:
	adrp	x0, l_.str.10@PAGE
Lloh32:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_uc_logmsgx
	ldr	x3, [x19, #32]
	mov	w20, #-1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SCM_CREDS,4,2                  ; @SCM_CREDS
	.comm	_uc_cfg,40,3                    ; @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sockcred.sc_uid %lu"

l_.str.1:                               ; @.str.1
	.asciz	"sockcred.sc_euid %lu"

l_.str.2:                               ; @.str.2
	.asciz	"sockcred.sc_gid %lu"

l_.str.3:                               ; @.str.3
	.asciz	"sockcred.sc_egid %lu"

l_.str.4:                               ; @.str.4
	.asciz	"sockcred.sc_ngroups %d"

l_.str.5:                               ; @.str.5
	.asciz	"sockcred.sc_uid %lu != %lu"

l_.str.6:                               ; @.str.6
	.asciz	"sockcred.sc_euid %lu != %lu"

l_.str.7:                               ; @.str.7
	.asciz	"sockcred.sc_gid %lu != %lu"

l_.str.8:                               ; @.str.8
	.asciz	"sockcred.sc_egid %lu != %lu"

l_.str.9:                               ; @.str.9
	.asciz	"sockcred.sc_ngroups == 0"

l_.str.10:                              ; @.str.10
	.asciz	"sockcred.sc_ngroups %d < 0"

l_.str.11:                              ; @.str.11
	.asciz	"sockcred.sc_ngroups %d != %u"

l_.str.12:                              ; @.str.12
	.asciz	"sockcred.sc_groups"

l_.str.13:                              ; @.str.13
	.asciz	"sockcred.sc_ngroups"

.subsections_via_symbols
