	.file	"extr_xpc_uv.c_xpc_create_gru_mq_uv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xpc_create_gru_mq_uv() failed to kmalloc() a xpc_gru_mq_uv structure\n"
	.align 8
.LC1:
	.string	"xpc_create_gru_mq_uv() failed to kmalloc() a gru_message_queue_desc structure\n"
	.align 8
.LC2:
	.string	"xpc_create_gru_mq_uv() failed to alloc %d bytes of memory on nid=%d for GRU mq\n"
	.align 8
.LC3:
	.string	"request_irq(irq=%d) returned error=%d\n"
	.align 8
.LC4:
	.string	"gru_create_message_queue() returned error=%d\n"
	.text
	.p2align 4
	.type	xpc_create_gru_mq_uv, @function
xpc_create_gru_mq_uv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	mov	edi, 40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kmalloc@PLT
	test	rax, rax
	je	.L17
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	rbp, rax
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L18
	mov	edi, r12d
	call	get_order@PLT
	mov	edi, r13d
	movsx	rcx, eax
	mov	eax, 1
	mov	r14, rcx
	add	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	QWORD PTR 0[rbp], rcx
	sal	rax, cl
	mov	QWORD PTR 8[rsp], rax
	call	uv_cpu_to_blade_id@PLT
	mov	edi, r13d
	mov	DWORD PTR 32[rbp], eax
	call	cpu_to_node@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edx, r14d
	or	esi, DWORD PTR __GFP_ZERO[rip]
	mov	edi, eax
	or	esi, DWORD PTR __GFP_THISNODE[rip]
	mov	r12d, eax
	call	__alloc_pages_node@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L19
	call	page_address@PLT
	mov	rdi, rbp
	mov	QWORD PTR 16[rbp], rax
	call	xpc_gru_mq_watchlist_alloc_uv@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L8:
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, r14d
	call	free_pages@PLT
.L7:
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, rbp
	call	xpc_get_gru_mq_irq_uv@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L21
.L9:
	endbr64
	mov	rdi, rbp
	call	xpc_gru_mq_watchlist_free_uv@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 24[rbp]
	xor	r8d, r8d
	mov	rcx, r15
	xor	edx, edx
	mov	esi, ebx
	call	request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	edi, r13d
	call	uv_cpu_to_pnode@PLT
	mov	edi, eax
	call	UV_PNODE_TO_NASID@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	r9d, DWORD PTR 28[rbp]
	mov	r8d, DWORD PTR 32[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR 8[rsp]
	call	gru_create_message_queue@PLT
	test	eax, eax
	jne	.L23
	mov	rdi, QWORD PTR 16[rbp]
	call	xp_pa@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, eax
	call	xp_expand_memprotect@PLT
	cmp	eax, DWORD PTR xpSuccess[rip]
	je	.L1
	mov	r12d, DWORD PTR EACCES[rip]
	neg	r12d
.L13:
	mov	edi, DWORD PTR 24[rbp]
	xor	esi, esi
	call	free_irq@PLT
.L11:
	mov	rdi, rbp
	call	xpc_release_gru_mq_irq_uv@PLT
	mov	rdi, rbp
	call	xpc_gru_mq_watchlist_free_uv@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR xpc_part[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR xpc_part[rip]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR xpc_part[rip]
	mov	ecx, r12d
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	ecx, eax
	mov	edx, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR xpc_part[rip]
	xor	eax, eax
	neg	ecx
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR xpc_part[rip]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	xpc_create_gru_mq_uv, .-xpc_create_gru_mq_uv
	.comm	xpc_part,4,4
	.comm	xpSuccess,4,4
	.comm	__GFP_ZERO,4,4
	.comm	__GFP_THISNODE,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,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_uv.c_xpc_create_gru_mq_uv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xpc_create_gru_mq_uv() failed to kmalloc() a xpc_gr"
	.ascii	"u_mq_uv structure\012\000"
	.align	2
.LC1:
	.ascii	"xpc_create_gru_mq_uv() failed to kmalloc() a gru_me"
	.ascii	"ssage_queue_desc structure\012\000"
	.align	2
.LC2:
	.ascii	"xpc_create_gru_mq_uv() failed to alloc %d bytes of "
	.ascii	"memory on nid=%d for GRU mq\012\000"
	.align	2
.LC3:
	.ascii	"request_irq(irq=%d) returned error=%d\012\000"
	.align	2
.LC4:
	.ascii	"gru_create_message_queue() returned error=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xpc_create_gru_mq_uv, %function
xpc_create_gru_mq_uv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L24
	mov	r7, r0
	mov	r6, r1
	mov	r0, #24
	ldr	r1, [r5]
	sub	sp, sp, #8
	mov	r8, r2
	mov	r9, r3
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L17
	mov	r0, #4
	ldr	r1, [r5]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L18
	mov	r0, r7
	bl	get_order
	mov	r7, r0
	mov	r10, #1
	ldr	r3, .L24+4
	mov	r0, r6
	ldr	r3, [r3]
	add	r3, r7, r3
	str	r3, [r4]
	lsl	r10, r10, r3
	bl	uv_cpu_to_blade_id
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #20]
	bl	cpu_to_node
	ldr	r3, .L24+8
	ldr	r1, .L24+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r2, r2, r3
	orr	r1, r2, r1
	mov	r2, r7
	mov	r5, r0
	bl	__alloc_pages_node
	cmp	r0, #0
	beq	.L19
	bl	page_address
	str	r0, [r4, #8]
	mov	r0, r4
	bl	xpc_gru_mq_watchlist_alloc_uv
	subs	r5, r0, #0
	beq	.L20
.L8:
	mov	r1, r7
	ldr	r0, [r4, #8]
	bl	free_pages
.L7:
	ldr	r0, [r4, #4]
	bl	kfree
.L5:
.L3:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ERR_PTR
.L20:
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	xpc_get_gru_mq_irq_uv
	subs	r5, r0, #0
	beq	.L21
.L9:
	mov	r0, r4
	bl	xpc_gru_mq_watchlist_free_uv
	b	.L8
.L21:
	mov	r2, r5
	ldr	r0, [r4, #12]
	mov	r3, r8
	str	r5, [sp]
	mov	r1, r9
	bl	request_irq
	subs	r5, r0, #0
	bne	.L22
	mov	r0, r6
	bl	uv_cpu_to_pnode
	bl	UV_PNODE_TO_NASID
	ldr	r2, [r4, #16]
	mov	r3, r0
	ldmib	r4, {r0, r1}
	str	r2, [sp, #4]
	ldr	r2, [r4, #20]
	str	r2, [sp]
	mov	r2, r10
	bl	gru_create_message_queue
	subs	r2, r0, #0
	bne	.L23
	ldr	r0, [r4, #8]
	bl	xp_pa
	mov	r1, r10
	bl	xp_expand_memprotect
	ldr	r3, .L24+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L1
	ldr	r3, .L24+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L13:
	mov	r1, #0
	ldr	r0, [r4, #12]
	bl	free_irq
.L11:
	mov	r0, r4
	bl	xpc_release_gru_mq_irq_uv
	mov	r0, r4
	bl	xpc_gru_mq_watchlist_free_uv
	b	.L8
.L17:
	ldr	r3, .L24+24
	ldr	r1, .L24+28
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L24+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ERR_PTR
.L18:
	ldr	r3, .L24+24
	ldr	r1, .L24+36
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L24+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L5
.L19:
	ldr	r1, .L24+24
	mov	r3, r5
	ldr	r0, [r1]
	mov	r2, r10
	ldr	r1, .L24+40
	bl	dev_err
	ldr	r3, .L24+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L7
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r2, .L24+24
	ldr	r1, .L24+44
	ldr	r0, [r2]
	rsb	r3, r5, #0
	ldr	r2, [r4, #12]
	bl	dev_err
	b	.L11
.L23:
	ldr	r3, .L24+24
	ldr	r1, .L24+48
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L24+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L13
.L25:
	.align	2
.L24:
	.word	GFP_KERNEL
	.word	PAGE_SHIFT
	.word	__GFP_ZERO
	.word	__GFP_THISNODE
	.word	xpSuccess
	.word	EACCES
	.word	xpc_part
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	EINVAL
	.size	xpc_create_gru_mq_uv, .-xpc_create_gru_mq_uv
	.comm	xpc_part,4,4
	.comm	xpSuccess,4,4
	.comm	__GFP_ZERO,4,4
	.comm	__GFP_THISNODE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
