	.file	"extr_ichsmb.c_ichsmb_release_resources.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ichsmb_release_resources
	.type	ichsmb_release_resources, @function
ichsmb_release_resources:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR 32[rdi]
	mov	ebp, DWORD PTR 40[rdi]
	mov	rcx, QWORD PTR 16[rdi]
	test	rdx, rdx
	je	.L2
	mov	rsi, rcx
	mov	edi, ebp
	call	bus_teardown_intr@PLT
	mov	QWORD PTR 32[rbx], 0
	mov	rcx, QWORD PTR 16[rbx]
.L2:
	test	rcx, rcx
	je	.L3
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	mov	edi, ebp
	call	bus_release_resource@PLT
	mov	QWORD PTR 16[rbx], 0
.L3:
	mov	rcx, QWORD PTR [rbx]
	test	rcx, rcx
	je	.L1
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR SYS_RES_IOPORT[rip]
	mov	edi, ebp
	call	bus_release_resource@PLT
	mov	QWORD PTR [rbx], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ichsmb_release_resources, .-ichsmb_release_resources
	.comm	SYS_RES_IRQ,4,4
	.comm	SYS_RES_IOPORT,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_ichsmb.c_ichsmb_release_resources.c"
	.text
	.align	2
	.global	ichsmb_release_resources
	.syntax unified
	.arm
	.fpu softvfp
	.type	ichsmb_release_resources, %function
ichsmb_release_resources:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #16]
	push	{r4, r5, r6, lr}
	cmp	r2, #0
	mov	r4, r0
	ldr	r5, [r0, #20]
	ldr	r3, [r0, #8]
	beq	.L2
	mov	r1, r3
	mov	r0, r5
	bl	bus_teardown_intr
	mov	r2, #0
	ldr	r3, [r4, #8]
	str	r2, [r4, #16]
.L2:
	cmp	r3, #0
	beq	.L3
	ldr	r2, .L16
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r2, [r4, #12]
	bl	bus_release_resource
	mov	r3, #0
	str	r3, [r4, #8]
.L3:
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, .L16+4
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	bl	bus_release_resource
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	SYS_RES_IRQ
	.word	SYS_RES_IOPORT
	.size	ichsmb_release_resources, .-ichsmb_release_resources
	.comm	SYS_RES_IRQ,4,4
	.comm	SYS_RES_IOPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
