	.file	"extr_i2c-core-base.c_i2c_get_dma_safe_msg_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DMA buffer for addr=0x%02x with length 0 is bogus\n"
	.align 8
.LC1:
	.string	"using bounce buffer for addr=0x%02x, len=%d\n"
	.text
	.p2align 4
	.globl	i2c_get_dma_safe_msg_buf
	.type	i2c_get_dma_safe_msg_buf, @function
i2c_get_dma_safe_msg_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	je	.L9
	mov	edx, DWORD PTR [rbx]
	cmp	edx, ebp
	jb	.L6
.L10:
	test	edx, edx
	je	.L6
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR I2C_M_DMA_SAFE[rip], eax
	je	.L4
	mov	rax, QWORD PTR 8[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_debug@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR I2C_M_RD[rip], eax
	je	.L5
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	kzalloc@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rdi]
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	edx, DWORD PTR [rbx]
	cmp	edx, ebp
	jnb	.L10
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	kmemdup@PLT
	.cfi_endproc
.LFE0:
	.size	i2c_get_dma_safe_msg_buf, .-i2c_get_dma_safe_msg_buf
	.comm	I2C_M_RD,4,4
	.comm	I2C_M_DMA_SAFE,4,4
	.comm	GFP_KERNEL,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-core-base.c_i2c_get_dma_safe_msg_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA buffer for addr=0x%02x with length 0 is bogus\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"using bounce buffer for addr=0x%02x, len=%d\012\000"
	.text
	.align	2
	.global	i2c_get_dma_safe_msg_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_get_dma_safe_msg_buf, %function
i2c_get_dma_safe_msg_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	mov	r4, r0
	beq	.L9
.L2:
	ldr	r2, [r4]
	clz	r3, r2
	lsr	r3, r3, #5
	cmp	r2, r5
	orrcc	r3, r3, #1
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L10
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L4
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, [r4, #12]
	ldr	r0, .L10+4
	bl	pr_debug
	ldr	r3, .L10+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	ldr	r3, .L10+12
	beq	.L5
	ldr	r0, [r4]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	kzalloc
.L9:
	ldr	r1, [r0, #12]
	ldr	r0, .L10+16
	bl	pr_debug
	b	.L2
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, [r4]
	ldr	r0, [r4, #8]
	ldr	r2, [r3]
	pop	{r4, r5, r6, lr}
	b	kmemdup
.L11:
	.align	2
.L10:
	.word	I2C_M_DMA_SAFE
	.word	.LC1
	.word	I2C_M_RD
	.word	GFP_KERNEL
	.word	.LC0
	.size	i2c_get_dma_safe_msg_buf, .-i2c_get_dma_safe_msg_buf
	.comm	I2C_M_RD,4,4
	.comm	I2C_M_DMA_SAFE,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
