	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_sample_bulletin          ## -- Begin function bnx2x_sample_bulletin
	.p2align	4, 0x90
_bnx2x_sample_bulletin:                 ## @bnx2x_sample_bulletin
	.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	_BULLETIN_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	leaq	80(%r12), %r14
	leaq	96(%r12), %r15
	leaq	L_.str(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	136(%r12), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_bnx2x_crc_vf_bulletin
	movq	96(%r12), %rsi
	cmpq	%rax, %rsi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	incl	%ebx
	movq	_BULLETIN_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_8:
	movq	(%r12), %rax
	cmpq	104(%r12), %rax
	jne	LBB0_10
## %bb.9:
	movq	_PFVF_BULLETIN_UNCHANGED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_4:
	movq	_BULLETIN_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	movq	_PFVF_BULLETIN_CRC_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_10:
	movl	112(%r12), %eax
	movq	_MAC_ADDR_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_13
## %bb.11:
	movq	128(%r12), %rdi
	movl	8(%r12), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	72(%r12), %rax
	movq	128(%r12), %rsi
	movq	(%rax), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_13:
	leaq	96(%r12), %r14
	movl	112(%r12), %eax
	movq	_LINK_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_23
## %bb.14:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	116(%r12), %ecx
	movl	120(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movl	116(%r12), %eax
	movl	120(%r12), %ecx
	leaq	56(%r12), %r15
	movl	%ecx, 64(%r12)
	movq	$0, 56(%r12)
	movq	_VFPF_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_BNX2X_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movl	116(%r12), %eax
LBB0_16:
	movq	_VFPF_LINK_REPORT_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_BNX2X_LINK_REPORT_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movl	116(%r12), %eax
LBB0_18:
	movq	_VFPF_LINK_REPORT_RX_FC_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movq	_BNX2X_LINK_REPORT_RX_FC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movl	116(%r12), %eax
LBB0_20:
	movq	_VFPF_LINK_REPORT_TX_FC_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.21:
	movq	_BNX2X_LINK_REPORT_TX_FC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	___set_bit
LBB0_22:
	movq	%r12, %rdi
	callq	___bnx2x_link_report
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_memcpy
	movq	_PFVF_BULLETIN_UPDATED@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BULLETIN_ATTEMPTS,4,2          ## @BULLETIN_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad crc on bulletin board. Contained %x computed %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"pf to vf bulletin board crc was wrong %d consecutive times. Aborting\n"

	.comm	_PFVF_BULLETIN_CRC_ERR,4,2      ## @PFVF_BULLETIN_CRC_ERR
	.comm	_PFVF_BULLETIN_UNCHANGED,4,2    ## @PFVF_BULLETIN_UNCHANGED
	.comm	_MAC_ADDR_VALID,4,2             ## @MAC_ADDR_VALID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_LINK_VALID,4,2                 ## @LINK_VALID
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
L_.str.2:                               ## @.str.2
	.asciz	"link update speed %d flags %x\n"

	.comm	_VFPF_LINK_REPORT_LINK_DOWN,4,2 ## @VFPF_LINK_REPORT_LINK_DOWN
	.comm	_BNX2X_LINK_REPORT_LINK_DOWN,4,2 ## @BNX2X_LINK_REPORT_LINK_DOWN
	.comm	_VFPF_LINK_REPORT_FULL_DUPLEX,4,2 ## @VFPF_LINK_REPORT_FULL_DUPLEX
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ## @BNX2X_LINK_REPORT_FD
	.comm	_VFPF_LINK_REPORT_RX_FC_ON,4,2  ## @VFPF_LINK_REPORT_RX_FC_ON
	.comm	_BNX2X_LINK_REPORT_RX_FC_ON,4,2 ## @BNX2X_LINK_REPORT_RX_FC_ON
	.comm	_VFPF_LINK_REPORT_TX_FC_ON,4,2  ## @VFPF_LINK_REPORT_TX_FC_ON
	.comm	_BNX2X_LINK_REPORT_TX_FC_ON,4,2 ## @BNX2X_LINK_REPORT_TX_FC_ON
	.comm	_PFVF_BULLETIN_UPDATED,4,2      ## @PFVF_BULLETIN_UPDATED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_sample_bulletin          ; -- Begin function bnx2x_sample_bulletin
	.p2align	2
_bnx2x_sample_bulletin:                 ; @bnx2x_sample_bulletin
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _BULLETIN_ATTEMPTS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BULLETIN_ATTEMPTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
	add	x21, x19, #80
	add	x22, x19, #96
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #136]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	mov	x0, x22
	bl	_bnx2x_crc_vf_bulletin
	ldr	x1, [x19, #96]
	cmp	x1, x0
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp]
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_BNX2X_ERR
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	cmp	w20, w8
	b.ge	LBB0_9
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x19, #104]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
Lloh4:
	adrp	x8, _PFVF_BULLETIN_UNCHANGED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PFVF_BULLETIN_UNCHANGED@GOTPAGEOFF]
	b	LBB0_24
LBB0_8:
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
Lloh8:
	adrp	x8, _PFVF_BULLETIN_CRC_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PFVF_BULLETIN_CRC_ERR@GOTPAGEOFF]
	b	LBB0_24
LBB0_10:
	add	x20, x19, #96
	ldr	w8, [x19, #112]
Lloh10:
	adrp	x9, _MAC_ADDR_VALID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAC_ADDR_VALID@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_13
; %bb.11:
	ldr	x0, [x19, #128]
	ldr	w1, [x19, #8]
	bl	_ether_addr_equal
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	x8, [x19, #72]
	ldr	x0, [x8]
	ldr	x1, [x19, #128]
Lloh13:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_13:
	ldr	w8, [x19, #112]
Lloh16:
	adrp	x9, _LINK_VALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LINK_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_23
; %bb.14:
Lloh19:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	w3, w2, [x19, #116]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x21, x19
	str	xzr, [x21, #56]!
	ldp	w8, w9, [x19, #116]
	str	w9, [x21, #8]
Lloh24:
	adrp	x9, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _BNX2X_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x21
	bl	___set_bit
	ldr	w8, [x19, #116]
LBB0_16:
Lloh30:
	adrp	x9, _VFPF_LINK_REPORT_FULL_DUPLEX@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VFPF_LINK_REPORT_FULL_DUPLEX@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _BNX2X_LINK_REPORT_FD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_FD@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x21
	bl	___set_bit
	ldr	w8, [x19, #116]
LBB0_18:
Lloh36:
	adrp	x9, _VFPF_LINK_REPORT_RX_FC_ON@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VFPF_LINK_REPORT_RX_FC_ON@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
Lloh39:
	adrp	x8, _BNX2X_LINK_REPORT_RX_FC_ON@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_RX_FC_ON@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	mov	x1, x21
	bl	___set_bit
	ldr	w8, [x19, #116]
LBB0_20:
Lloh42:
	adrp	x9, _VFPF_LINK_REPORT_TX_FC_ON@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VFPF_LINK_REPORT_TX_FC_ON@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
Lloh45:
	adrp	x8, _BNX2X_LINK_REPORT_TX_FC_ON@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_TX_FC_ON@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	mov	x1, x21
	bl	___set_bit
LBB0_22:
	mov	x0, x19
	bl	___bnx2x_link_report
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #40
	bl	_memcpy
Lloh48:
	adrp	x8, _PFVF_BULLETIN_UPDATED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PFVF_BULLETIN_UPDATED@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_BULLETIN_ATTEMPTS,4,2          ; @BULLETIN_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad crc on bulletin board. Contained %x computed %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"pf to vf bulletin board crc was wrong %d consecutive times. Aborting\n"

	.comm	_PFVF_BULLETIN_CRC_ERR,4,2      ; @PFVF_BULLETIN_CRC_ERR
	.comm	_PFVF_BULLETIN_UNCHANGED,4,2    ; @PFVF_BULLETIN_UNCHANGED
	.comm	_MAC_ADDR_VALID,4,2             ; @MAC_ADDR_VALID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_LINK_VALID,4,2                 ; @LINK_VALID
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
l_.str.2:                               ; @.str.2
	.asciz	"link update speed %d flags %x\n"

	.comm	_VFPF_LINK_REPORT_LINK_DOWN,4,2 ; @VFPF_LINK_REPORT_LINK_DOWN
	.comm	_BNX2X_LINK_REPORT_LINK_DOWN,4,2 ; @BNX2X_LINK_REPORT_LINK_DOWN
	.comm	_VFPF_LINK_REPORT_FULL_DUPLEX,4,2 ; @VFPF_LINK_REPORT_FULL_DUPLEX
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ; @BNX2X_LINK_REPORT_FD
	.comm	_VFPF_LINK_REPORT_RX_FC_ON,4,2  ; @VFPF_LINK_REPORT_RX_FC_ON
	.comm	_BNX2X_LINK_REPORT_RX_FC_ON,4,2 ; @BNX2X_LINK_REPORT_RX_FC_ON
	.comm	_VFPF_LINK_REPORT_TX_FC_ON,4,2  ; @VFPF_LINK_REPORT_TX_FC_ON
	.comm	_BNX2X_LINK_REPORT_TX_FC_ON,4,2 ; @BNX2X_LINK_REPORT_TX_FC_ON
	.comm	_PFVF_BULLETIN_UPDATED,4,2      ; @PFVF_BULLETIN_UPDATED
.subsections_via_symbols
