	.file	"extr_intr_hw.c__host1x_intr_init_host_sync.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"host1x_syncpt"
	.text
	.p2align 4
	.type	_host1x_intr_init_host_sync, @function
_host1x_intr_init_host_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	host1x_hw_intr_disable_all_syncpt_intrs@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rsi, r12
	add	ebx, 1
	lea	rdi, [rax+rdx*4]
	call	INIT_WORK@PLT
	mov	rax, QWORD PTR 16[rbp]
	cmp	DWORD PTR [rax], ebx
	ja	.L3
.L2:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	r9, rbp
	lea	r8, .LC0[rip]
	mov	ecx, DWORD PTR IRQF_SHARED[rip]
	mov	edx, DWORD PTR syncpt_thresh_isr[rip]
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	esi, r13d
	mov	rdi, rbp
	xor	r12d, r12d
	call	intr_hw_init@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	_host1x_intr_init_host_sync, .-_host1x_intr_init_host_sync
	.comm	syncpt_thresh_isr,4,4
	.comm	IRQF_SHARED,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_intr_hw.c__host1x_intr_init_host_sync.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"host1x_syncpt\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_host1x_intr_init_host_sync, %function
_host1x_intr_init_host_sync:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r7, r1
	mov	r6, r2
	bl	host1x_hw_intr_disable_all_syncpt_intrs
	ldr	r3, [r5, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
.L3:
	ldr	r0, [r5, #8]
	mov	r1, r6
	add	r0, r0, r4, lsl #2
	bl	INIT_WORK
	ldr	r3, [r5, #12]
	add	r4, r4, #1
	ldr	r3, [r3]
	cmp	r3, r4
	bhi	.L3
.L2:
	ldr	r1, .L13
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	str	r5, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r1, [sp]
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	devm_request_irq
	subs	r4, r0, #0
	blt	.L12
	mov	r4, #0
	mov	r1, r7
	mov	r0, r5
	bl	intr_hw_init
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r0, #1
	bl	WARN_ON
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	IRQF_SHARED
	.word	syncpt_thresh_isr
	.size	_host1x_intr_init_host_sync, .-_host1x_intr_init_host_sync
	.comm	syncpt_thresh_isr,4,4
	.comm	IRQF_SHARED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
