	.file	"extr_bfad_bsg.c_bfad_iocmd_debug_ctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfad_iocmd_debug_ctl
	.type	bfad_iocmd_debug_ctl, @function
bfad_iocmd_debug_ctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR IOCMD_DEBUG_FW_STATE_CLR[rip], edx
	je	.L8
	cmp	DWORD PTR IOCMD_DEBUG_PORTLOG_CLR[rip], edx
	je	.L9
	cmp	DWORD PTR IOCMD_DEBUG_START_DTRC[rip], edx
	je	.L10
	cmp	DWORD PTR IOCMD_DEBUG_STOP_DTRC[rip], edx
	je	.L11
.L3:
	mov	eax, DWORD PTR BFA_STATUS_OK[rip]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR 8[rdi], 0
	mov	QWORD PTR 16[rdi], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	lea	r12, 24[rdi]
	xor	r13d, r13d
	mov	rsi, r13
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR BFA_TRUE[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	DWORD PTR 28[rbx], eax
	call	spin_unlock_irqrestore@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [rdi]
	call	bfa_trc_init@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR [rdi]
	call	bfa_trc_stop@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bfad_iocmd_debug_ctl, .-bfad_iocmd_debug_ctl
	.comm	IOCMD_DEBUG_STOP_DTRC,4,4
	.comm	IOCMD_DEBUG_START_DTRC,4,4
	.comm	IOCMD_DEBUG_PORTLOG_CLR,4,4
	.comm	IOCMD_DEBUG_FW_STATE_CLR,4,4
	.comm	BFA_TRUE,4,4
	.comm	BFA_STATUS_OK,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_bfad_bsg.c_bfad_iocmd_debug_ctl.c"
	.text
	.align	2
	.global	bfad_iocmd_debug_ctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_iocmd_debug_ctl, %function
bfad_iocmd_debug_ctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r2
	mov	r5, r1
	beq	.L8
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, r2
	moveq	r3, #0
	streq	r3, [r0, #4]
	streq	r3, [r0, #8]
	beq	.L3
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L9
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L10
.L3:
	ldr	r3, .L11+16
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r7, #0
	add	r6, r0, #12
	mov	r1, r7
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r3, .L11+20
	mov	r1, r7
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r4, #16]
	bl	spin_unlock_irqrestore
	b	.L3
.L9:
	ldr	r0, [r0]
	bl	bfa_trc_init
	b	.L3
.L10:
	ldr	r0, [r0]
	bl	bfa_trc_stop
	b	.L3
.L12:
	.align	2
.L11:
	.word	IOCMD_DEBUG_FW_STATE_CLR
	.word	IOCMD_DEBUG_PORTLOG_CLR
	.word	IOCMD_DEBUG_START_DTRC
	.word	IOCMD_DEBUG_STOP_DTRC
	.word	BFA_STATUS_OK
	.word	BFA_TRUE
	.size	bfad_iocmd_debug_ctl, .-bfad_iocmd_debug_ctl
	.comm	IOCMD_DEBUG_STOP_DTRC,4,4
	.comm	IOCMD_DEBUG_START_DTRC,4,4
	.comm	IOCMD_DEBUG_PORTLOG_CLR,4,4
	.comm	IOCMD_DEBUG_FW_STATE_CLR,4,4
	.comm	BFA_TRUE,4,4
	.comm	BFA_STATUS_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
