	.file	"extr_macio_asic.c_macio_resource_quirks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gc"
.LC1:
	.string	"radio"
.LC2:
	.string	"escc"
.LC3:
	.string	"ch-a"
.LC4:
	.string	"ch-b"
.LC5:
	.string	"media-bay"
.LC6:
	.string	"IDE"
.LC7:
	.string	"ATA"
.LC8:
	.string	"ide"
.LC9:
	.string	"ata"
	.text
	.p2align 4
	.type	macio_resource_quirks, @function
macio_resource_quirks:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR IORESOURCE_MEM[rip], eax
	je	.L57
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	edi, DWORD PTR 4[rdi]
	test	edx, edx
	je	.L58
	cmp	edx, 1
	jle	.L59
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR 8[rbx]
.L54:
	mov	edi, DWORD PTR 4[rbp]
.L6:
	mov	edx, eax
	and	edx, 126976
	cmp	edx, 32768
	jne	.L9
	add	eax, 255
	mov	DWORD PTR 4[rbx], eax
.L9:
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR 4[rbp]
	cmp	r12d, 2
	jg	.L60
	test	r12d, r12d
	jle	.L13
.L12:
	lea	rsi, .LC5[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC6[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L22
.L18:
	cmp	r12d, 1
	jne	.L55
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, edx
	cmp	eax, 255
	jle	.L55
	add	edx, 255
	xor	eax, eax
	mov	DWORD PTR 4[rbx], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L58:
	lea	rsi, .LC0[rip]
	call	strcmp@PLT
	test	rax, rax
	mov	eax, DWORD PTR 8[rbx]
	jne	.L54
	lea	edx, 131071[rax]
	mov	edi, DWORD PTR 4[rbp]
	mov	DWORD PTR 4[rbx], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L60:
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L61
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC6[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L22
	test	r12d, r12d
	jne	.L55
.L17:
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, edx
	cmp	eax, 4095
	jle	.L55
	add	edx, 4095
	mov	DWORD PTR 4[rbx], edx
.L55:
	xor	eax, eax
.L62:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L59:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rsi]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC7[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L16
.L19:
	test	r12d, r12d
	je	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L61:
	mov	edi, DWORD PTR 4[rbp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC8[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L19
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC9[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L19
	xor	eax, eax
	jmp	.L62
	.cfi_endproc
.LFE0:
	.size	macio_resource_quirks, .-macio_resource_quirks
	.comm	IORESOURCE_MEM,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_macio_asic.c_macio_resource_quirks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gc\000"
	.align	2
.LC1:
	.ascii	"radio\000"
	.align	2
.LC2:
	.ascii	"escc\000"
	.align	2
.LC3:
	.ascii	"ch-a\000"
	.align	2
.LC4:
	.ascii	"ch-b\000"
	.align	2
.LC5:
	.ascii	"media-bay\000"
	.align	2
.LC6:
	.ascii	"IDE\000"
	.align	2
.LC7:
	.ascii	"ATA\000"
	.align	2
.LC8:
	.ascii	"ide\000"
	.align	2
.LC9:
	.ascii	"ata\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macio_resource_quirks, %function
macio_resource_quirks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L59
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r1
	ldr	r1, [r1]
	tst	r1, r3
	beq	.L53
	cmp	r2, #0
	mov	r6, r0
	mov	r5, r2
	ldr	r0, [r0, #4]
	beq	.L55
	cmp	r2, #1
	ble	.L56
	ldr	r1, .L59+4
	bl	strcmp
	cmp	r0, #0
	ldrne	r3, [r4, #8]
	beq	.L10
.L52:
	ldr	r0, [r6, #4]
.L6:
	and	r2, r3, #126976
	cmp	r2, #32768
	addeq	r3, r3, #255
	streq	r3, [r4, #4]
	ldr	r1, .L59+8
	bl	strcmp
	cmp	r0, #0
	beq	.L10
	cmp	r5, #2
	ldr	r0, [r6, #4]
	bgt	.L57
	cmp	r5, #0
	ble	.L13
.L12:
	ldr	r1, .L59+12
	bl	strcmp
	cmp	r0, #0
	beq	.L10
	ldr	r1, .L59+16
	ldr	r0, [r6, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L22
.L18:
	cmp	r5, #1
	bne	.L53
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	sub	r3, r3, r2
	cmp	r3, #255
	addgt	r2, r2, #255
	strgt	r2, [r4, #4]
.L53:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L55:
	ldr	r1, .L59+20
	bl	strcmp
	cmp	r0, #0
	ldr	r3, [r4, #8]
	bne	.L52
	ldr	r2, .L59+24
	ldr	r0, [r6, #4]
	add	r2, r3, r2
	str	r2, [r4, #4]
	b	.L6
.L57:
	ldr	r1, .L59+28
	bl	strcmp
	cmp	r0, #0
	beq	.L10
	ldr	r1, .L59+32
	ldr	r0, [r6, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L58
.L10:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r1, .L59+16
	bl	strcmp
	cmp	r0, #0
	bne	.L22
	cmp	r5, #0
	bne	.L53
.L17:
	ldmib	r4, {r2, r3}
	sub	r2, r2, r3
	cmp	r2, #4096
	blt	.L53
	add	r3, r3, #4080
	add	r3, r3, #15
	mov	r0, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L56:
	ldr	r3, [r4, #8]
	b	.L6
.L22:
	ldr	r1, .L59+36
	ldr	r0, [r6, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L16
.L19:
	cmp	r5, #0
	beq	.L17
	b	.L18
.L58:
	ldr	r0, [r6, #4]
	b	.L12
.L16:
	ldr	r1, .L59+40
	ldr	r0, [r6]
	bl	strcmp
	cmp	r0, #0
	beq	.L19
	ldr	r0, [r6]
	ldr	r1, .L59+44
	bl	strcmp
	cmp	r0, #0
	beq	.L19
	b	.L53
.L60:
	.align	2
.L59:
	.word	IORESOURCE_MEM
	.word	.LC1
	.word	.LC2
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	131071
	.word	.LC3
	.word	.LC4
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	macio_resource_quirks, .-macio_resource_quirks
	.comm	IORESOURCE_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
