	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_pbd_csum
_bnx2x_set_pbd_csum:                    ## @bnx2x_set_pbd_csum
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_skb_network_header
	movl	%eax, %ebx
	subl	(%r15), %ebx
	sarl	%ebx
	movq	8(%r15), %r13
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
	movq	_ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	callq	_skb_transport_header
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_skb_network_header
	subl	%eax, %r13d
	sarl	%r13d
	movl	%r13d, (%r14)
	addl	%ebx, %r13d
	movq	_XMIT_CSUM_TCP@GOTPCREL(%rip), %rbx
	testl	%r12d, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	jmp	LBB0_3
LBB0_1:
	movl	$2, %ecx
LBB0_3:
	addl	%ecx, %r13d
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	testl	%r12d, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_tcp_hdr
	movl	(%rax), %edi
	callq	_bswab16
	movl	%eax, 4(%r14)
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_SKB_CS_OFF
	movl	%eax, %ebx
	movq	_NETIF_MSG_TX_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_SKB_CS
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%ebx, %r12d
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DP
	movq	%r15, %rdi
	callq	_skb_transport_header
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_SKB_CS
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_bnx2x_csum_fix
	movl	%eax, 4(%r14)
	movq	_NETIF_MSG_TX_QUEUED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP
LBB0_6:
	addl	%r13d, %r13d
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT,4,2 ## @ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT
	.comm	_XMIT_CSUM_TCP,4,2              ## @XMIT_CSUM_TCP
	.comm	_NETIF_MSG_TX_QUEUED,4,2        ## @NETIF_MSG_TX_QUEUED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hlen %d  fix %d  csum before fix %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"csum after fix %x\n"

	.no_dead_strip	_bnx2x_set_pbd_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_pbd_csum
_bnx2x_set_pbd_csum:                    ; @bnx2x_set_pbd_csum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x0, x1
	bl	_skb_network_header
	ldr	w8, [x20]
	sub	w8, w0, w8
	asr	w23, w8, #1
	ldr	x21, [x20, #8]
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x21, x0
	cset	w8, eq
Lloh3:
	adrp	x9, _ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w0, w8, w23
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_skb_transport_header
	mov	x21, x0
	mov	x0, x20
	bl	_skb_network_header
	sub	w8, w21, w0
	asr	w8, w8, #1
	str	w8, [x19]
	add	w21, w8, w23
Lloh6:
	adrp	x23, _XMIT_CSUM_TCP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _XMIT_CSUM_TCP@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_tcp_hdrlen
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w8, #2
LBB0_3:
	add	w21, w21, w8
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_tcp_hdr
	ldr	w0, [x0]
	bl	_bswab16
	str	w0, [x19, #4]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_SKB_CS_OFF
	mov	x22, x0
Lloh8:
	adrp	x25, _NETIF_MSG_TX_QUEUED@GOTPAGE
Lloh9:
	ldr	x25, [x25, _NETIF_MSG_TX_QUEUED@GOTPAGEOFF]
	ldr	w23, [x25]
	ldr	x0, [x19, #8]
	bl	_le16_to_cpu
	mov	x24, x0
	mov	x0, x20
	bl	_SKB_CS
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_DP
	mov	x0, x20
	bl	_skb_transport_header
	mov	x23, x0
	mov	x0, x20
	bl	_SKB_CS
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_bnx2x_csum_fix
	mov	x2, x0
	str	w0, [x19, #4]
	ldr	w0, [x25]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
LBB0_6:
	lsl	w0, w21, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT,4,2 ; @ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT
	.comm	_XMIT_CSUM_TCP,4,2              ; @XMIT_CSUM_TCP
	.comm	_NETIF_MSG_TX_QUEUED,4,2        ; @NETIF_MSG_TX_QUEUED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hlen %d  fix %d  csum before fix %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"csum after fix %x\n"

	.no_dead_strip	_bnx2x_set_pbd_csum
.subsections_via_symbols
