	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___scm_send                     ## -- Begin function __scm_send
	.p2align	4, 0x90
___scm_send:                            ## @__scm_send
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_CMSG_FIRSTHDR
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %rbx
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, 8(%r14)
	movq	_EINVAL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_CMSG_NXTHDR
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_CMSG_OK
	testl	%eax, %eax
	je	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movq	_PF_UNIX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_scm_fp_copy
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rbx), %r13d
	movl	$4, %edi
	callq	_CMSG_LEN
	cmpl	%eax, %r13d
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_scm_check_creds
	testl	%eax, %eax
	jne	LBB0_31
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_pid_vnr
	movl	24(%r14), %edi
	cmpl	%edi, %eax
	jne	LBB0_16
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r14), %edi
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_find_get_pid
	testq	%rax, %rax
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	32(%r14), %rdi
	callq	_put_pid
	movq	%r13, 32(%r14)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	testq	%rax, %rax
	movq	_EINVAL@GOTPCREL(%rip), %r13
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %ecx
	cmpl	20(%r14), %ecx
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	je	LBB0_3
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_prepare_creds
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	16(%r14), %xmm0                 ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, (%rax)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_put_cred
	jmp	LBB0_2
LBB0_24:
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.25:
	cmpl	$0, (%rdi)
	jne	LBB0_29
## %bb.26:
	callq	_kfree
	movq	$0, (%r14)
	jmp	LBB0_29
LBB0_27:
	negl	%r15d
LBB0_28:
	movq	%r14, %rdi
	callq	_scm_destroy
LBB0_29:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	%eax, %r15d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOL_SOCKET,8,3                 ## @SOL_SOCKET
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___scm_send                     ; -- Begin function __scm_send
	.p2align	2
___scm_send:                            ; @__scm_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_CMSG_FIRSTHDR
	cbz	x0, LBB0_24
; %bb.1:
	mov	x22, x0
	add	x23, x19, #16
Lloh0:
	adrp	x25, _EINVAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SOL_SOCKET@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SOL_SOCKET@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PF_UNIX@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PF_UNIX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x24, [x19, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_CMSG_NXTHDR
	mov	x22, x0
	cbz	x0, LBB0_24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x25]
	mov	x0, x20
	mov	x1, x22
	bl	_CMSG_OK
	cbz	w0, LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_27
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_scm_fp_copy
	tbz	w0, #31, LBB0_3
	b	LBB0_31
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w28, [x22, #12]
	mov	w0, #4
	bl	_CMSG_LEN
	cmp	w28, w0
	b.ne	LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_CMSG_DATA
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_memcpy
	mov	x0, x23
	bl	_scm_check_creds
	cbnz	w0, LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_pid_vnr
	mov	x8, x0
	ldr	w0, [x19, #24]
	cmp	w8, w0
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_19
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #24]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _ESRCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh8:
	ldr	w28, [x8]
	bl	_find_get_pid
	cbz	x0, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	x0, [x19, #32]
	bl	_put_pid
	str	x24, [x19, #32]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #8]
	ldr	w10, [x19, #20]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
	bl	_prepare_creds
	cbz	x0, LBB0_32
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	d0, [x19, #16]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x0]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_put_cred
	b	LBB0_2
LBB0_24:
	ldr	x0, [x19]
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w8, [x0]
	cbz	w8, LBB0_29
LBB0_26:
	mov	w24, #0
	b	LBB0_30
LBB0_27:
	neg	w24, w24
LBB0_28:
	mov	x0, x19
	bl	_scm_destroy
	b	LBB0_30
LBB0_29:
	bl	_kfree
	mov	w24, #0
	str	xzr, [x19]
LBB0_30:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	x24, x0
	b	LBB0_28
LBB0_32:
	neg	w24, w28
	b	LBB0_28
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOL_SOCKET,8,3                 ; @SOL_SOCKET
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
