	.file	"extr_atafb.c_do_fb_set_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_fb_set_var, @function
do_fb_set_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR fbhw[rip]
	lea	rbp, 4[rsp]
	mov	rsi, rbp
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r14d, DWORD PTR [rbx]
	mov	eax, DWORD PTR FB_ACTIVATE_MASK[rip]
	and	eax, r14d
	cmp	eax, DWORD PTR FB_ACTIVATE_NOW[rip]
	jne	.L3
	test	r13d, r13d
	jne	.L13
.L3:
	mov	rax, QWORD PTR fbhw[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	call	[QWORD PTR 8[rax]]
	mov	DWORD PTR [rbx], r14d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	call	ata_set_par@PLT
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_fb_set_var, .-do_fb_set_var
	.comm	fbhw,8,8
	.comm	FB_ACTIVATE_NOW,4,4
	.comm	FB_ACTIVATE_MASK,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_atafb.c_do_fb_set_var.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_fb_set_var, %function
do_fb_set_var:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L12
	sub	sp, sp, #8
	ldr	r3, [r7]
	ldr	r2, .L12+4
	mov	r6, r1
	ldr	r3, [r3]
	mov	r1, sp
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r5, r0
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r3, [r3]
	ldr	r8, [r5]
	ldr	r2, [r2]
	and	r3, r3, r8
	sub	r3, r3, r2
	clz	r3, r3
	cmp	r6, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bne	.L10
.L3:
	ldr	r3, [r7]
	mov	r1, sp
	mov	r0, r5
	ldr	r3, [r3, #4]
	blx	r3
	str	r8, [r5]
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, sp
	bl	ata_set_par
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	fbhw
	.word	.LC0
	.word	FB_ACTIVATE_MASK
	.word	FB_ACTIVATE_NOW
	.size	do_fb_set_var, .-do_fb_set_var
	.comm	fbhw,4,4
	.comm	FB_ACTIVATE_NOW,4,4
	.comm	FB_ACTIVATE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
