	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_rv2p_fw
_load_rv2p_fw:                          ## @load_rv2p_fw
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	12(%rdx), %edi
	callq	_be32_to_cpu
	movq	%rax, %r15
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movq	%rax, %rdx
	movq	(%r13), %rax
	movq	(%rax), %r12
	addq	%rdx, %r12
	movq	_RV2P_PROC1@GOTPCREL(%rip), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, (%rax)
	movq	_BNX2_RV2P_PROC2_ADDR_CMD@GOTPCREL(%rip), %rax
	cmoveq	_BNX2_RV2P_PROC1_ADDR_CMD@GOTPCREL(%rip), %rax
	movq	_BNX2_RV2P_PROC2_ADDR_CMD_RDWR@GOTPCREL(%rip), %rcx
	cmoveq	_BNX2_RV2P_PROC1_ADDR_CMD_RDWR@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	jle	LBB0_4
## %bb.1:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BNX2_RV2P_INSTR_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_BNX2_WR
	movq	_BNX2_RV2P_INSTR_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	4(%r12), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_BNX2_WR
	addq	$8, %r12
	movq	%rbx, %rdx
	shrq	$3, %rdx
	orq	%r14, %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BNX2_WR
	addq	$8, %rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_2
## %bb.3:
	movq	(%r13), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	addq	(%rax), %r12
LBB0_4:
	xorl	%r14d, %r14d
	movq	_BNX2_RV2P_INSTR_LOW@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	$8, %r14
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	callq	_be32_to_cpu
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	leaq	(,%rax,4), %rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%r12,%r15,4), %edi
	callq	_be32_to_cpu
	movq	_BNX2_RV2P_INSTR_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_BNX2_WR
	movl	(%r12,%r15,4), %edi
	callq	_be32_to_cpu
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_rv2p_fw_fixup
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_BNX2_WR
	movq	%r15, %rdx
	shrq	$63, %rdx
	addq	%r15, %rdx
	sarq	%rdx
	orq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BNX2_WR
	jmp	LBB0_8
LBB0_9:
	movq	_BNX2_RV2P_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_RV2P_PROC1@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.11:
	movq	_BNX2_RV2P_COMMAND_PROC1_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_BNX2_RV2P_COMMAND_PROC2_RESET@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_BNX2_WR
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RV2P_PROC1,8,3                 ## @RV2P_PROC1
	.comm	_BNX2_RV2P_PROC1_ADDR_CMD_RDWR,8,3 ## @BNX2_RV2P_PROC1_ADDR_CMD_RDWR
	.comm	_BNX2_RV2P_PROC1_ADDR_CMD,8,3   ## @BNX2_RV2P_PROC1_ADDR_CMD
	.comm	_BNX2_RV2P_PROC2_ADDR_CMD_RDWR,8,3 ## @BNX2_RV2P_PROC2_ADDR_CMD_RDWR
	.comm	_BNX2_RV2P_PROC2_ADDR_CMD,8,3   ## @BNX2_RV2P_PROC2_ADDR_CMD
	.comm	_BNX2_RV2P_INSTR_HIGH,8,3       ## @BNX2_RV2P_INSTR_HIGH
	.comm	_BNX2_RV2P_INSTR_LOW,8,3        ## @BNX2_RV2P_INSTR_LOW
	.comm	_BNX2_RV2P_COMMAND,8,3          ## @BNX2_RV2P_COMMAND
	.comm	_BNX2_RV2P_COMMAND_PROC1_RESET,8,3 ## @BNX2_RV2P_COMMAND_PROC1_RESET
	.comm	_BNX2_RV2P_COMMAND_PROC2_RESET,8,3 ## @BNX2_RV2P_COMMAND_PROC2_RESET
	.no_dead_strip	_load_rv2p_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_rv2p_fw
_load_rv2p_fw:                          ; @load_rv2p_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x26, x1
	mov	x19, x0
	ldr	w0, [x2, #12]
	bl	_be32_to_cpu
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x27, x8, x0
Lloh0:
	adrp	x8, _RV2P_PROC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RV2P_PROC1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BNX2_RV2P_PROC1_ADDR_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_RV2P_PROC1_ADDR_CMD@GOTPAGEOFF]
Lloh5:
	adrp	x10, _BNX2_RV2P_PROC2_ADDR_CMD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BNX2_RV2P_PROC2_ADDR_CMD@GOTPAGEOFF]
	cmp	x8, x26
	csel	x8, x9, x10, eq
	ldr	x23, [x8]
Lloh7:
	adrp	x8, _BNX2_RV2P_PROC1_ADDR_CMD_RDWR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2_RV2P_PROC1_ADDR_CMD_RDWR@GOTPAGEOFF]
Lloh9:
	adrp	x9, _BNX2_RV2P_PROC2_ADDR_CMD_RDWR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BNX2_RV2P_PROC2_ADDR_CMD_RDWR@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x28, [x8]
Lloh11:
	adrp	x20, _BNX2_RV2P_INSTR_LOW@GOTPAGE
Lloh12:
	ldr	x20, [x20, _BNX2_RV2P_INSTR_LOW@GOTPAGEOFF]
	cmp	x22, #1
	b.lt	LBB0_4
; %bb.1:
	stp	x0, x26, [sp, #8]               ; 16-byte Folded Spill
	mov	x24, #0
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x27, x26
Lloh13:
	adrp	x8, _BNX2_RV2P_INSTR_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2_RV2P_INSTR_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	x25, [x8]
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_BNX2_WR
Lloh16:
	adrp	x8, _BNX2_RV2P_INSTR_LOW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNX2_RV2P_INSTR_LOW@GOTPAGEOFF]
Lloh18:
	ldr	x25, [x8]
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_BNX2_WR
	orr	x2, x28, x24
	mov	x0, x19
	mov	x1, x23
	bl	_BNX2_WR
	add	x26, x26, #8
	add	x24, x24, #1
	cmp	x22, x26
	b.gt	LBB0_2
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	x9, x26, [sp, #8]               ; 16-byte Folded Reload
	add	x27, x8, x9
Lloh19:
	adrp	x20, _BNX2_RV2P_INSTR_LOW@GOTPAGE
Lloh20:
	ldr	x20, [x20, _BNX2_RV2P_INSTR_LOW@GOTPAGEOFF]
LBB0_4:
	mov	x24, #0
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	cmp	x24, #8
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x24, lsl #2]
	bl	_be32_to_cpu
	lsl	x8, x0, #2
	cmp	x0, #0
	ccmp	x8, x22, #0, ne
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	mov	x22, x28
	mov	x28, x23
	mov	x23, x21
	mov	x21, x26
	mov	x26, x20
	add	x20, x27, x0, lsl #2
	ldur	w0, [x20, #-4]
	bl	_be32_to_cpu
	mov	x2, x0
Lloh21:
	adrp	x8, _BNX2_RV2P_INSTR_HIGH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BNX2_RV2P_INSTR_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_BNX2_WR
	ldr	w0, [x20]
	mov	x20, x26
	mov	x26, x21
	mov	x21, x23
	mov	x23, x28
	mov	x28, x22
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	bl	_be32_to_cpu
	mov	x3, x0
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_rv2p_fw_fixup
	mov	x2, x0
	ldr	x1, [x20]
	mov	x0, x19
	bl	_BNX2_WR
	cmp	x25, #0
	cinc	x8, x25, lt
	orr	x2, x28, x8, asr #1
	mov	x0, x19
	mov	x1, x23
	bl	_BNX2_WR
	b	LBB0_5
LBB0_8:
Lloh24:
	adrp	x8, _RV2P_PROC1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RV2P_PROC1@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _BNX2_RV2P_COMMAND@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BNX2_RV2P_COMMAND@GOTPAGEOFF]
Lloh29:
	adrp	x10, _BNX2_RV2P_COMMAND_PROC1_RESET@GOTPAGE
Lloh30:
	ldr	x10, [x10, _BNX2_RV2P_COMMAND_PROC1_RESET@GOTPAGEOFF]
Lloh31:
	ldr	x1, [x9]
Lloh32:
	adrp	x9, _BNX2_RV2P_COMMAND_PROC2_RESET@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BNX2_RV2P_COMMAND_PROC2_RESET@GOTPAGEOFF]
	cmp	x8, x26
	csel	x8, x10, x9, eq
	ldr	x2, [x8]
	mov	x0, x19
	bl	_BNX2_WR
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RV2P_PROC1,8,3                 ; @RV2P_PROC1
	.comm	_BNX2_RV2P_PROC1_ADDR_CMD_RDWR,8,3 ; @BNX2_RV2P_PROC1_ADDR_CMD_RDWR
	.comm	_BNX2_RV2P_PROC1_ADDR_CMD,8,3   ; @BNX2_RV2P_PROC1_ADDR_CMD
	.comm	_BNX2_RV2P_PROC2_ADDR_CMD_RDWR,8,3 ; @BNX2_RV2P_PROC2_ADDR_CMD_RDWR
	.comm	_BNX2_RV2P_PROC2_ADDR_CMD,8,3   ; @BNX2_RV2P_PROC2_ADDR_CMD
	.comm	_BNX2_RV2P_INSTR_HIGH,8,3       ; @BNX2_RV2P_INSTR_HIGH
	.comm	_BNX2_RV2P_INSTR_LOW,8,3        ; @BNX2_RV2P_INSTR_LOW
	.comm	_BNX2_RV2P_COMMAND,8,3          ; @BNX2_RV2P_COMMAND
	.comm	_BNX2_RV2P_COMMAND_PROC1_RESET,8,3 ; @BNX2_RV2P_COMMAND_PROC1_RESET
	.comm	_BNX2_RV2P_COMMAND_PROC2_RESET,8,3 ; @BNX2_RV2P_COMMAND_PROC2_RESET
	.no_dead_strip	_load_rv2p_fw
.subsections_via_symbols
