	.file	"extr_bhndb.c_bhndb_teardown_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s requested teardown of invalid cookiep %p"
	.text
	.p2align 4
	.type	bhndb_teardown_intr, @function
bhndb_teardown_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	device_get_softc@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	BHNDB_LOCK@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r13
	call	bhndb_find_intr_handler@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
.L2:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r12
	call	bhndb_deregister_intr_handler@PLT
	mov	rdi, rbp
	call	BHNDB_UNLOCK@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edx, DWORD PTR [r12]
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	bus_teardown_intr@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, r12
	call	bhndb_free_intr_handler@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	BHNDB_LOCK@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r12
	call	bhndb_register_intr_handler@PLT
	mov	rdi, rbp
	call	BHNDB_UNLOCK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, r14d
	call	device_get_nameunit@PLT
	mov	rdx, r13
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	panic@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	bhndb_teardown_intr, .-bhndb_teardown_intr
	.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_bhndb.c_bhndb_teardown_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s requested teardown of invalid cookiep %p\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhndb_teardown_intr, %function
bhndb_teardown_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r3
	mov	r7, r1
	bl	device_get_softc
	mov	r5, r0
	bl	BHNDB_LOCK
	mov	r1, r6
	ldr	r0, [r5]
	bl	bhndb_find_intr_handler
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r1, r4
	ldr	r0, [r5]
	bl	bhndb_deregister_intr_handler
	mov	r0, r5
	bl	BHNDB_UNLOCK
	ldm	r4, {r2, r3}
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	bl	bus_teardown_intr
	subs	r6, r0, #0
	bne	.L8
	mov	r0, r4
	bl	bhndb_free_intr_handler
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r5
	bl	BHNDB_LOCK
	mov	r1, r4
	ldr	r0, [r5]
	bl	bhndb_register_intr_handler
	mov	r0, r5
	bl	BHNDB_UNLOCK
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r7
	bl	device_get_nameunit
	mov	r2, r6
	mov	r1, r0
	ldr	r0, .L9
	bl	panic
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	bhndb_teardown_intr, .-bhndb_teardown_intr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
