	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_shmem
_bnx2x_init_shmem:                      ## @bnx2x_init_shmem
	.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, %r14
	movl	$-1, %ebx
	movq	_MISC_REG_SHARED_MEM_ADDR@GOTPCREL(%rip), %r15
	movq	_MCP_ONE_TIMEOUT@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_bnx2x_mcp_wait_one
	movq	_MCP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	(%r13)
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_validity_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_BP_PORT
	movl	(%r12,%rax,4), %esi
	movq	%r14, %rdi
	callq	_SHMEM_RD
	movq	_SHR_MEM_VALIDITY_MB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_REG_SHARED_MEM_ADDR,4,2   ## @MISC_REG_SHARED_MEM_ADDR
	.comm	_validity_map,8,3               ## @validity_map
	.comm	_SHR_MEM_VALIDITY_MB,4,2        ## @SHR_MEM_VALIDITY_MB
	.comm	_MCP_TIMEOUT,4,2                ## @MCP_TIMEOUT
	.comm	_MCP_ONE_TIMEOUT,4,2            ## @MCP_ONE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAD MCP validity signature\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_bnx2x_init_shmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_shmem
_bnx2x_init_shmem:                      ; @bnx2x_init_shmem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w20, #-1
Lloh0:
	adrp	x21, _MISC_REG_SHARED_MEM_ADDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MISC_REG_SHARED_MEM_ADDR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MCP_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MCP_TIMEOUT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MCP_ONE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MCP_ONE_TIMEOUT@GOTPAGEOFF]
Lloh6:
	adrp	x24, _validity_map@GOTPAGE
Lloh7:
	ldr	x24, [x24, _validity_map@GOTPAGEOFF]
Lloh8:
	adrp	x25, _SHR_MEM_VALIDITY_MB@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SHR_MEM_VALIDITY_MB@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_mcp_wait_one
	ldr	w8, [x22]
	ldr	w9, [x23]
	sdiv	w8, w8, w9
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_RD
	str	x0, [x19]
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x24]
	mov	x0, x19
	bl	_BP_PORT
	ldr	w1, [x26, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_REG_SHARED_MEM_ADDR,4,2   ; @MISC_REG_SHARED_MEM_ADDR
	.comm	_validity_map,8,3               ; @validity_map
	.comm	_SHR_MEM_VALIDITY_MB,4,2        ; @SHR_MEM_VALIDITY_MB
	.comm	_MCP_TIMEOUT,4,2                ; @MCP_TIMEOUT
	.comm	_MCP_ONE_TIMEOUT,4,2            ; @MCP_ONE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAD MCP validity signature\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_bnx2x_init_shmem
.subsections_via_symbols
