	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_map_fw_health_regs
_bnxt_map_fw_health_regs:               ## @bnxt_map_fw_health_regs
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_BNXT_FW_HEALTH_REG_TYPE
	movq	_BNXT_FW_HEALTH_REG_TYPE_GRC@GOTPCREL(%rip), %r12
	movl	$-1, %r14d
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movslq	%ebx, %rax
	movq	_BNXT_GRC_BASE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_BNXT_FW_HEALTH_WIN_BASE@GOTPCREL(%rip), %rcx
	movq	_BNXT_GRC_OFFSET_MASK@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	andq	%rax, %rdx
	addq	(%rcx), %rdx
	movq	8(%r15), %rax
	movq	%rdx, (%rax)
	movl	%ebx, %r14d
LBB0_2:
	movq	(%r15), %rax
	movl	4(%rax), %r13d
	movl	%r13d, %edi
	callq	_BNXT_FW_HEALTH_REG_TYPE
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.4:
	movq	_BNXT_GRC_BASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	cmpl	$-1, %r14d
	cmovel	%ebx, %r14d
	cmpl	%r14d, %ebx
	jne	LBB0_17
## %bb.5:
	movslq	%r13d, %rax
	movq	_BNXT_FW_HEALTH_WIN_BASE@GOTPCREL(%rip), %rcx
	movq	_BNXT_GRC_OFFSET_MASK@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	andq	%rax, %rdx
	addq	(%rcx), %rdx
	movq	8(%r15), %rax
	movq	%rdx, 8(%rax)
	jmp	LBB0_6
LBB0_3:
	movl	%r14d, %ebx
LBB0_6:
	movq	(%r15), %rax
	movl	8(%rax), %r13d
	movl	%r13d, %edi
	callq	_BNXT_FW_HEALTH_REG_TYPE
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.8:
	movq	_BNXT_GRC_BASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r13d, %r14d
	cmpl	$-1, %ebx
	cmovel	%r14d, %ebx
	cmpl	%ebx, %r14d
	jne	LBB0_17
## %bb.9:
	movslq	%r13d, %rax
	movq	_BNXT_FW_HEALTH_WIN_BASE@GOTPCREL(%rip), %rcx
	movq	_BNXT_GRC_OFFSET_MASK@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	andq	%rax, %rdx
	addq	(%rcx), %rdx
	movq	8(%r15), %rax
	movq	%rdx, 16(%rax)
	jmp	LBB0_10
LBB0_7:
	movl	%ebx, %r14d
LBB0_10:
	movq	(%r15), %rax
	movl	12(%rax), %ebx
	movl	%ebx, %edi
	callq	_BNXT_FW_HEALTH_REG_TYPE
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.12:
	movq	_BNXT_GRC_BASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	cmpl	$-1, %r14d
	cmovel	%edi, %r14d
	cmpl	%r14d, %edi
	jne	LBB0_17
## %bb.13:
	movslq	%ebx, %rax
	movq	_BNXT_FW_HEALTH_WIN_BASE@GOTPCREL(%rip), %rcx
	movq	_BNXT_GRC_OFFSET_MASK@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	andq	%rax, %rdx
	addq	(%rcx), %rdx
	movq	8(%r15), %rax
	movq	%rdx, 24(%rax)
	jmp	LBB0_14
LBB0_17:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_11:
	movl	%r14d, %edi
LBB0_14:
	xorl	%ebx, %ebx
	cmpl	$-1, %edi
	je	LBB0_16
## %bb.15:
	movq	_BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	_BNXT_FW_HEALTH_WIN_MAP_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FW_HEALTH_REG_TYPE_GRC,8,3 ## @BNXT_FW_HEALTH_REG_TYPE_GRC
	.comm	_BNXT_GRC_BASE_MASK,4,2         ## @BNXT_GRC_BASE_MASK
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_BNXT_FW_HEALTH_WIN_BASE,8,3    ## @BNXT_FW_HEALTH_WIN_BASE
	.comm	_BNXT_GRC_OFFSET_MASK,4,2       ## @BNXT_GRC_OFFSET_MASK
	.comm	_BNXT_GRCPF_REG_WINDOW_BASE_OUT,8,3 ## @BNXT_GRCPF_REG_WINDOW_BASE_OUT
	.comm	_BNXT_FW_HEALTH_WIN_MAP_OFF,8,3 ## @BNXT_FW_HEALTH_WIN_MAP_OFF
	.no_dead_strip	_bnxt_map_fw_health_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_map_fw_health_regs
_bnxt_map_fw_health_regs:               ; @bnxt_map_fw_health_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	ldr	w20, [x8]
	mov	x0, x20
	bl	_BNXT_FW_HEALTH_REG_TYPE
Lloh0:
	adrp	x23, _BNXT_FW_HEALTH_REG_TYPE_GRC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BNXT_FW_HEALTH_REG_TYPE_GRC@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	sxtw	x8, w20
Lloh2:
	adrp	x9, _BNXT_GRC_BASE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BNXT_GRC_BASE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w20, w9, w8
Lloh5:
	adrp	x9, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _BNXT_GRC_OFFSET_MASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BNXT_GRC_OFFSET_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	ldrsw	x10, [x10]
	and	x8, x10, x8
	add	x8, x9, x8
	ldr	x9, [x22, #8]
	str	x8, [x9]
	b	LBB0_3
LBB0_2:
	mov	w20, #-1
LBB0_3:
	ldr	x8, [x22]
	ldr	w21, [x8, #4]
	mov	x0, x21
	bl	_BNXT_FW_HEALTH_REG_TYPE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _BNXT_GRC_BASE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNXT_GRC_BASE_MASK@GOTPAGEOFF]
	sxtw	x9, w21
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w9
	cmn	w20, #1
	csel	w10, w8, w20, eq
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.5:
Lloh14:
	adrp	x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	adrp	x11, _BNXT_GRC_OFFSET_MASK@GOTPAGE
Lloh18:
	ldr	x11, [x11, _BNXT_GRC_OFFSET_MASK@GOTPAGEOFF]
Lloh19:
	ldrsw	x11, [x11]
	and	x9, x11, x9
	add	x9, x10, x9
	ldr	x10, [x22, #8]
	str	x9, [x10, #8]
	mov	x20, x8
LBB0_6:
	ldr	x8, [x22]
	ldr	w21, [x8, #8]
	mov	x0, x21
	bl	_BNXT_FW_HEALTH_REG_TYPE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:
Lloh20:
	adrp	x8, _BNXT_GRC_BASE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BNXT_GRC_BASE_MASK@GOTPAGEOFF]
	sxtw	x9, w21
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w9
	cmn	w20, #1
	csel	w10, w8, w20, eq
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.8:
Lloh23:
	adrp	x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
Lloh26:
	adrp	x11, _BNXT_GRC_OFFSET_MASK@GOTPAGE
Lloh27:
	ldr	x11, [x11, _BNXT_GRC_OFFSET_MASK@GOTPAGEOFF]
Lloh28:
	ldrsw	x11, [x11]
	and	x9, x11, x9
	add	x9, x10, x9
	ldr	x10, [x22, #8]
	str	x9, [x10, #16]
	mov	x20, x8
LBB0_9:
	ldr	x8, [x22]
	ldr	w21, [x8, #12]
	mov	x0, x21
	bl	_BNXT_FW_HEALTH_REG_TYPE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:
Lloh29:
	adrp	x8, _BNXT_GRC_BASE_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BNXT_GRC_BASE_MASK@GOTPAGEOFF]
	sxtw	x9, w21
Lloh31:
	ldr	w8, [x8]
	and	w8, w8, w9
	cmn	w20, #1
	csel	w10, w8, w20, eq
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.11:
Lloh32:
	adrp	x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BNXT_FW_HEALTH_WIN_BASE@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
Lloh35:
	adrp	x11, _BNXT_GRC_OFFSET_MASK@GOTPAGE
Lloh36:
	ldr	x11, [x11, _BNXT_GRC_OFFSET_MASK@GOTPAGEOFF]
Lloh37:
	ldrsw	x11, [x11]
	and	x9, x11, x9
	add	x9, x10, x9
	ldr	x10, [x22, #8]
	str	x9, [x10, #24]
	mov	x20, x8
LBB0_12:
	cmn	w20, #1
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19]
Lloh38:
	adrp	x9, _BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BNXT_GRCPF_REG_WINDOW_BASE_OUT@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
Lloh41:
	adrp	x10, _BNXT_FW_HEALTH_WIN_MAP_OFF@GOTPAGE
Lloh42:
	ldr	x10, [x10, _BNXT_FW_HEALTH_WIN_MAP_OFF@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	x0, x20
	bl	_writel
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh44:
	adrp	x8, _ERANGE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FW_HEALTH_REG_TYPE_GRC,8,3 ; @BNXT_FW_HEALTH_REG_TYPE_GRC
	.comm	_BNXT_GRC_BASE_MASK,4,2         ; @BNXT_GRC_BASE_MASK
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_BNXT_FW_HEALTH_WIN_BASE,8,3    ; @BNXT_FW_HEALTH_WIN_BASE
	.comm	_BNXT_GRC_OFFSET_MASK,4,2       ; @BNXT_GRC_OFFSET_MASK
	.comm	_BNXT_GRCPF_REG_WINDOW_BASE_OUT,8,3 ; @BNXT_GRCPF_REG_WINDOW_BASE_OUT
	.comm	_BNXT_FW_HEALTH_WIN_MAP_OFF,8,3 ; @BNXT_FW_HEALTH_WIN_MAP_OFF
	.no_dead_strip	_bnxt_map_fw_health_regs
.subsections_via_symbols
