	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_reset_all
_bnxt_reset_all:                        ## @bnxt_reset_all
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	(%r14), %eax
	movq	_ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 4(%r14)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bnxt_fw_reset_writel
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_3
	jmp	LBB0_7
LBB0_4:
	movq	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	movq	_HWRM_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	8(%r15), %edi
	callq	_cpu_to_le64
	movl	%eax, -36(%rbp)
	movq	_FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_FW_RESET_REQ_FLAGS_RESET_GRACEFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$20, %edx
	callq	_hwrm_send_message
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_warn
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST,4,2 ## @ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ## @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_HWRM_FW_RESET,4,2              ## @HWRM_FW_RESET
	.comm	_FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP,4,2 ## @FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP
	.comm	_FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP,4,2 ## @FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP
	.comm	_FW_RESET_REQ_FLAGS_RESET_GRACEFUL,4,2 ## @FW_RESET_REQ_FLAGS_RESET_GRACEFUL
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to reset FW rc=%d\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_bnxt_reset_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_reset_all
_bnxt_reset_all:                        ; @bnxt_reset_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_fw_reset_writel
	add	w20, w20, #1
	ldr	w8, [x21, #4]
	cmp	w20, w8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #24]
Lloh6:
	adrp	x8, _HWRM_FW_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_FW_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	w0, [x19, #8]
	bl	_cpu_to_le64
Lloh9:
	adrp	x8, _FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
Lloh12:
	adrp	x8, _FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FW_RESET_REQ_FLAGS_RESET_GRACEFUL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_RESET_REQ_FLAGS_RESET_GRACEFUL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
Lloh18:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #20
	bl	_hwrm_send_message
	cbz	w0, LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_7:
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST,4,2 ; @ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ; @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_HWRM_FW_RESET,4,2              ; @HWRM_FW_RESET
	.comm	_FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP,4,2 ; @FW_RESET_REQ_EMBEDDED_PROC_TYPE_CHIP
	.comm	_FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP,4,2 ; @FW_RESET_REQ_SELFRST_STATUS_SELFRSTASAP
	.comm	_FW_RESET_REQ_FLAGS_RESET_GRACEFUL,4,2 ; @FW_RESET_REQ_FLAGS_RESET_GRACEFUL
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to reset FW rc=%d\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_bnxt_reset_all
.subsections_via_symbols
