	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_package_send
_fd_package_send:                       ## @fd_package_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %ebx
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_PJDLOG_ASSERT
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movq	$0, -88(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$8, -104(%rbp)
	leaq	-104(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -80(%rbp)
	movl	$4, %edi
	callq	_CMSG_SPACE
	imulq	%r12, %rax
	movq	%rax, -72(%rbp)
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_calloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	callq	_CMSG_FIRSTHDR
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %esi
	movq	%rbx, %rdi
	callq	_msghdr_add_fd
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_CMSG_NXTHDR
	cmpq	%r12, %r14
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_9:
	leaq	-80(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_msg_send
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	sete	%bl
	negl	%ebx
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_6:
	movl	$-1, %ebx
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	-64(%rbp), %rdi
	callq	_free
	movl	%r15d, (%r14)
LBB0_11:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_fd_package_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_package_send
_fd_package_send:                       ; @fd_package_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	cmp	x21, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	x20, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	add	x0, sp, #32
	mov	w1, #32
	bl	_bzero
	str	xzr, [sp, #8]
	add	x8, sp, #8
	str	x8, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #16]
	add	x8, sp, #16
	str	x8, [sp, #56]
	mov	w8, #1
	str	w8, [sp, #32]
	mov	w0, #4
	bl	_CMSG_SPACE
	mul	x1, x0, x20
	str	x1, [sp, #40]
	mov	w0, #1
	bl	_calloc
	str	x0, [sp, #48]
	cbz	x0, LBB0_8
; %bb.1:
	add	x0, sp, #32
	bl	_CMSG_FIRSTHDR
	cbz	x20, LBB0_7
; %bb.2:
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x23, lsl #2]
	mov	x0, x22
	bl	_msghdr_add_fd
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	add	x0, sp, #32
	mov	x1, x22
	bl	_CMSG_NXTHDR
	cmp	x23, x20
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	cbnz	x0, LBB0_4
LBB0_7:
	add	x1, sp, #32
	mov	x0, x19
	bl	_msg_send
	cmn	w0, #1
	csetm	w19, eq
	b	LBB0_10
LBB0_8:
	mov	w19, #-1
	b	LBB0_11
LBB0_9:
	mov	w19, #-1
LBB0_10:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	ldr	x0, [sp, #48]
	bl	_free
	str	w21, [x20]
LBB0_11:
	mov	x0, x19
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_fd_package_send
.subsections_via_symbols
