	.file	"extr_aic7xxx_osm.c_ahc_linux_set_offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahc_linux_set_offset, @function
ahc_linux_set_offset:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	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
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 12[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r15, 12[rsp]
	call	dev_to_shost@PLT
	mov	ecx, DWORD PTR 8[rbx]
	lea	r8, 24[rsp]
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 0[rbp]
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r12
	lea	rsi, 65[rax]
	call	ahc_fetch_transinfo@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	r14, rax
	mov	rax, QWORD PTR [rbx]
	mov	r9d, DWORD PTR ROLE_INITIATOR[rip]
	mov	rdi, r15
	mov	DWORD PTR 16[rsp], 0
	xor	ebx, ebx
	lea	r8, 65[rax]
	mov	DWORD PTR 20[rsp], 0
	call	ahc_compile_devinfo@PLT
	test	r13d, r13d
	jne	.L9
.L2:
	lea	rbp, 32[rsp]
	mov	rdi, r12
	mov	rsi, rbp
	call	ahc_lock@PLT
	mov	rdx, rbx
	mov	r8d, r13d
	mov	rsi, r15
	mov	eax, DWORD PTR FALSE[rip]
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR AHC_TRANS_GOAL[rip]
	push	rax
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 32[rsp]
	mov	ecx, DWORD PTR 36[rsp]
	call	ahc_set_syncrate@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ahc_unlock@PLT
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	mov	ecx, DWORD PTR AHC_SYNCRATE_DT[rip]
	lea	rdx, 16[rsp]
	lea	rsi, 20[rsp]
	mov	rdi, r12
	call	ahc_find_syncrate@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ahc_linux_set_offset, .-ahc_linux_set_offset
	.comm	ROLE_INITIATOR,4,4
	.comm	FALSE,4,4
	.comm	AHC_TRANS_GOAL,4,4
	.comm	AHC_SYNCRATE_DT,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_aic7xxx_osm.c_ahc_linux_set_offset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahc_linux_set_offset, %function
ahc_linux_set_offset:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L9
	sub	sp, sp, #44
	mov	r4, r0
	ldr	r0, [r0, #8]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	dev_to_shost
	ldr	r1, [r4]
	ldm	r0, {r2, r3}
	ldr	r7, [r3]
	add	ip, sp, #16
	ldr	r3, [r4, #4]
	mov	r5, r0
	add	r1, r1, #65
	str	ip, [sp]
	mov	r0, r7
	bl	ahc_fetch_transinfo
	mov	r3, #0
	mov	ip, r0
	ldr	r2, [r4]
	ldr	r0, .L9+4
	add	r2, r2, #65
	ldr	r0, [r0]
	ldr	r1, [r5]
	str	r2, [sp]
	ldr	r2, [r4, #4]
	str	r0, [sp, #4]
	add	r0, sp, #20
	mov	r4, ip
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	bl	ahc_compile_devinfo
	cmp	r6, #0
	moveq	r4, r6
	bne	.L7
.L2:
	add	r1, sp, #32
	mov	r0, r7
	bl	ahc_lock
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	ip, [r2]
	ldr	r0, [r3]
	ldr	r3, [sp, #24]
	mov	r2, r4
	add	r1, sp, #20
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	mov	r0, r7
	ldr	r3, [sp, #28]
	str	r6, [sp]
	bl	ahc_set_syncrate
	mov	r0, r7
	add	r1, sp, #32
	bl	ahc_unlock
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r3, .L9+16
	add	r2, sp, #24
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, sp, #28
	bl	ahc_find_syncrate
	ldm	r4, {r2, r3}
	mov	r4, r0
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	b	.L2
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	ROLE_INITIATOR
	.word	FALSE
	.word	AHC_TRANS_GOAL
	.word	AHC_SYNCRATE_DT
	.size	ahc_linux_set_offset, .-ahc_linux_set_offset
	.comm	ROLE_INITIATOR,4,4
	.comm	FALSE,4,4
	.comm	AHC_TRANS_GOAL,4,4
	.comm	AHC_SYNCRATE_DT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
