	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msghdr_add_fd
_msghdr_add_fd:                         ## @msghdr_add_fd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, -12(%rbp)
	notl	%esi
	shrl	$31, %esi
	movl	%esi, %edi
	callq	_PJDLOG_ASSERT
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_SCM_RIGHTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$4, %edi
	callq	_CMSG_LEN
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_CMSG_DATA
	leaq	-12(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_bcopy
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SCM_RIGHTS,4,2                 ## @SCM_RIGHTS
	.no_dead_strip	_msghdr_add_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msghdr_add_fd
_msghdr_add_fd:                         ; @msghdr_add_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	w1, [sp, #12]
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCM_RIGHTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCM_RIGHTS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	w0, #4
	bl	_CMSG_LEN
	str	w0, [x19]
	mov	x0, x19
	bl	_CMSG_DATA
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_bcopy
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SCM_RIGHTS,4,2                 ; @SCM_RIGHTS
	.no_dead_strip	_msghdr_add_fd
.subsections_via_symbols
