	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_fw_reset_writel
_bnxt_fw_reset_writel:                  ## @bnxt_fw_reset_writel
	.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	%rdi, %r12
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	movslq	%esi, %rdx
	movl	(%rcx,%rdx,4), %r13d
	movq	8(%rax), %rcx
	movl	(%rcx,%rdx,4), %r15d
	movl	%r15d, -44(%rbp)
	movq	16(%rax), %rax
	movl	(%rax,%rdx,4), %r14d
	movl	%r13d, %edi
	callq	_BNXT_FW_HEALTH_REG_TYPE
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_BNXT_FW_HEALTH_REG_OFF
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_7
## %bb.1:
	movl	%eax, %r13d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_BNXT_GRC_BASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	movl	(%r12), %eax
	movq	_BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %esi
	addl	$4, %esi
	callq	_writel
	movq	_BNXT_GRC_OFFSET_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	addl	$8192, %r13d                    ## imm = 0x2000
LBB0_4:
	addl	(%r12), %r13d
	jmp	LBB0_6
LBB0_2:
	movl	8(%r12), %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_pci_write_config_dword
	jmp	LBB0_7
LBB0_5:
	addl	4(%r12), %r13d
LBB0_6:
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_writel
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movl	8(%r12), %edi
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_pci_read_config_dword
	movl	%r14d, %edi
	callq	_msleep
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_BNXT_GRC_BASE_MASK,4,2         ## @BNXT_GRC_BASE_MASK
	.comm	_BNXT_GRCPF_REG_WINDOW_BASE_OUT,4,2 ## @BNXT_GRCPF_REG_WINDOW_BASE_OUT
	.comm	_BNXT_GRC_OFFSET_MASK,4,2       ## @BNXT_GRC_OFFSET_MASK
	.no_dead_strip	_bnxt_fw_reset_writel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_fw_reset_writel
_bnxt_fw_reset_writel:                  ; @bnxt_fw_reset_writel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	sbfiz	x9, x1, #2, #32
	ldp	x10, x11, [x8]
	ldr	w22, [x10, x9]
	ldr	w21, [x11, x9]
	str	w21, [sp, #12]
	ldr	x8, [x8, #16]
	ldr	w20, [x8, x9]
	mov	x0, x22
	bl	_BNXT_FW_HEALTH_REG_TYPE
	mov	x23, x0
	mov	x0, x22
	bl	_BNXT_FW_HEALTH_REG_OFF
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _BNXT_GRC_BASE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNXT_GRC_BASE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w0, w8, w22
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w1, w8, #4
	bl	_writel
Lloh8:
	adrp	x8, _BNXT_GRC_OFFSET_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNXT_GRC_OFFSET_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w22
	add	w22, w8, #2, lsl #12            ; =8192
LBB0_3:
	ldr	w8, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_pci_write_config_dword
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #4]
LBB0_6:
	add	w1, w8, w22
	mov	x0, x21
	bl	_writel
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	add	x2, sp, #12
	mov	w1, #0
	bl	_pci_read_config_dword
	mov	x0, x20
	bl	_msleep
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_BNXT_GRC_BASE_MASK,4,2         ; @BNXT_GRC_BASE_MASK
	.comm	_BNXT_GRCPF_REG_WINDOW_BASE_OUT,4,2 ; @BNXT_GRCPF_REG_WINDOW_BASE_OUT
	.comm	_BNXT_GRC_OFFSET_MASK,4,2       ; @BNXT_GRC_OFFSET_MASK
	.no_dead_strip	_bnxt_fw_reset_writel
.subsections_via_symbols
