	.file	"extr_xpc_channel.c_xpc_process_connect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"channel %d to partition %d connected\n"
	.text
	.p2align 4
	.type	xpc_process_connect, @function
xpc_process_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 12[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_is_locked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	DBUG_ON@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR XPC_C_OPENREQUEST[rip], eax
	je	.L1
	test	DWORD PTR XPC_C_ROPENREQUEST[rip], eax
	jne	.L21
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	edi, edi
	test	DWORD PTR XPC_C_CONNECTING[rip], eax
	sete	dil
	call	DBUG_ON@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR XPC_C_SETUP[rip], eax
	je	.L22
.L5:
	mov	edx, DWORD PTR XPC_C_OPENREPLY[rip]
	test	edx, eax
	jne	.L8
	or	eax, edx
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	[QWORD PTR xpc_arch_ops[rip+16]]
	mov	eax, DWORD PTR [rbx]
.L8:
	test	DWORD PTR XPC_C_ROPENREPLY[rip], eax
	je	.L1
	mov	edx, DWORD PTR XPC_C_OPENCOMPLETE[rip]
	test	edx, eax
	jne	.L9
	or	edx, DWORD PTR XPC_C_CONNECTED[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	or	eax, edx
	mov	DWORD PTR [rbx], eax
	call	[QWORD PTR xpc_arch_ops[rip+8]]
	mov	eax, DWORD PTR [rbx]
.L9:
	test	DWORD PTR XPC_C_ROPENCOMPLETE[rip], eax
	je	.L1
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR xpc_chan[rip]
	call	dev_info@PLT
	mov	eax, DWORD PTR XPC_C_CONNECTED[rip]
	or	eax, DWORD PTR XPC_C_SETUP[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbx
	call	[QWORD PTR xpc_arch_ops[rip]]
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	mov	r13d, eax
	call	spin_lock_irqsave@PLT
	cmp	r13d, DWORD PTR xpSuccess[rip]
	je	.L6
	mov	rdx, rbp
	mov	esi, r13d
	mov	rdi, rbx
	call	XPC_DISCONNECT_CHANNEL@PLT
	mov	eax, DWORD PTR [rbx]
.L7:
	test	DWORD PTR XPC_C_DISCONNECTING[rip], eax
	je	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR [rbx]
	or	eax, DWORD PTR XPC_C_SETUP[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	xpc_process_connect, .-xpc_process_connect
	.comm	xpc_chan,4,4
	.comm	xpc_arch_ops,24,16
	.comm	xpSuccess,4,4
	.comm	XPC_C_SETUP,4,4
	.comm	XPC_C_ROPENREQUEST,4,4
	.comm	XPC_C_ROPENREPLY,4,4
	.comm	XPC_C_ROPENCOMPLETE,4,4
	.comm	XPC_C_OPENREQUEST,4,4
	.comm	XPC_C_OPENREPLY,4,4
	.comm	XPC_C_OPENCOMPLETE,4,4
	.comm	XPC_C_DISCONNECTING,4,4
	.comm	XPC_C_CONNECTING,4,4
	.comm	XPC_C_CONNECTED,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_xpc_channel.c_xpc_process_connect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"channel %d to partition %d connected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xpc_process_connect, %function
xpc_process_connect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r5, r0, #12
	mov	r4, r0
	mov	r0, r5
	mov	r6, r1
	bl	spin_is_locked
	clz	r0, r0
	lsr	r0, r0, #5
	bl	DBUG_ON
	ldr	r2, .L22
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L22+4
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L22+8
	ldr	r7, .L22+12
	ldr	r2, [r2]
	tst	r3, r2
	moveq	r0, #1
	movne	r0, #0
	bl	DBUG_ON
	ldr	r2, [r7]
	ldr	r3, [r4]
	tst	r3, r2
	beq	.L21
.L5:
	ldr	r2, .L22+16
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L8
	ldr	r1, .L22+20
	orr	r3, r2, r3
	str	r3, [r4]
	mov	r0, r4
	ldr	r3, [r1, #8]
	mov	r1, r6
	blx	r3
	ldr	r3, [r4]
.L8:
	ldr	r2, .L22+24
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L22+28
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L9
	ldr	r0, .L22+32
	mov	r1, r6
	ldr	ip, [r0]
	ldr	r0, .L22+20
	orr	r2, r2, ip
	orr	r3, r2, r3
	str	r3, [r4]
	ldr	r3, [r0, #4]
	mov	r0, r4
	blx	r3
	ldr	r3, [r4]
.L9:
	ldr	r2, .L22+36
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L22+40
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	ldr	r1, .L22+44
	ldr	r2, [r4, #8]
	bl	dev_info
	ldr	r3, .L22+32
	ldr	r2, [r7]
	ldr	r3, [r3]
	orr	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r1, [r6]
	mov	r0, r5
	bl	spin_unlock_irqrestore
	ldr	r3, .L22+20
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	mov	r8, r0
	ldr	r1, [r6]
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, .L22+48
	ldr	r3, [r3]
	cmp	r8, r3
	beq	.L6
	mov	r1, r8
	mov	r2, r6
	mov	r0, r4
	bl	XPC_DISCONNECT_CHANNEL
	ldr	r3, [r4]
.L7:
	ldr	r2, .L22+52
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r2, [r4]
	ldr	r3, [r7]
	orr	r3, r2, r3
	str	r3, [r4]
	b	.L7
.L23:
	.align	2
.L22:
	.word	XPC_C_OPENREQUEST
	.word	XPC_C_ROPENREQUEST
	.word	XPC_C_CONNECTING
	.word	XPC_C_SETUP
	.word	XPC_C_OPENREPLY
	.word	xpc_arch_ops
	.word	XPC_C_ROPENREPLY
	.word	XPC_C_OPENCOMPLETE
	.word	XPC_C_CONNECTED
	.word	XPC_C_ROPENCOMPLETE
	.word	xpc_chan
	.word	.LC0
	.word	xpSuccess
	.word	XPC_C_DISCONNECTING
	.size	xpc_process_connect, .-xpc_process_connect
	.comm	xpc_chan,4,4
	.comm	xpc_arch_ops,12,4
	.comm	xpSuccess,4,4
	.comm	XPC_C_SETUP,4,4
	.comm	XPC_C_ROPENREQUEST,4,4
	.comm	XPC_C_ROPENREPLY,4,4
	.comm	XPC_C_ROPENCOMPLETE,4,4
	.comm	XPC_C_OPENREQUEST,4,4
	.comm	XPC_C_OPENREPLY,4,4
	.comm	XPC_C_OPENCOMPLETE,4,4
	.comm	XPC_C_DISCONNECTING,4,4
	.comm	XPC_C_CONNECTING,4,4
	.comm	XPC_C_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
