	.file	"extr_uipc_domain.c_attach_proto.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	attach_proto, @function
attach_proto:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	domain_proto_mtx_lock_assert_held@PLT
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	test	DWORD PTR PR_ATTACHED[rip], eax
	sete	dil
	call	VERIFY@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	sete	dil
	call	VERIFY@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], 0
	sete	dil
	call	VERIFY@PLT
	mov	edx, DWORD PTR pr_entry[rip]
	mov	rdi, rbp
	mov	rsi, rbx
	call	TAILQ_INSERT_TAIL@PLT
	mov	eax, DWORD PTR PR_ATTACHED[rip]
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR 16[rbx], rbp
	or	DWORD PTR [rbx], eax
	mov	QWORD PTR 8[rbx], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pru_sanitize@PLT
	.cfi_endproc
.LFE0:
	.size	attach_proto, .-attach_proto
	.comm	pr_entry,4,4
	.comm	PR_ATTACHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_uipc_domain.c_attach_proto.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	attach_proto, %function
attach_proto:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L4
	mov	r5, r1
	bl	domain_proto_mtx_lock_assert_held
	ldr	r2, [r4]
	ldr	r3, [r6]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	VERIFY
	ldr	r0, [r4, #12]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r0, [r4, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L4+4
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, r5
	bl	TAILQ_INSERT_TAIL
	ldr	r2, [r6]
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	orr	r3, r3, r2
	str	r5, [r4, #12]
	str	r4, [r4, #8]
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	pru_sanitize
.L5:
	.align	2
.L4:
	.word	PR_ATTACHED
	.word	pr_entry
	.size	attach_proto, .-attach_proto
	.comm	pr_entry,4,4
	.comm	PR_ATTACHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
