	.file	"extr_b53_srab.c_b53_srab_prepare_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"link_state_p%d"
	.text
	.p2align 4
	.type	b53_srab_prepare_irq, @function
b53_srab_prepare_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	platform_get_drvdata@PLT
	mov	rsi, QWORD PTR B53_SRAB_INTR[rip]
	mov	edi, -1
	mov	r14, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rax
	add	rsi, QWORD PTR 8[r14]
	call	writel@PLT
	mov	eax, DWORD PTR B53_N_PORTS[rip]
	test	eax, eax
	je	.L2
	xor	ebx, ebx
	lea	r15, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	ebx, 6
	je	.L3
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	mov	edx, ebx
	mov	rsi, r15
	mov	rbp, QWORD PTR [r14]
	call	kasprintf@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	eax, ebx
	mov	rdi, r13
	mov	rsi, r12
	sal	rax, 4
	add	rbp, rax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 0[rbp], ebx
	mov	QWORD PTR 8[rbp], rax
	call	platform_get_irq_byname@PLT
	mov	rdi, r12
	mov	DWORD PTR 4[rbp], eax
	call	kfree@PLT
.L3:
	add	ebx, 1
	cmp	DWORD PTR B53_N_PORTS[rip], ebx
	ja	.L5
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	mov	esi, 1
	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	b53_srab_intr_set@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	b53_srab_prepare_irq, .-b53_srab_prepare_irq
	.comm	GFP_KERNEL,4,4
	.comm	B53_SRAB_INTR,8,8
	.comm	B53_N_PORTS,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_b53_srab.c_b53_srab_prepare_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"link_state_p%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_srab_prepare_irq, %function
b53_srab_prepare_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r8, r0
	bl	platform_get_drvdata
	ldr	r3, .L15
	ldr	r7, [r0]
	ldr	r3, [r3]
	ldr	r1, [r7, #4]
	ldr	r5, .L15+4
	str	r0, [sp, #4]
	add	r1, r1, r3
	mvn	r0, #0
	bl	writel
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
	ldr	r9, .L15+8
.L5:
	cmp	r4, #6
	beq	.L3
	ldr	r3, .L15+12
	mov	r2, r4
	mov	r1, r9
	ldr	r0, [r3]
	ldr	fp, [r7]
	bl	kasprintf
	add	r2, r4, r4, lsl #1
	subs	r6, r0, #0
	add	r10, fp, r2, lsl #2
	beq	.L1
	ldr	r3, [sp, #4]
	str	r4, [fp, r2, lsl #2]
	mov	r1, r6
	mov	r0, r8
	str	r3, [r10, #8]
	bl	platform_get_irq_byname
	mov	r2, r0
	mov	r0, r6
	str	r2, [r10, #4]
	bl	kfree
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L5
.L2:
	mov	r0, r7
	mov	r1, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	b53_srab_intr_set
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	B53_SRAB_INTR
	.word	B53_N_PORTS
	.word	.LC0
	.word	GFP_KERNEL
	.size	b53_srab_prepare_irq, .-b53_srab_prepare_irq
	.comm	GFP_KERNEL,4,4
	.comm	B53_SRAB_INTR,4,4
	.comm	B53_N_PORTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
