	.file	"extr_i2c-nvidia-gpu.c_gpu_i2c_master_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2c stop failed %d\n"
	.text
	.p2align 4
	.type	gpu_i2c_master_xfer, @function
gpu_i2c_master_xfer:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	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, 8
	.cfi_def_cfa_offset 64
	call	i2c_get_adapdata@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	pm_runtime_get_sync@PLT
	test	r13d, r13d
	jle	.L10
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 16[r14]
	mov	rsi, QWORD PTR I2C_MST_ADDR[rip]
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	edx, DWORD PTR 4[r14]
	mov	rsi, QWORD PTR 8[r14]
	mov	rdi, rbx
	call	gpu_i2c_read@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
.L5:
	add	ebp, 1
	add	r14, 24
	cmp	r13d, ebp
	je	.L2
.L9:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR I2C_M_RD[rip], eax
	jne	.L19
	mov	rdi, r14
	call	i2c_8bit_addr_from_msg@PLT
	mov	rdi, rbx
	mov	r15d, eax
	call	gpu_i2c_start@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	mov	esi, r15d
	mov	rdi, rbx
	call	gpu_i2c_write@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR 4[r14]
	test	eax, eax
	jle	.L5
	xor	r15d, r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	add	r15, 1
	cmp	DWORD PTR 4[r14], r15d
	jle	.L5
.L8:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, rbx
	mov	esi, DWORD PTR [rax+r15*4]
	call	gpu_i2c_write@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L21
.L4:
	mov	rdi, rbx
	call	gpu_i2c_stop@PLT
	test	eax, eax
	js	.L22
.L7:
	mov	edi, DWORD PTR [rbx]
	call	pm_runtime_mark_last_busy@PLT
	mov	edi, DWORD PTR [rbx]
	call	pm_runtime_put_autosuspend@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 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
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L7
.L10:
	xor	r13d, r13d
.L2:
	mov	rdi, rbx
	call	gpu_i2c_stop@PLT
	mov	r12d, eax
	test	eax, eax
	cmovns	r12d, r13d
	jmp	.L7
.L20:
	test	ebp, ebp
	je	.L7
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gpu_i2c_master_xfer, .-gpu_i2c_master_xfer
	.comm	I2C_M_RD,4,4
	.comm	I2C_MST_ADDR,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_i2c-nvidia-gpu.c_gpu_i2c_master_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2c stop failed %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpu_i2c_master_xfer, %function
gpu_i2c_master_xfer:
	@ 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, r2
	mov	fp, r1
	bl	i2c_get_adapdata
	mov	r6, r0
	ldr	r0, [r0]
	bl	pm_runtime_get_sync
	cmp	r8, #0
	ble	.L10
	mov	r7, #0
	ldr	r9, .L23
	ldr	r10, .L23+4
	b	.L9
.L19:
	ldr	r3, [r10]
	ldr	r1, [r6, #4]
	ldr	r0, [fp, #12]
	add	r1, r1, r3
	bl	writel
	mov	r0, r6
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #8]
	bl	gpu_i2c_read
	subs	r4, r0, #0
	blt	.L4
.L5:
	add	r7, r7, #1
	cmp	r8, r7
	add	fp, fp, #16
	beq	.L2
.L9:
	ldr	r5, [fp]
	ldr	r3, [r9]
	ands	r5, r5, r3
	bne	.L19
	mov	r0, fp
	bl	i2c_8bit_addr_from_msg
	mov	r1, r0
	mov	r0, r6
	str	r1, [sp, #4]
	bl	gpu_i2c_start
	subs	r4, r0, #0
	ldr	r1, [sp, #4]
	blt	.L20
	mov	r0, r6
	bl	gpu_i2c_write
	subs	r4, r0, #0
	blt	.L4
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bgt	.L8
	b	.L5
.L21:
	ldr	r3, [fp, #4]
	cmp	r3, r5
	ble	.L5
.L8:
	ldr	r3, [fp, #8]
	mov	r0, r6
	ldr	r1, [r3, r5, lsl #2]
	bl	gpu_i2c_write
	subs	r4, r0, #0
	add	r5, r5, #1
	bge	.L21
.L4:
	mov	r0, r6
	bl	gpu_i2c_stop
	subs	r2, r0, #0
	blt	.L22
.L7:
	ldr	r0, [r6]
	bl	pm_runtime_mark_last_busy
	ldr	r0, [r6]
	bl	pm_runtime_put_autosuspend
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r1, .L23+8
	ldr	r0, [r6]
	bl	dev_err
	b	.L7
.L10:
	mov	r8, #0
.L2:
	mov	r0, r6
	bl	gpu_i2c_stop
	cmp	r0, #0
	movlt	r4, r0
	movge	r4, r8
	b	.L7
.L20:
	cmp	r7, #0
	beq	.L7
	b	.L4
.L24:
	.align	2
.L23:
	.word	I2C_M_RD
	.word	I2C_MST_ADDR
	.word	.LC0
	.size	gpu_i2c_master_xfer, .-gpu_i2c_master_xfer
	.comm	I2C_M_RD,4,4
	.comm	I2C_MST_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
