	.file	"extr_amdgpu_i2c.c_amdgpu_i2c_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AMDGPU i2c hw bus %s"
.LC1:
	.string	"AMDGPU i2c bit bus %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to register bit i2c %s\n"
	.text
	.p2align 4
	.globl	amdgpu_i2c_create
	.type	amdgpu_i2c_create, @function
amdgpu_i2c_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 8[rsi], 0
	je	.L2
	cmp	QWORD PTR amdgpu_hw_i2c[rip], 0
	je	.L15
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 120
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L15
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	rsi, r12
	mov	rdi, r12
	movups	XMMWORD PTR 104[rax], xmm0
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	DWORD PTR 36[r12], eax
	mov	eax, DWORD PTR I2C_CLASS_DDC[rip]
	mov	DWORD PTR 32[r12], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 96[r12], rbp
	mov	QWORD PTR 24[r12], rax
	call	i2c_set_adapdata@PLT
	lea	rdi, 88[r12]
	call	mutex_init@PLT
	cmp	QWORD PTR [rbx], 0
	mov	edi, DWORD PTR 8[r12]
	mov	rcx, r13
	je	.L6
	cmp	QWORD PTR amdgpu_hw_i2c[rip], 0
	jne	.L18
.L6:
	lea	rdx, .LC1[rip]
	mov	esi, 4
	call	snprintf@PLT
	lea	rax, 40[r12]
	mov	edi, 2200
	mov	DWORD PTR 40[r12], 10
	mov	QWORD PTR [r12], rax
	mov	eax, DWORD PTR amdgpu_i2c_pre_xfer[rip]
	mov	DWORD PTR 80[r12], eax
	mov	eax, DWORD PTR amdgpu_i2c_post_xfer[rip]
	mov	DWORD PTR 76[r12], eax
	mov	eax, DWORD PTR amdgpu_i2c_set_data[rip]
	mov	DWORD PTR 72[r12], eax
	mov	eax, DWORD PTR amdgpu_i2c_set_clock[rip]
	mov	DWORD PTR 68[r12], eax
	mov	eax, DWORD PTR amdgpu_i2c_get_data[rip]
	mov	DWORD PTR 64[r12], eax
	mov	eax, DWORD PTR amdgpu_i2c_get_clock[rip]
	mov	DWORD PTR 60[r12], eax
	call	usecs_to_jiffies@PLT
	mov	QWORD PTR 48[r12], r12
	mov	rdi, r12
	mov	DWORD PTR 56[r12], eax
	call	i2c_bit_add_bus@PLT
	test	eax, eax
	jne	.L19
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L19:
	.cfi_restore_state
	mov	rsi, r13
	lea	rdi, .LC2[rip]
	call	DRM_ERROR@PLT
.L7:
	mov	rdi, r12
	call	kfree@PLT
.L15:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rax, r12
	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
.L18:
	.cfi_restore_state
	lea	rdx, .LC0[rip]
	mov	esi, 4
	call	snprintf@PLT
	lea	rax, amdgpu_atombios_i2c_algo[rip]
	mov	rdi, r12
	mov	QWORD PTR 16[r12], rax
	call	i2c_add_adapter@PLT
	test	eax, eax
	jne	.L7
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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	amdgpu_i2c_create, .-amdgpu_i2c_create
	.comm	amdgpu_i2c_set_data,4,4
	.comm	amdgpu_i2c_set_clock,4,4
	.comm	amdgpu_i2c_pre_xfer,4,4
	.comm	amdgpu_i2c_post_xfer,4,4
	.comm	amdgpu_i2c_get_data,4,4
	.comm	amdgpu_i2c_get_clock,4,4
	.comm	amdgpu_hw_i2c,8,8
	.comm	amdgpu_atombios_i2c_algo,4,4
	.comm	THIS_MODULE,4,4
	.comm	I2C_CLASS_DDC,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_amdgpu_i2c.c_amdgpu_i2c_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AMDGPU i2c hw bus %s\000"
	.align	2
.LC1:
	.ascii	"AMDGPU i2c bit bus %s\000"
	.align	2
.LC2:
	.ascii	"Failed to register bit i2c %s\012\000"
	.text
	.align	2
	.global	amdgpu_i2c_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_i2c_create, %function
amdgpu_i2c_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r5, r1
	mov	r6, r0
	mov	r7, r2
	beq	.L2
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
.L2:
	ldr	r3, .L26+4
	mov	r0, #76
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L21
	ldm	r5, {r0, r1}
	ldr	r2, .L26+8
	ldr	r3, .L26+12
	ldr	ip, [r2]
	ldr	r2, [r3]
	add	r3, r4, #68
	stm	r3, {r0, r1}
	ldr	r3, [r6]
	mov	r1, r4
	str	r3, [r4, #12]
	str	ip, [r4, #20]
	str	r2, [r4, #16]
	mov	r0, r4
	str	r6, [r4, #64]
	bl	i2c_set_adapdata
	add	r0, r4, #60
	bl	mutex_init
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L26
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
.L6:
	mov	r3, r7
	mov	r1, #4
	ldr	r2, .L26+16
	bl	snprintf
	mov	r2, #10
	ldr	lr, .L26+20
	ldr	ip, .L26+24
	ldr	r0, .L26+28
	ldr	r1, .L26+32
	ldr	r3, .L26+36
	ldr	r5, [lr]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, .L26+40
	ldr	r3, [r3]
	ldr	r1, [r1]
	str	r3, [r4, #48]
	add	r3, r4, #24
	str	lr, [r4, #52]
	str	ip, [r4, #44]
	str	r0, [r4, #40]
	str	r1, [r4, #36]
	str	r2, [r4, #24]
	str	r3, [r4]
	ldr	r0, .L26+44
	str	r5, [r4, #56]
	bl	usecs_to_jiffies
	str	r4, [r4, #28]
	str	r0, [r4, #32]
	mov	r0, r4
	bl	i2c_bit_add_bus
	cmp	r0, #0
	bne	.L25
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	mov	r1, r7
	ldr	r0, .L26+48
	bl	DRM_ERROR
.L7:
	mov	r0, r4
	bl	kfree
.L21:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, [r4, #4]
	b	.L6
.L24:
	mov	r3, r7
	mov	r1, #4
	ldr	r2, .L26+52
	bl	snprintf
	ldr	r3, .L26+56
	mov	r0, r4
	str	r3, [r4, #8]
	bl	i2c_add_adapter
	cmp	r0, #0
	bne	.L7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	.align	2
.L26:
	.word	amdgpu_hw_i2c
	.word	GFP_KERNEL
	.word	THIS_MODULE
	.word	I2C_CLASS_DDC
	.word	.LC1
	.word	amdgpu_i2c_pre_xfer
	.word	amdgpu_i2c_post_xfer
	.word	amdgpu_i2c_set_clock
	.word	amdgpu_i2c_get_data
	.word	amdgpu_i2c_set_data
	.word	amdgpu_i2c_get_clock
	.word	2200
	.word	.LC2
	.word	.LC0
	.word	amdgpu_atombios_i2c_algo
	.size	amdgpu_i2c_create, .-amdgpu_i2c_create
	.comm	amdgpu_i2c_set_data,4,4
	.comm	amdgpu_i2c_set_clock,4,4
	.comm	amdgpu_i2c_pre_xfer,4,4
	.comm	amdgpu_i2c_post_xfer,4,4
	.comm	amdgpu_i2c_get_data,4,4
	.comm	amdgpu_i2c_get_clock,4,4
	.comm	amdgpu_hw_i2c,4,4
	.comm	amdgpu_atombios_i2c_algo,4,4
	.comm	THIS_MODULE,4,4
	.comm	I2C_CLASS_DDC,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
