	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_error_recovery_qcfg
_bnxt_hwrm_error_recovery_qcfg:         ## @bnxt_hwrm_error_recovery_qcfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movq	16(%rdi), %r15
	movl	$0, -48(%rbp)
	movq	_BNXT_FW_CAP_ERROR_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r12
	movq	_HWRM_ERROR_RECOVERY_QCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_18
LBB0_3:
	movq	%rbx, %r13
	testq	%r14, %r14
	jne	LBB0_8
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	movl	72(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r14)
	movq	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	_BNXT_FW_CAP_KONG_MB_CHNL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_10
LBB0_11:
	movl	68(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 80(%r14)
	movl	64(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 72(%r14)
	movl	60(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 64(%r14)
	movl	56(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 56(%r14)
	movl	52(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 48(%r14)
	movl	48(%r15), %edi
	callq	_le32_to_cpu
	movq	40(%r14), %rcx
	movq	_BNXT_FW_HEALTH_REG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	44(%r15), %edi
	callq	_le32_to_cpu
	movq	40(%r14), %rcx
	movq	_BNXT_FW_HEARTBEAT_REG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	40(%r15), %edi
	callq	_le32_to_cpu
	movq	40(%r14), %rcx
	movq	_BNXT_FW_RESET_CNT_REG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	36(%r15), %edi
	callq	_le32_to_cpu
	movq	40(%r14), %rcx
	movq	_BNXT_FW_RESET_INPROG_REG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	32(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 32(%r14)
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
	cmpl	$15, %eax
	jle	LBB0_12
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%r13, %rdi
	movl	(%rax), %r13d
	callq	_mutex_unlock
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.7:
	negl	%r13d
	jmp	LBB0_17
LBB0_16:
	movq	%r12, %rdi
	callq	_bnxt_map_fw_health_regs
	movl	%eax, %r13d
LBB0_17:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_19
LBB0_18:
	movq	_BNXT_FW_CAP_ERROR_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movl	%r13d, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FW_CAP_ERROR_RECOVERY,4,2 ## @BNXT_FW_CAP_ERROR_RECOVERY
	.comm	_HWRM_ERROR_RECOVERY_QCFG,4,2   ## @HWRM_ERROR_RECOVERY_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ## @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_BNXT_FW_CAP_KONG_MB_CHNL,4,2   ## @BNXT_FW_CAP_KONG_MB_CHNL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNXT_FW_HEALTH_REG,8,3         ## @BNXT_FW_HEALTH_REG
	.comm	_BNXT_FW_HEARTBEAT_REG,8,3      ## @BNXT_FW_HEARTBEAT_REG
	.comm	_BNXT_FW_RESET_CNT_REG,8,3      ## @BNXT_FW_RESET_CNT_REG
	.comm	_BNXT_FW_RESET_INPROG_REG,8,3   ## @BNXT_FW_RESET_INPROG_REG
	.no_dead_strip	_bnxt_hwrm_error_recovery_qcfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_error_recovery_qcfg
_bnxt_hwrm_error_recovery_qcfg:         ; @bnxt_hwrm_error_recovery_qcfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x21, x24, [x0, #8]
	str	wzr, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _BNXT_FW_CAP_ERROR_RECOVERY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNXT_FW_CAP_ERROR_RECOVERY@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _HWRM_ERROR_RECOVERY_QCFG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HWRM_ERROR_RECOVERY_QCFG@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh5:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	__hwrm_send_message
	cbz	w0, LBB0_6
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
LBB0_3:
	ldr	w8, [x23]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	cbnz	x21, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	mov	x21, x0
	str	x0, [x19, #8]
	cbz	x0, LBB0_16
LBB0_8:
	ldr	w0, [x24, #72]
	bl	_le32_to_cpu
	str	w0, [x21]
Lloh11:
	adrp	x8, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _BNXT_FW_CAP_KONG_MB_CHNL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BNXT_FW_CAP_KONG_MB_CHNL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
	ldr	w0, [x24, #68]
	bl	_le32_to_cpu
	str	x0, [x21, #80]
	ldr	w0, [x24, #64]
	bl	_le32_to_cpu
	str	x0, [x21, #72]
	ldr	w0, [x24, #60]
	bl	_le32_to_cpu
	str	x0, [x21, #64]
	ldr	w0, [x24, #56]
	bl	_le32_to_cpu
	str	x0, [x21, #56]
	ldr	w0, [x24, #52]
	bl	_le32_to_cpu
	str	x0, [x21, #48]
	ldr	w0, [x24, #48]
	bl	_le32_to_cpu
	ldr	x8, [x21, #40]
Lloh17:
	adrp	x9, _BNXT_FW_HEALTH_REG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BNXT_FW_HEALTH_REG@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	w0, [x24, #44]
	bl	_le32_to_cpu
	ldr	x8, [x21, #40]
Lloh20:
	adrp	x9, _BNXT_FW_HEARTBEAT_REG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BNXT_FW_HEARTBEAT_REG@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	w0, [x24, #40]
	bl	_le32_to_cpu
	ldr	x8, [x21, #40]
Lloh23:
	adrp	x9, _BNXT_FW_RESET_CNT_REG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BNXT_FW_RESET_CNT_REG@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	w0, [x24, #36]
	bl	_le32_to_cpu
	ldr	x8, [x21, #40]
Lloh26:
	adrp	x9, _BNXT_FW_RESET_INPROG_REG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BNXT_FW_RESET_INPROG_REG@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	w0, [x24, #32]
	bl	_le32_to_cpu
	str	x0, [x21, #32]
	ldr	w8, [x24]
	str	w8, [x21, #4]
	cmp	w8, #15
	b.le	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x22, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]
	lsl	x25, x22, #2
	ldr	w0, [x8, x25]
	bl	_le32_to_cpu
	ldr	x8, [x21, #24]
	lsl	x26, x22, #3
	str	x0, [x8, x26]
	ldr	x8, [x24, #16]
	ldr	w0, [x8, x25]
	bl	_le32_to_cpu
	ldr	x8, [x21, #16]
	str	x0, [x8, x26]
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x25]
	ldr	x9, [x21, #8]
	str	w8, [x9, x25]
	add	x22, x22, #1
	ldrsw	x8, [x21, #4]
	cmp	x22, x8
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_19
LBB0_16:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_19
; %bb.18:
	neg	w22, w21
	cbnz	w22, LBB0_3
	b	LBB0_5
LBB0_19:
	mov	x0, x19
	bl	_bnxt_map_fw_health_regs
	mov	x22, x0
	cbnz	w22, LBB0_3
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FW_CAP_ERROR_RECOVERY,4,2 ; @BNXT_FW_CAP_ERROR_RECOVERY
	.comm	_HWRM_ERROR_RECOVERY_QCFG,4,2   ; @HWRM_ERROR_RECOVERY_QCFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ; @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_BNXT_FW_CAP_KONG_MB_CHNL,4,2   ; @BNXT_FW_CAP_KONG_MB_CHNL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNXT_FW_HEALTH_REG,8,3         ; @BNXT_FW_HEALTH_REG
	.comm	_BNXT_FW_HEARTBEAT_REG,8,3      ; @BNXT_FW_HEARTBEAT_REG
	.comm	_BNXT_FW_RESET_CNT_REG,8,3      ; @BNXT_FW_RESET_CNT_REG
	.comm	_BNXT_FW_RESET_INPROG_REG,8,3   ; @BNXT_FW_RESET_INPROG_REG
	.no_dead_strip	_bnxt_hwrm_error_recovery_qcfg
.subsections_via_symbols
