	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_force_fw_reset
_bnxt_force_fw_reset:                   ## @bnxt_force_fw_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %r15
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_BNXT_STATE_IN_FW_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_bnxt_fw_reset_close
	movl	(%r15), %ecx
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.3:
	movq	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, 4(%r15)
	cmovel	%ecx, %eax
	movq	_BNXT_FW_RESET_STATE_RESET_FW@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%r14)
	movl	8(%r15), %eax
	movq	_BNXT_FW_RESET_STATE_ENABLE_DEV@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	movl	16(%r15), %ecx
	movl	%ecx, 4(%r14)
	movl	12(%r15), %ecx
	movl	%ecx, (%r14)
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltq
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_queue_fw_reset_work       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ## @BNXT_STATE_IN_FW_RESET
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ## @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_BNXT_FW_RESET_STATE_RESET_FW,4,2 ## @BNXT_FW_RESET_STATE_RESET_FW
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_BNXT_FW_RESET_STATE_ENABLE_DEV,4,2 ## @BNXT_FW_RESET_STATE_ENABLE_DEV
	.no_dead_strip	_bnxt_force_fw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_force_fw_reset
_bnxt_force_fw_reset:                   ; @bnxt_force_fw_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #32]
Lloh0:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #24
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x22, _BNXT_STATE_IN_FW_RESET@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BNXT_STATE_IN_FW_RESET@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_fw_reset_close
	ldr	w9, [x21]
	ldr	x10, [x21, #24]
Lloh5:
	adrp	x8, _HZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	cbz	x10, LBB0_5
; %bb.4:
Lloh7:
	adrp	x10, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU@GOTPAGEOFF]
	ldr	w11, [x21, #4]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w11
	csel	w9, w9, wzr, eq
Lloh10:
	adrp	x10, _BNXT_FW_RESET_STATE_RESET_FW@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BNXT_FW_RESET_STATE_RESET_FW@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x10, _jiffies@GOTPAGE
Lloh13:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	w11, [x8]
	mul	w9, w11, w9
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w11
	add	x9, x10, w9, sxtw
	str	x9, [x19, #16]
	ldr	w9, [x21, #8]
Lloh15:
	adrp	x10, _BNXT_FW_RESET_STATE_ENABLE_DEV@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BNXT_FW_RESET_STATE_ENABLE_DEV@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	str	w10, [x19, #8]
	ldur	d0, [x21, #12]
	str	d0, [x19]
	ldr	w8, [x8]
	mul	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnxt_queue_fw_reset_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ; @BNXT_STATE_IN_FW_RESET
	.comm	_ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU,4,2 ; @ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU
	.comm	_BNXT_FW_RESET_STATE_RESET_FW,4,2 ; @BNXT_FW_RESET_STATE_RESET_FW
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_BNXT_FW_RESET_STATE_ENABLE_DEV,4,2 ; @BNXT_FW_RESET_STATE_ENABLE_DEV
	.no_dead_strip	_bnxt_force_fw_reset
.subsections_via_symbols
