	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t_cmsgcred_sockcred_server
_t_cmsgcred_sockcred_server:            ## @t_cmsgcred_sockcred_server
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	movl	12(%rax), %edi
	callq	_SOCKCREDSIZE
	movl	%eax, %edi
	callq	_CMSG_SPACE
	movq	%rax, %r13
	movl	$4, %edi
	callq	_CMSG_SPACE
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_malloc
	testq	%r15, %r15
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_dbgmsg
	movl	$1, -52(%rbp)
	movq	_LOCAL_CREDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	callq	_uc_sync_send
	movl	$-2, %r14d
	testq	%rax, %rax
	movq	_uc_cfg@GOTPCREL(%rip), %rbx
	js	LBB0_7
## %bb.8:
	movq	(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	callq	_uc_socket_accept
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_29
LBB0_10:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.12:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	$1, %ecx
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	1(%r14), %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_uc_dbgmsg
	leaq	-96(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rdi, %rbx
	callq	_uc_msghdr_init_server
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_uc_message_recv
	testq	%rax, %rax
	js	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_uc_check_msghdr
	testq	%rax, %rax
	js	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_CMSG_FIRSTHDR
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_uc_cfg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	callq	_uc_check_scm_creds_sockcred
	testq	%rax, %rax
	jns	LBB0_23
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	callq	_uc_check_scm_creds_cmsgcred
	testq	%rax, %rax
	js	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movl	%r15d, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	cmpl	8(%rax), %r15d
	jl	LBB0_13
## %bb.24:
	incl	%r15d
	movl	$-1, %eax
	movl	%r15d, %edx
	movq	_uc_cfg@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_26
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	callq	_uc_logmsg
	movl	$-2, %r14d
	movl	$-1, %r12d
LBB0_28:
	movq	_uc_cfg@GOTPCREL(%rip), %rbx
LBB0_29:
	movq	%r15, %rdi
	callq	_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.30:
	testl	%r12d, %r12d
	js	LBB0_32
## %bb.31:
	movl	%r12d, %edi
	callq	_uc_socket_close
	testq	%rax, %rax
	movl	$-2, %eax
	cmovsl	%eax, %r14d
LBB0_32:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$-1, %r12d
	jmp	LBB0_29
LBB0_11:
	movl	$-1, %eax
	movl	$1, %edx
	jmp	LBB0_27
LBB0_14:
	movl	$-2, %eax
	jmp	LBB0_15
LBB0_25:
	incl	%r14d
	movl	$-1, %eax
	movl	%r14d, %edx
	movq	_uc_cfg@GOTPCREL(%rip), %r15
	jmp	LBB0_26
LBB0_21:
	movl	$-1, %eax
LBB0_15:
	movq	_uc_cfg@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_26:
	movl	8(%r15), %ecx
LBB0_27:
	xorl	%r14d, %r14d
	cmpl	%ecx, %edx
	cmovlel	%eax, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_uc_cfg,16,3                    ## @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

L_.str.1:                               ## @.str.1
	.asciz	"setting LOCAL_CREDS"

	.comm	_LOCAL_CREDS,4,2                ## @LOCAL_CREDS
L_.str.2:                               ## @.str.2
	.asciz	"setsockopt(LOCAL_CREDS)"

	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
L_.str.3:                               ## @.str.3
	.asciz	"message #%u"

	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.no_dead_strip	_t_cmsgcred_sockcred_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t_cmsgcred_sockcred_server
_t_cmsgcred_sockcred_server:            ; @t_cmsgcred_sockcred_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x26, _uc_cfg@GOTPAGE
Lloh1:
	ldr	x26, [x26, _uc_cfg@GOTPAGEOFF]
	ldr	w0, [x26, #12]
	bl	_SOCKCREDSIZE
	bl	_CMSG_SPACE
	mov	x23, x0
	mov	w0, #4
	bl	_CMSG_SPACE
	mov	x22, x0
	mov	x0, x23
	bl	_malloc
	mov	x20, x0
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
Lloh2:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	mov	w8, #1
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _LOCAL_CREDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOCAL_CREDS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_15
; %bb.3:
	bl	_uc_sync_send
	tbnz	x0, #63, LBB0_17
; %bb.4:
	ldr	x8, [x26]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_uc_socket_accept
	mov	x19, x0
	tbnz	w0, #31, LBB0_25
LBB0_6:
	ldr	w9, [x26, #8]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.7:
	mov	w27, #0
	mov	w28, #1
	mov	x25, x20
Lloh11:
	adrp	x24, l_.str.3@PAGE
Lloh12:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	_uc_check_scm_creds_sockcred
	tbnz	x0, #63, LBB0_24
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w28, w28, #1
	ldr	w8, [x26, #8]
	add	w27, w27, #1
	mov	x25, x21
	mov	x23, x22
	cmp	w27, w8
	b.ge	LBB0_23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w27, #1
	str	x8, [sp]
	mov	x0, x24
	bl	_uc_dbgmsg
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x25
	mov	x3, x23
	bl	_uc_msghdr_init_server
	add	x1, sp, #24
	mov	x0, x19
	bl	_uc_message_recv
	tbnz	x0, #63, LBB0_26
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #24
	mov	w1, #4
	bl	_uc_check_msghdr
	tbnz	x0, #63, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #24
	bl	_CMSG_FIRSTHDR
	cbz	w27, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26]
Lloh13:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_uc_check_scm_creds_cmsgcred
	tbz	x0, #63, LBB0_9
	b	LBB0_24
LBB0_15:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_16:
	bl	_uc_logmsg
LBB0_17:
	mov	w22, #-2
	mov	w19, #-1
LBB0_18:
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	ldr	x8, [x26]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
	tbnz	w19, #31, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_uc_socket_close
	cmp	x0, #0
	mov	w8, #-2
	csel	w22, w8, w22, lt
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	mov	w8, #-1
	mov	w28, #1
	b	LBB0_28
LBB0_23:
	add	w28, w27, #1
LBB0_24:
	mov	w8, #-1
	b	LBB0_27
LBB0_25:
	mov	w22, #-2
	b	LBB0_18
LBB0_26:
	mov	w8, #-2
LBB0_27:
Lloh18:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh19:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w9, [x26, #8]
LBB0_28:
	cmp	w28, w9
	csel	w22, wzr, w8, gt
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_uc_cfg,16,3                    ; @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

l_.str.1:                               ; @.str.1
	.asciz	"setting LOCAL_CREDS"

	.comm	_LOCAL_CREDS,4,2                ; @LOCAL_CREDS
l_.str.2:                               ; @.str.2
	.asciz	"setsockopt(LOCAL_CREDS)"

	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
l_.str.3:                               ; @.str.3
	.asciz	"message #%u"

	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.no_dead_strip	_t_cmsgcred_sockcred_server
.subsections_via_symbols
