	.file	"extr_i2c_master.c_i2c_readReg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i2c_readReg
	.type	i2c_readReg, @function
i2c_readReg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	DWORD PTR i2c_address[rip], edi
	lea	rdi, I2C_DRIVER[rip]
	mov	DWORD PTR 12[rsp], esi
	lea	rsi, i2cconfig[rip]
	call	i2cStart@PLT
	mov	edi, r12d
	call	MS2ST@PLT
	lea	rdx, 12[rsp]
	mov	r9d, ebp
	mov	r8, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR i2c_address[rip]
	mov	ecx, 1
	lea	rdi, I2C_DRIVER[rip]
	push	rax
	.cfi_def_cfa_offset 64
	sar	esi
	call	i2cMasterTransmitTimeout@PLT
	mov	edi, eax
	call	chibios_to_qmk@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i2c_readReg, .-i2c_readReg
	.comm	i2cconfig,4,4
	.comm	i2c_address,4,4
	.comm	I2C_DRIVER,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_i2c_master.c_i2c_readReg.c"
	.text
	.align	2
	.global	i2c_readReg
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_readReg, %function
i2c_readReg:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L4
	sub	sp, sp, #28
	ldr	r5, .L4+4
	str	r1, [sp, #20]
	mov	r0, r7
	ldr	r1, .L4+8
	str	ip, [r5]
	mov	r4, r2
	mov	r6, r3
	bl	i2cStart
	ldr	r0, [sp, #48]
	ldr	r5, [r5]
	bl	MS2ST
	asr	r5, r5, #1
	mov	r1, r5
	mov	r3, #1
	str	r0, [sp, #8]
	add	r2, sp, #20
	mov	r0, r7
	str	r6, [sp, #4]
	str	r4, [sp]
	bl	i2cMasterTransmitTimeout
	bl	chibios_to_qmk
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	.align	2
.L4:
	.word	I2C_DRIVER
	.word	i2c_address
	.word	i2cconfig
	.size	i2c_readReg, .-i2c_readReg
	.comm	i2cconfig,4,4
	.comm	i2c_address,4,4
	.comm	I2C_DRIVER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
