	.file	"extr_qcom_q6v5_mss.c_q6v5proc_halt_axi_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"port failed halt\n"
	.text
	.p2align 4
	.type	q6v5proc_halt_axi_port, @function
q6v5proc_halt_axi_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, rbp
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR AXI_IDLE_REG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	add	rsi, rdx
	mov	rdx, r12
	call	regmap_read@PLT
	test	eax, eax
	jne	.L2
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	jne	.L1
.L2:
	mov	rsi, QWORD PTR AXI_HALTREQ_REG[rip]
	mov	edx, 1
	mov	rdi, rbp
	add	rsi, rbx
	call	regmap_write@PLT
	mov	edi, DWORD PTR HALT_ACK_TIMEOUT_MS[rip]
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	r13, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r13
	call	time_after@PLT
	test	rax, rax
	jne	.L4
	mov	edi, 1
	call	msleep@PLT
.L5:
	mov	rsi, QWORD PTR AXI_HALTACK_REG[rip]
	mov	rdx, r12
	mov	rdi, rbp
	add	rsi, rbx
	call	regmap_read@PLT
	or	eax, DWORD PTR 4[rsp]
	je	.L11
.L4:
	mov	rsi, QWORD PTR AXI_IDLE_REG[rip]
	mov	rdx, r12
	mov	rdi, rbp
	add	rsi, rbx
	call	regmap_read@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L6
.L7:
	add	rbx, QWORD PTR AXI_HALTREQ_REG[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	rsi, rbx
	call	regmap_write@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L7
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	q6v5proc_halt_axi_port, .-q6v5proc_halt_axi_port
	.comm	jiffies,8,8
	.comm	HALT_ACK_TIMEOUT_MS,4,4
	.comm	AXI_IDLE_REG,8,8
	.comm	AXI_HALTREQ_REG,8,8
	.comm	AXI_HALTACK_REG,8,8
	.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_qcom_q6v5_mss.c_q6v5proc_halt_axi_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"port failed halt\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	q6v5proc_halt_axi_port, %function
q6v5proc_halt_axi_port:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r10, .L16
	sub	sp, sp, #12
	ldr	r1, [r10]
	ldr	r3, .L16+4
	add	r1, r2, r1
	mov	r4, r2
	mov	r9, r0
	mov	r2, sp
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	regmap_read
	cmp	r0, #0
	bne	.L2
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L1
.L2:
	ldr	fp, .L16+8
	mov	r2, #1
	ldr	r1, [fp]
	mov	r0, r5
	add	r1, r4, r1
	bl	regmap_write
	ldr	r3, .L16+12
	ldr	r7, .L16+16
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	ldr	r3, [r7]
	ldr	r8, .L16+20
	add	r6, r0, r3
	b	.L5
.L14:
	mov	r1, r6
	ldr	r0, [r7]
	bl	time_after
	cmp	r0, #0
	bne	.L4
	mov	r0, #1
	bl	msleep
.L5:
	ldr	r1, [r8]
	mov	r2, sp
	mov	r0, r5
	add	r1, r4, r1
	bl	regmap_read
	ldr	r3, [sp]
	orrs	r3, r0, r3
	beq	.L14
.L4:
	ldr	r1, [r10]
	mov	r2, sp
	mov	r0, r5
	add	r1, r4, r1
	bl	regmap_read
	cmp	r0, #0
	bne	.L6
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L6
.L7:
	ldr	r1, [fp]
	mov	r0, r5
	mov	r2, #0
	add	r1, r4, r1
	bl	regmap_write
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, [r9]
	ldr	r1, .L16+24
	bl	dev_err
	b	.L7
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	AXI_IDLE_REG
	.word	.LC1
	.word	AXI_HALTREQ_REG
	.word	HALT_ACK_TIMEOUT_MS
	.word	jiffies
	.word	AXI_HALTACK_REG
	.word	.LC0
	.size	q6v5proc_halt_axi_port, .-q6v5proc_halt_axi_port
	.comm	jiffies,4,4
	.comm	HALT_ACK_TIMEOUT_MS,4,4
	.comm	AXI_IDLE_REG,4,4
	.comm	AXI_HALTREQ_REG,4,4
	.comm	AXI_HALTACK_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
