	.file	"extr_firmware.c_pdc_model_capabilities.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pdc_model_capabilities
	.type	pdc_model_capabilities, @function
pdc_model_capabilities:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdi, pdc_lock[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR pdc_result[rip]
	mov	QWORD PTR [rdi], 0
	call	__pa@PLT
	mov	esi, DWORD PTR PDC_MODEL_CAPABILITIES[rip]
	mov	edi, DWORD PTR PDC_MODEL[rip]
	xor	ecx, ecx
	mov	edx, eax
	call	mem_pdc_call@PLT
	mov	rdi, QWORD PTR pdc_result[rip]
	mov	r12d, eax
	call	convert_to_wide@PLT
	cmp	DWORD PTR PDC_OK[rip], r12d
	mov	rax, QWORD PTR PDC_MODEL_OS32[rip]
	jne	.L3
	mov	rax, QWORD PTR pdc_result[rip]
	mov	rax, QWORD PTR [rax]
.L3:
	mov	QWORD PTR [rbx], rax
	xor	esi, esi
	lea	rdi, pdc_lock[rip]
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pdc_model_capabilities, .-pdc_model_capabilities
	.comm	pdc_result,8,8
	.comm	pdc_lock,4,4
	.comm	PDC_OK,4,4
	.comm	PDC_MODEL_OS32,8,8
	.comm	PDC_MODEL_CAPABILITIES,4,4
	.comm	PDC_MODEL,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_firmware.c_pdc_model_capabilities.c"
	.text
	.align	2
	.global	pdc_model_capabilities
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdc_model_capabilities, %function
pdc_model_capabilities:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	ldr	r6, .L6
	mov	r1, r4
	mov	r5, r0
	ldr	r0, .L6+4
	bl	spin_lock_irqsave
	ldr	r0, [r6]
	ldr	r2, .L6+8
	ldr	r3, .L6+12
	str	r4, [r0]
	ldr	r7, [r2]
	ldr	r8, [r3]
	bl	__pa
	mov	r3, r4
	mov	r2, r0
	mov	r1, r8
	mov	r0, r7
	bl	mem_pdc_call
	mov	r4, r0
	ldr	r0, [r6]
	bl	convert_to_wide
	ldr	r3, .L6+16
	mov	r1, #0
	ldr	r3, [r3]
	ldr	r0, .L6+4
	cmp	r3, r4
	ldreq	r3, [r6]
	ldrne	r3, .L6+20
	ldr	r3, [r3]
	str	r3, [r5]
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	pdc_result
	.word	pdc_lock
	.word	PDC_MODEL
	.word	PDC_MODEL_CAPABILITIES
	.word	PDC_OK
	.word	PDC_MODEL_OS32
	.size	pdc_model_capabilities, .-pdc_model_capabilities
	.comm	pdc_result,4,4
	.comm	pdc_lock,4,4
	.comm	PDC_OK,4,4
	.comm	PDC_MODEL_OS32,4,4
	.comm	PDC_MODEL_CAPABILITIES,4,4
	.comm	PDC_MODEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
