	.file	"extr_jme.c_jme_pci_dma64.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	jme_pci_dma64, @function
jme_pci_dma64:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR PCI_DEVICE_ID_JMICRON_JMC250[rip]
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L2
.L7:
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	je	.L3
	mov	eax, -1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	test	eax, eax
	setne	al
	movzx	eax, al
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	je	.L5
.L8:
	mov	rax, QWORD PTR PCI_DEVICE_ID_JMICRON_JMC250[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L7
	mov	edi, 40
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	jne	.L7
	mov	edi, 40
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	test	eax, eax
	jne	.L7
.L9:
	mov	eax, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	test	eax, eax
	jne	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	jme_pci_dma64, .-jme_pci_dma64
	.comm	PCI_DEVICE_ID_JMICRON_JMC250,8,8
	.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_jme.c_jme_pci_dma64.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jme_pci_dma64, %function
jme_pci_dma64:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	ldr	r2, [r0]
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r2, r3
	beq	.L2
.L7:
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_dma_mask
	cmp	r0, #0
	beq	.L3
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_consistent_dma_mask
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_dma_mask
	cmp	r0, #0
	beq	.L5
.L8:
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r2, r3
	bne	.L7
	mov	r0, #40
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_dma_mask
	cmp	r0, #0
	bne	.L7
	mov	r0, #40
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_consistent_dma_mask
	cmp	r0, #0
	bne	.L7
.L9:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r4
	bl	pci_set_consistent_dma_mask
	cmp	r0, #0
	bne	.L8
	b	.L9
.L16:
	.align	2
.L15:
	.word	PCI_DEVICE_ID_JMICRON_JMC250
	.size	jme_pci_dma64, .-jme_pci_dma64
	.comm	PCI_DEVICE_ID_JMICRON_JMC250,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
