	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t_cmsgcred_server
_t_cmsgcred_server:                     ## @t_cmsgcred_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_uc_sync_send
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movl	$4, %edi
	callq	_CMSG_SPACE
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	callq	_uc_socket_accept
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
LBB0_4:
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.5:
	movl	$1, %ebx
	leaq	-64(%rbp), %r13
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_uc_dbgmsg
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_uc_msghdr_init_server
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_uc_message_recv
	testq	%rax, %rax
	js	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_uc_check_msghdr
	testq	%rax, %rax
	js	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_CMSG_FIRSTHDR
	movq	%rax, %rdi
	callq	_uc_check_scm_creds_cmsgcred
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rbx), %eax
	movq	_uc_cfg@GOTPCREL(%rip), %rcx
	cmpl	8(%rcx), %ebx
	movl	%eax, %ebx
	jl	LBB0_6
	jmp	LBB0_17
LBB0_10:
	movl	$-2, %ebx
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_uc_logmsg
	movl	$-2, %ebx
	movl	$-1, %r15d
	jmp	LBB0_19
LBB0_12:
	movl	$-1, %r14d
	movl	$1, %eax
	jmp	LBB0_18
LBB0_13:
	movl	$-2, %ebx
	jmp	LBB0_19
LBB0_14:
	movl	$-2, %r14d
LBB0_16:
	movl	%ebx, %eax
LBB0_17:
	movq	_uc_cfg@GOTPCREL(%rip), %rcx
	movl	8(%rcx), %ecx
LBB0_18:
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	cmovlel	%r14d, %ebx
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	_uc_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	testl	%r15d, %r15d
	js	LBB0_22
## %bb.21:
	movl	%r15d, %edi
	callq	_uc_socket_close
	testq	%rax, %rax
	movl	$-2, %eax
	cmovsl	%eax, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

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

	.no_dead_strip	_t_cmsgcred_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_server
_t_cmsgcred_server:                     ; @t_cmsgcred_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	bl	_uc_sync_send
	tbnz	x0, #63, LBB0_11
; %bb.1:
	mov	w0, #4
	bl	_CMSG_SPACE
	mov	x21, x0
	bl	_malloc
	mov	x20, x0
Lloh0:
	adrp	x24, _uc_cfg@GOTPAGE
Lloh1:
	ldr	x24, [x24, _uc_cfg@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SOCK_STREAM@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_uc_socket_accept
	mov	x19, x0
	tbnz	w0, #31, LBB0_15
LBB0_4:
	ldr	w9, [x24, #8]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.5:
	mov	w22, #1
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_uc_dbgmsg
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x20
	mov	x3, x21
	bl	_uc_msghdr_init_server
	add	x1, sp, #8
	mov	x0, x19
	bl	_uc_message_recv
	tbnz	x0, #63, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	w1, #4
	bl	_uc_check_msghdr
	tbnz	x0, #63, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_CMSG_FIRSTHDR
	bl	_uc_check_scm_creds_cmsgcred
	tbnz	x0, #63, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w22, #1
	ldr	w8, [x24, #8]
	cmp	w22, w8
	mov	x22, x9
	b.lt	LBB0_6
; %bb.10:
	mov	w8, #-1
	mov	x22, x9
	b	LBB0_17
LBB0_11:
	mov	w21, #-2
	b	LBB0_22
LBB0_12:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uc_logmsg
	mov	w21, #-2
	mov	w19, #-1
	b	LBB0_19
LBB0_13:
	mov	w8, #-1
	mov	w22, #1
	b	LBB0_18
LBB0_14:
	mov	w8, #-1
	b	LBB0_17
LBB0_15:
	mov	w21, #-2
	b	LBB0_19
LBB0_16:
	mov	w8, #-2
LBB0_17:
	ldr	w9, [x24, #8]
LBB0_18:
	cmp	w22, w9
	csel	w21, wzr, w8, gt
LBB0_19:
	mov	x0, x20
	bl	_free
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	tbnz	w19, #31, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_uc_socket_close
	cmp	x0, #0
	mov	w8, #-2
	csel	w21, w8, w21, lt
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

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

	.no_dead_strip	_t_cmsgcred_server
.subsections_via_symbols
