	.file	"extr_smscoreapi.c_smscore_init_ir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IR loading"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error initialization DTV IR sub-module"
	.align 8
.LC2:
	.string	"Sending IR initialization message failed"
	.section	.rodata.str1.1
.LC3:
	.string	"IR port has not been detected"
	.text
	.p2align 4
	.type	smscore_init_ir, @function
smscore_init_ir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	QWORD PTR 16[rdi], 0
	call	smscore_get_board_id@PLT
	mov	edi, eax
	call	sms_get_board@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	call	sms_info@PLT
	mov	rdi, rbp
	call	sms_ir_init@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	call	sms_err@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	sms_info@PLT
.L4:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR SMS_DMA_ALIGNMENT[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	or	esi, DWORD PTR GFP_DMA[rip]
	lea	rdi, 16[rax]
	call	kmalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	SMS_ALIGN_ADDRESS@PLT
	mov	esi, DWORD PTR MSG_SMS_START_IR_REQ[rip]
	mov	edx, 16
	mov	r12, rax
	mov	rdi, rax
	call	SMS_INIT_MSG@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 8[rbp]
	mov	DWORD PTR 4[rax], edx
	call	smsendian_handle_tx_message@PLT
	mov	edx, DWORD PTR [r12]
	mov	rcx, rbp
	mov	rsi, r12
	mov	rdi, rbp
	call	smscore_sendrequest_and_wait@PLT
	mov	rdi, r13
	call	kfree@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	sms_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	smscore_init_ir, .-smscore_init_ir
	.comm	SMS_DMA_ALIGNMENT,8,8
	.comm	MSG_SMS_START_IR_REQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,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_smscoreapi.c_smscore_init_ir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IR loading\000"
	.align	2
.LC1:
	.ascii	"Error initialization DTV IR sub-module\000"
	.align	2
.LC2:
	.ascii	"Sending IR initialization message failed\000"
	.align	2
.LC3:
	.ascii	"IR port has not been detected\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smscore_init_ir, %function
smscore_init_ir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	str	r3, [r0, #12]
	mov	r4, r0
	bl	smscore_get_board_id
	bl	sms_get_board
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L8
	bl	sms_info
	mov	r0, r4
	bl	sms_ir_init
	cmp	r0, #0
	beq	.L3
	ldr	r0, .L8+4
	bl	sms_err
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, .L8+8
	bl	sms_info
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	ldr	r3, .L8+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r1, r1, r3
	add	r0, r0, #8
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L5
	bl	SMS_ALIGN_ADDRESS
	mov	r5, r0
	ldr	r3, .L8+24
	mov	r2, #8
	ldr	r1, [r3]
	bl	SMS_INIT_MSG
	ldr	r3, [r5, #4]
	ldr	r2, [r4, #8]
	mov	r0, r5
	str	r2, [r3]
	ldr	r2, [r4, #4]
	str	r2, [r3, #4]
	bl	smsendian_handle_tx_message
	mov	r3, r4
	mov	r1, r5
	ldr	r2, [r5]
	mov	r0, r4
	bl	smscore_sendrequest_and_wait
	mov	r0, r6
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, .L8+28
	bl	sms_err
	b	.L4
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	SMS_DMA_ALIGNMENT
	.word	GFP_KERNEL
	.word	GFP_DMA
	.word	MSG_SMS_START_IR_REQ
	.word	.LC2
	.size	smscore_init_ir, .-smscore_init_ir
	.comm	SMS_DMA_ALIGNMENT,4,4
	.comm	MSG_SMS_START_IR_REQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
