	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_set_tx_csum
_bcmgenet_set_tx_csum:                  ## @bcmgenet_set_tx_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	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_bcmgenet_tbuf_ctrl_get
	movl	%eax, %r14d
	movq	_RBUF_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_rbuf_readl
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rdx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%eax, %r15d
	movq	_RBUF_64B_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %ecx
	je	LBB0_2
## %bb.1:
	orl	%eax, %r14d
	orl	%eax, %r15d
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	%eax, %r14d
	andl	%eax, %r15d
LBB0_3:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bcmgenet_tbuf_ctrl_set
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_bcmgenet_rbuf_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBUF_CTRL,4,2                  ## @RBUF_CTRL
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_RBUF_64B_EN,4,2                ## @RBUF_64B_EN
	.no_dead_strip	_bcmgenet_set_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_set_tx_csum
_bcmgenet_set_tx_csum:                  ; @bcmgenet_set_tx_csum
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	bl	_bcmgenet_tbuf_ctrl_get
	mov	x21, x0
Lloh0:
	adrp	x22, _RBUF_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RBUF_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
Lloh2:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ands	w8, w8, w19
Lloh8:
	adrp	x9, _RBUF_64B_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RBUF_64B_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w10, w21, w9
	bic	w11, w0, w9
	orr	w12, w9, w21
	orr	w9, w9, w0
	csel	w1, w10, w12, eq
	csel	w19, w11, w9, eq
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x20]
	mov	x0, x20
	bl	_bcmgenet_tbuf_ctrl_set
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_bcmgenet_rbuf_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RBUF_CTRL,4,2                  ; @RBUF_CTRL
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_RBUF_64B_EN,4,2                ; @RBUF_64B_EN
	.no_dead_strip	_bcmgenet_set_tx_csum
.subsections_via_symbols
