	.file	"extr_pci_dw.c_pci_dw_check_dev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pci_dw_check_dev, @function
pci_dw_check_dev:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], rsi
	jg	.L4
	cmp	QWORD PTR 8[rdi], rsi
	jl	.L4
	cmp	QWORD PTR PCI_SLOTMAX[rip], rdx
	jl	.L4
	cmp	QWORD PTR PCI_FUNCMAX[rip], rcx
	jl	.L4
	cmp	QWORD PTR PCI_REGMAX[rip], r8
	jl	.L4
	cmp	QWORD PTR 16[rdi], rsi
	je	.L5
	mov	edi, DWORD PTR 24[rdi]
	lea	rsi, 4[rsp]
	call	PCI_DW_GET_LINK@PLT
	test	eax, eax
	jne	.L4
	mov	edx, DWORD PTR 4[rsp]
	xor	eax, eax
	test	edx, edx
	setne	al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	rdx, rdx
	setg	al
	test	rcx, rcx
	setg	dl
	or	eax, edx
	xor	eax, 1
	movzx	eax, al
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_dw_check_dev, .-pci_dw_check_dev
	.comm	PCI_SLOTMAX,8,8
	.comm	PCI_REGMAX,8,8
	.comm	PCI_FUNCMAX,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_pci_dw.c_pci_dw_check_dev.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_dw_check_dev, %function
pci_dw_check_dev:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	ip, [r0]
	sub	sp, sp, #12
	cmp	ip, r1
	ldr	ip, .L10
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bgt	.L4
	ldr	ip, [r0, #4]
	cmp	ip, r1
	blt	.L4
	ldr	ip, .L10+4
	ldr	ip, [ip]
	cmp	ip, r2
	blt	.L4
	ldr	ip, .L10+8
	ldr	ip, [ip]
	cmp	ip, r3
	blt	.L4
	ldr	ip, .L10+12
	ldr	lr, [sp, #16]
	ldr	ip, [ip]
	cmp	ip, lr
	blt	.L4
	ldr	ip, [r0, #8]
	cmp	ip, r1
	beq	.L5
	mov	r1, sp
	ldr	r0, [r0, #12]
	bl	PCI_DW_GET_LINK
	cmp	r0, #0
	bne	.L4
	ldr	r0, [sp]
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L5:
	cmp	r3, #0
	cmple	r2, #0
	movgt	r2, #1
	movle	r2, #0
	eor	r0, r2, #1
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	PCI_SLOTMAX
	.word	PCI_FUNCMAX
	.word	PCI_REGMAX
	.size	pci_dw_check_dev, .-pci_dw_check_dev
	.comm	PCI_SLOTMAX,4,4
	.comm	PCI_REGMAX,4,4
	.comm	PCI_FUNCMAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
