	.file	"extr_chipc.c_chipc_adjust_resource.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	chipc_adjust_resource, @function
chipc_adjust_resource:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], esi
	call	device_get_softc@PLT
	mov	esi, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	chipc_get_rman@PLT
	test	rax, rax
	je	.L3
	mov	rsi, rax
	mov	rdi, r12
	call	rman_is_region_manager@PLT
	test	eax, eax
	jne	.L13
.L3:
	mov	esi, DWORD PTR 12[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r9, r15
	mov	r8, r14
	mov	rcx, r12
	mov	edx, r13d
	mov	edi, ebx
	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
	jmp	bus_generic_adjust_resource@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	rman_get_end@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	rman_get_start@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, eax
	call	chipc_find_region@PLT
	test	rax, rax
	je	.L6
	cmp	r15, r14
	jle	.L6
	cmp	QWORD PTR [rax], r14
	jg	.L6
	cmp	QWORD PTR 8[rax], r15
	jl	.L6
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, 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
	jmp	rman_adjust_resource@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	chipc_adjust_resource, .-chipc_adjust_resource
	.comm	EINVAL,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_chipc.c_chipc_adjust_resource.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chipc_adjust_resource, %function
chipc_adjust_resource:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r7, r1
	mov	r4, r3
	mov	r6, r0
	ldr	r9, [sp, #32]
	ldr	r10, [sp, #36]
	bl	device_get_softc
	mov	r1, r5
	mov	r8, r0
	bl	chipc_get_rman
	subs	r1, r0, #0
	beq	.L3
	mov	r0, r4
	bl	rman_is_region_manager
	cmp	r0, #0
	bne	.L13
.L3:
	mov	r3, r4
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	str	r10, [sp, #36]
	str	r9, [sp, #32]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	bus_generic_adjust_resource
.L13:
	mov	r0, r4
	bl	rman_get_start
	mov	r5, r0
	mov	r0, r4
	bl	rman_get_end
	mov	r1, r5
	mov	r2, r0
	mov	r0, r8
	bl	chipc_find_region
	cmp	r0, #0
	beq	.L6
	cmp	r10, r9
	ble	.L6
	ldr	r3, [r0]
	cmp	r3, r9
	bgt	.L6
	ldr	r3, [r0, #4]
	cmp	r3, r10
	blt	.L6
	mov	r2, r10
	mov	r1, r9
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	rman_adjust_resource
.L6:
	ldr	r3, .L14
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	EINVAL
	.size	chipc_adjust_resource, .-chipc_adjust_resource
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
