	.file	"extr_fb_ssd1306.c_init_display.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_display, @function
init_display:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	[QWORD PTR 24[rdi]]
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L12
.L2:
	mov	esi, 174
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 213
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 128
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 168
	mov	rdi, rbp
	call	write_reg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 64
	je	.L13
	cmp	eax, 48
	je	.L14
	mov	esi, 31
	mov	rdi, rbp
	call	write_reg@PLT
.L6:
	mov	esi, 211
	mov	rdi, rbp
	call	write_reg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 64
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 141
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 20
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 32
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 161
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 200
	mov	rdi, rbp
	call	write_reg@PLT
	mov	esi, 218
	mov	rdi, rbp
	call	write_reg@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 48
	and	eax, -17
	je	.L15
	mov	esi, 2
	mov	rdi, rbp
	call	write_reg@PLT
.L9:
	mov	rdi, rbp
	mov	esi, 217
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 241
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 219
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 64
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 164
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 166
	call	write_reg@PLT
	mov	rdi, rbp
	mov	esi, 175
	call	write_reg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 18
	mov	rdi, rbp
	call	write_reg@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r12, 16[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	DWORD PTR [rax], 64
	mov	rax, QWORD PTR 8[rbp]
	je	.L16
	mov	DWORD PTR [rax], 143
.L4:
	mov	rdi, r12
	call	mutex_unlock@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, 47
	mov	rdi, rbp
	call	write_reg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, 63
	mov	rdi, rbp
	call	write_reg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	DWORD PTR [rax], 207
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	init_display, .-init_display
	.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_fb_ssd1306.c_init_display.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_display, %function
init_display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #12]
	blx	r3
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
.L2:
	mov	r1, #174
	mov	r0, r4
	bl	write_reg
	mov	r1, #213
	mov	r0, r4
	bl	write_reg
	mov	r1, #128
	mov	r0, r4
	bl	write_reg
	mov	r1, #168
	mov	r0, r4
	bl	write_reg
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #64
	beq	.L13
	cmp	r3, #48
	moveq	r1, #47
	movne	r1, #31
	mov	r0, r4
	bl	write_reg
.L6:
	mov	r1, #211
	mov	r0, r4
	bl	write_reg
	mov	r1, #0
	mov	r0, r4
	bl	write_reg
	mov	r1, #64
	mov	r0, r4
	bl	write_reg
	mov	r1, #141
	mov	r0, r4
	bl	write_reg
	mov	r1, #20
	mov	r0, r4
	bl	write_reg
	mov	r1, #32
	mov	r0, r4
	bl	write_reg
	mov	r1, #1
	mov	r0, r4
	bl	write_reg
	mov	r1, #161
	mov	r0, r4
	bl	write_reg
	mov	r1, #200
	mov	r0, r4
	bl	write_reg
	mov	r1, #218
	mov	r0, r4
	bl	write_reg
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r3, [r3]
	sub	r3, r3, #48
	bics	r3, r3, #16
	moveq	r1, #18
	movne	r1, #2
	bl	write_reg
	mov	r1, #217
	mov	r0, r4
	bl	write_reg
	mov	r1, #241
	mov	r0, r4
	bl	write_reg
	mov	r1, #219
	mov	r0, r4
	bl	write_reg
	mov	r1, #64
	mov	r0, r4
	bl	write_reg
	mov	r1, #164
	mov	r0, r4
	bl	write_reg
	mov	r1, #166
	mov	r0, r4
	bl	write_reg
	mov	r0, r4
	mov	r1, #175
	bl	write_reg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	add	r5, r4, #8
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r4]
	mov	r0, r5
	ldr	r3, [r3]
	cmp	r3, #64
	moveq	r2, #207
	movne	r2, #143
	ldr	r3, [r4, #4]
	str	r2, [r3]
	bl	mutex_unlock
	b	.L2
.L13:
	mov	r1, #63
	mov	r0, r4
	bl	write_reg
	b	.L6
	.size	init_display, .-init_display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
