	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t_sockcred_server
_t_sockcred_server:                     ## @t_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_uc_cfg@GOTPCREL(%rip), %r14
	movl	12(%r14), %edi
	callq	_SOCKCREDSIZE
	movl	%eax, %edi
	callq	_CMSG_SPACE
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_dbgmsg
	movl	$1, -44(%rbp)
	movq	_LOCAL_CREDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_uc_sync_send
	movl	$-2, %r13d
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	(%r14), %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:
	cmpl	$2, %ebx
	jne	LBB0_14
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_dbgmsg
	movl	$1, -44(%rbp)
	movq	_LOCAL_CREDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	callq	_uc_sync_send
	testq	%rax, %rax
	js	LBB0_29
LBB0_14:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.16:
	movl	$1, %ebx
	leaq	-72(%rbp), %r13
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_uc_check_msghdr
	testq	%rax, %rax
	js	LBB0_22
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=1
	leal	1(%rbx), %eax
	movq	_uc_cfg@GOTPCREL(%rip), %r14
	cmpl	8(%r14), %ebx
	movl	%eax, %ebx
	jge	LBB0_26
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_uc_dbgmsg
	movq	%r13, %rdi
	leaq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_uc_msghdr_init_server
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_uc_message_recv
	testq	%rax, %rax
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$2, %ebx
	jb	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_uc_check_msghdr
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_CMSG_FIRSTHDR
	movq	%rax, %rdi
	callq	_uc_check_scm_creds_sockcred
	testq	%rax, %rax
	jns	LBB0_25
	jmp	LBB0_27
LBB0_7:
	movl	$-1, %r12d
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_uc_logmsg
	movl	$-2, %r13d
	movl	$-1, %r12d
	jmp	LBB0_29
LBB0_15:
	movl	$-1, %r14d
	movl	$1, %ebx
	jmp	LBB0_28
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_uc_logmsg
	jmp	LBB0_29
LBB0_18:
	movl	$-2, %r14d
	jmp	LBB0_27
LBB0_26:
	movl	$-1, %r14d
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_22:
	movl	$-1, %r14d
LBB0_27:
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	movl	8(%rax), %eax
LBB0_28:
	xorl	%r13d, %r13d
	cmpl	%eax, %ebx
	cmovlel	%r14d, %r13d
	movq	_uc_cfg@GOTPCREL(%rip), %r14
LBB0_29:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	(%r14), %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, %r13d
LBB0_32:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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"

	.no_dead_strip	_t_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_sockcred_server
_t_sockcred_server:                     ; @t_sockcred_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _uc_cfg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _uc_cfg@GOTPAGEOFF]
	ldr	w0, [x23, #12]
	bl	_SOCKCREDSIZE
	bl	_CMSG_SPACE
	mov	x21, x0
	bl	_malloc
	mov	x20, x0
Lloh2:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.1:
	cmp	w22, #1
	b.ne	LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	mov	w8, #1
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _LOCAL_CREDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOCAL_CREDS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_20
LBB0_3:
	bl	_uc_sync_send
	tbnz	x0, #63, LBB0_22
; %bb.4:
	ldr	x8, [x23]
	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_23
LBB0_6:
	cmp	w22, #2
	b.ne	LBB0_9
; %bb.7:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_dbgmsg
	mov	w8, #1
	str	w8, [sp, #12]
Lloh11:
	adrp	x8, _LOCAL_CREDS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOCAL_CREDS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_25
; %bb.8:
	bl	_uc_sync_send
	tbnz	x0, #63, LBB0_23
LBB0_9:
	ldr	w9, [x23, #8]
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.10:
	mov	w25, #1
Lloh14:
	adrp	x22, l_.str.3@PAGE
Lloh15:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #24
	mov	w1, #0
	bl	_uc_check_msghdr
	tbnz	x0, #63, LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w9, w25, #1
	ldr	w8, [x23, #8]
	cmp	w25, w8
	mov	x25, x9
	b.ge	LBB0_27
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	str	x25, [sp]
	mov	x0, x22
	bl	_uc_dbgmsg
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x20
	mov	x3, x21
	bl	_uc_msghdr_init_server
	add	x1, sp, #24
	mov	x0, x19
	bl	_uc_message_recv
	tbnz	x0, #63, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w25, #2
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #24
	mov	w1, #4
	bl	_uc_check_msghdr
	tbnz	x0, #63, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #24
	bl	_CMSG_FIRSTHDR
	bl	_uc_check_scm_creds_sockcred
	tbz	x0, #63, LBB0_13
LBB0_19:
	mov	w8, #-1
	b	LBB0_28
LBB0_20:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_21:
	bl	_uc_logmsg
LBB0_22:
	mov	w21, #-2
	mov	w19, #-1
	b	LBB0_30
LBB0_23:
	mov	w21, #-2
	b	LBB0_30
LBB0_24:
	mov	w8, #-1
	mov	w25, #1
	b	LBB0_29
LBB0_25:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uc_logmsg
	mov	w21, #-2
	b	LBB0_30
LBB0_26:
	mov	w8, #-2
	b	LBB0_28
LBB0_27:
	mov	w8, #-1
	mov	x25, x9
LBB0_28:
	ldr	w9, [x23, #8]
LBB0_29:
	cmp	w25, w9
	csel	w21, wzr, w8, gt
LBB0_30:
	mov	x0, x20
	bl	_free
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.31:
	tbnz	w19, #31, LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_uc_socket_close
	cmp	x0, #0
	mov	w8, #-2
	csel	w21, w8, w21, lt
LBB0_33:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.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"

	.no_dead_strip	_t_sockcred_server
.subsections_via_symbols
