	.file	"extr_ipath_eeprom.c_i2c_gpio_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	i2c_gpio_set, @function
i2c_gpio_set:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR i2c_line_scl[rip], esi
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	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, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	je	.L10
	mov	rcx, QWORD PTR 32[rdi]
	mov	edx, 1
	mov	r13, QWORD PTR 24[rdi]
	mov	rbx, rdx
	sal	rbx, cl
.L3:
	lea	r12, 48[rbp]
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	cmp	DWORD PTR i2c_line_high[rip], r14d
	mov	rdx, r13
	je	.L11
	or	rdx, QWORD PTR 40[rbp]
.L5:
	mov	rax, QWORD PTR 56[rbp]
	mov	QWORD PTR 40[rbp], rdx
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax]
	call	ipath_write_kreg@PLT
	cmp	DWORD PTR i2c_line_high[rip], r14d
	je	.L12
	mov	rdx, QWORD PTR 0[rbp]
	not	rbx
	and	rdx, rbx
.L7:
	mov	rax, QWORD PTR 56[rbp]
	mov	QWORD PTR 0[rbp], rdx
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	ipath_write_kreg@PLT
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	mov	rcx, QWORD PTR 16[rdi]
	mov	edx, 1
	mov	r13, QWORD PTR 8[rdi]
	mov	rbx, rdx
	sal	rbx, cl
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	or	rbx, QWORD PTR 0[rbp]
	mov	rdx, rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	not	rdx
	and	rdx, QWORD PTR 40[rbp]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	i2c_gpio_set, .-i2c_gpio_set
	.comm	i2c_line_scl,4,4
	.comm	i2c_line_high,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_ipath_eeprom.c_i2c_gpio_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_gpio_set, %function
i2c_gpio_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #1
	mov	r4, r0
	mov	r6, r2
	ldr	r3, .L10
	ldr	r9, .L10+4
	ldr	r3, [r3]
	add	r8, r0, #24
	cmp	r3, r1
	ldreq	r2, [r0, #8]
	ldrne	r2, [r0, #16]
	ldreq	r7, [r0, #4]
	ldrne	r7, [r0, #12]
	mov	r1, #0
	mov	r0, r8
	lsl	r5, r5, r2
	bl	spin_lock_irqsave
	ldr	r3, [r9]
	ldr	r2, [r4, #20]
	cmp	r3, r6
	ldr	r3, [r4, #28]
	biceq	r2, r2, r7
	orrne	r2, r7, r2
	ldr	r1, [r3, #4]
	str	r2, [r4, #20]
	mov	r0, r4
	bl	ipath_write_kreg
	ldr	r3, [r9]
	ldr	r2, [r4]
	cmp	r3, r6
	ldr	r3, [r4, #28]
	orreq	r2, r5, r2
	bicne	r2, r2, r5
	ldr	r1, [r3]
	str	r2, [r4]
	mov	r0, r4
	bl	ipath_write_kreg
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	i2c_line_scl
	.word	i2c_line_high
	.size	i2c_gpio_set, .-i2c_gpio_set
	.comm	i2c_line_scl,4,4
	.comm	i2c_line_high,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
