	.file	"extr_eata.c_eata2x_bios_param.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	eata2x_bios_param
	.type	eata2x_bios_param, @function
eata2x_bios_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR ext_tran[rip], 0
	je	.L2
.L4:
	movabs	rax, 270582939903
	mov	QWORD PTR 0[rbp], rax
	mov	eax, ebx
	imul	rax, rax, 85284443
	shr	rax, 32
	sub	ebx, eax
	shr	ebx
	add	ebx, eax
	xor	eax, eax
	shr	ebx, 13
	mov	DWORD PTR 8[rbp], ebx
	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
.L2:
	.cfi_restore_state
	mov	rdi, rsi
	mov	rdx, rcx
	mov	esi, ebx
	call	scsicam_bios_param@PLT
	test	rax, rax
	js	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	eata2x_bios_param, .-eata2x_bios_param
	.comm	ext_tran,8,8
	.comm	driver_name,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_eata.c_eata2x_bios_param.c"
	.text
	.align	2
	.global	eata2x_bios_param
	.syntax unified
	.arm
	.fpu softvfp
	.type	eata2x_bios_param, %function
eata2x_bios_param:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, .L7
	push	{r4, r5, r6, lr}
	ldr	r0, [r0]
	mov	r4, r2
	cmp	r0, #0
	mov	r5, r3
	beq	.L2
.L4:
	mov	r2, #255
	mov	r3, #63
	ldr	r0, .L7+4
	str	r2, [r5]
	umull	r2, r0, r4, r0
	sub	r4, r4, r0
	add	r0, r0, r4, lsr #1
	lsr	r0, r0, #13
	str	r0, [r5, #8]
	str	r3, [r5, #4]
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r1
	mov	r2, r3
	mov	r1, r4
	bl	scsicam_bios_param
	cmp	r0, #0
	blt	.L4
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	ext_tran
	.word	85284443
	.size	eata2x_bios_param, .-eata2x_bios_param
	.comm	ext_tran,4,4
	.comm	driver_name,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
