	.file	"extr_chip.c_usb6fire_chip_destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usb6fire_chip_destroy, @function
usb6fire_chip_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L13
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cmp	QWORD PTR 32[rdi], 0
	mov	rbx, rdi
	jne	.L17
	cmp	QWORD PTR 24[rbx], 0
	jne	.L18
.L5:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L19
.L6:
	cmp	QWORD PTR 8[rbx], 0
	jne	.L20
.L7:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L21
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	snd_card_free@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, rbx
	call	usb6fire_control_destroy@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbx
	call	usb6fire_comm_destroy@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L7
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbx
	call	usb6fire_midi_destroy@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L6
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	call	usb6fire_pcm_destroy@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L5
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE0:
	.size	usb6fire_chip_destroy, .-usb6fire_chip_destroy
	.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_chip.c_usb6fire_chip_destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb6fire_chip_destroy, %function
usb6fire_chip_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L27
.L5:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L28
.L6:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L29
.L7:
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, pc}
	pop	{r4, lr}
	b	snd_card_free
.L29:
	mov	r0, r4
	bl	usb6fire_control_destroy
	b	.L7
.L28:
	mov	r0, r4
	bl	usb6fire_comm_destroy
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	b	.L29
.L27:
	mov	r0, r4
	bl	usb6fire_midi_destroy
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L6
	b	.L28
.L26:
	bl	usb6fire_pcm_destroy
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L5
	b	.L27
	.size	usb6fire_chip_destroy, .-usb6fire_chip_destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
