	.file	"extr_core.c_intel_th_device_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d-%s%d"
.LC1:
	.string	"%d-%s"
	.text
	.p2align 4
	.type	intel_th_device_alloc, @function
intel_th_device_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR INTEL_TH_OUTPUT[rip], ebx
	mov	QWORD PTR 8[rsp], rdi
	je	.L11
	mov	rax, QWORD PTR 8[rsp]
	mov	r13, QWORD PTR 8[rax]
.L3:
	mov	rdi, r15
	call	strlen@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 49[rax]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], ebp
	mov	edi, DWORD PTR 40[rax]
	mov	rsi, r15
	lea	r14, 8[r12]
	mov	DWORD PTR 4[rax], ebx
	call	strcpy@PLT
	mov	rdi, r14
	call	device_initialize@PLT
	lea	rax, intel_th_bus[rip]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r14
	mov	QWORD PTR 32[r12], rax
	mov	rax, QWORD PTR intel_th_device_type[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	mov	QWORD PTR 16[r12], r13
	mov	DWORD PTR 24[r12], eax
	mov	eax, DWORD PTR 8[r13]
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR 4[r13]
	mov	DWORD PTR 8[r12], eax
	call	dma_set_coherent_mask@PLT
	test	ebp, ebp
	js	.L5
	mov	rax, QWORD PTR 8[rsp]
	mov	r8d, ebp
	mov	rcx, r15
	mov	rdi, r14
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	dev_set_name@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, r15
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	dev_set_name@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r13, QWORD PTR 16[rdi]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	intel_th_device_alloc, .-intel_th_device_alloc
	.comm	intel_th_device_type,8,8
	.comm	intel_th_bus,4,4
	.comm	INTEL_TH_OUTPUT,4,4
	.comm	GFP_KERNEL,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_core.c_intel_th_device_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d-%s%d\000"
	.align	2
.LC1:
	.ascii	"%d-%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_th_device_alloc, %function
intel_th_device_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, .L11
	sub	sp, sp, #8
	ldr	r1, [r1]
	mov	r8, r0
	cmp	r1, r5
	ldreq	r9, [r0, #8]
	ldrne	r9, [r0, #4]
	mov	r0, r2
	mov	r6, r2
	mov	r7, r3
	bl	strlen
	ldr	r3, .L11+4
	add	r0, r0, #33
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r1, r6
	add	r10, r4, #8
	ldr	r0, [r4, #28]
	str	r7, [r4]
	str	r5, [r4, #4]
	bl	strcpy
	mov	r0, r10
	bl	device_initialize
	ldr	r3, .L11+8
	ldr	r2, .L11+12
	ldr	r3, [r3]
	str	r2, [r4, #24]
	ldr	r1, [r3, r5, lsl #2]
	ldr	r2, [r9, #8]
	ldr	r3, [r9, #4]
	mov	r0, r10
	str	r1, [r4, #20]
	str	r9, [r4, #16]
	ldr	r1, [r9]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	bl	dma_set_coherent_mask
	cmp	r7, #0
	blt	.L5
	str	r7, [sp]
	mov	r3, r6
	mov	r0, r10
	ldr	r2, [r8]
	ldr	r1, .L11+16
	bl	dev_set_name
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r3, r6
	mov	r0, r10
	ldr	r2, [r8]
	ldr	r1, .L11+20
	bl	dev_set_name
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	INTEL_TH_OUTPUT
	.word	GFP_KERNEL
	.word	intel_th_device_type
	.word	intel_th_bus
	.word	.LC0
	.word	.LC1
	.size	intel_th_device_alloc, .-intel_th_device_alloc
	.comm	intel_th_device_type,4,4
	.comm	intel_th_bus,4,4
	.comm	INTEL_TH_OUTPUT,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
