	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_b0_hw_offload_set
_hw_atl_b0_hw_offload_set:              ## @hw_atl_b0_hw_offload_set
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, %esi
	callq	_hw_atl_tpo_ipv4header_crc_offload_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_tpo_tcp_udp_crc_offload_en_set
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	xorl	%esi, %esi
	andl	(%r14), %eax
	setne	%sil
	movq	%r12, %rdi
	callq	_hw_atl_rpo_ipv4header_crc_offload_en_set
	movl	(%rbx), %eax
	xorl	%esi, %esi
	andl	(%r14), %eax
	setne	%sil
	movq	%r12, %rdi
	callq	_hw_atl_rpo_tcp_udp_crc_offload_en_set
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_hw_atl_tdm_large_send_offload_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rpo_outer_vlan_tag_mode_set
	movq	_HW_ATL_B0_LRO_RXD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$3, %r15d
	cmpl	$8, %eax
	ja	LBB0_3
## %bb.1:
	movl	$2, %r15d
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	$3, %eax
	setae	%r15b
LBB0_3:
	movq	_HW_ATL_B0_RINGS_MAX@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_hw_atl_rpo_lro_max_num_of_descriptors_set
	incl	%ebx
	cmpl	(%r13), %ebx
	jb	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	movl	$1562, %esi                     ## imm = 0x61A
	callq	_hw_atl_rpo_lro_time_base_divider_set
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_rpo_lro_inactive_interval_set
	movq	%r12, %rdi
	movl	$50, %esi
	callq	_hw_atl_rpo_lro_max_coalescing_interval_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rpo_lro_qsessions_lim_set
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_hw_atl_rpo_lro_total_desc_lim_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rpo_lro_patch_optimization_en_set
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_hw_atl_rpo_lro_min_pay_of_first_pkt_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_rpo_lro_pkt_lim_set
	cmpq	8(%r14), %r15
	movl	$0, %esi
	sbbl	%esi, %esi
	movq	%r12, %rdi
	callq	_hw_atl_rpo_lro_en_set
	cmpq	8(%r14), %r15
	sbbl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_hw_atl_itr_rsc_en_set
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_hw_atl_itr_rsc_delay_set
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_HW_ATL_B0_LRO_RXD_MAX,4,2      ## @HW_ATL_B0_LRO_RXD_MAX
	.comm	_HW_ATL_B0_RINGS_MAX,4,2        ## @HW_ATL_B0_RINGS_MAX
	.no_dead_strip	_hw_atl_b0_hw_offload_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_b0_hw_offload_set
_hw_atl_b0_hw_offload_set:              ; @hw_atl_b0_hw_offload_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	mov	w1, #1
	bl	_hw_atl_tpo_ipv4header_crc_offload_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_tpo_tcp_udp_crc_offload_en_set
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x19
	bl	_hw_atl_rpo_ipv4header_crc_offload_en_set
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x19
	bl	_hw_atl_rpo_tcp_udp_crc_offload_en_set
	mov	x0, x19
	mov	w1, #-1
	bl	_hw_atl_tdm_large_send_offload_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rpo_outer_vlan_tag_mode_set
Lloh2:
	adrp	x8, _HW_ATL_B0_LRO_RXD_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HW_ATL_B0_LRO_RXD_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #3
	mov	w10, #2
	cmp	w8, #2
	cset	w11, hi
	cmp	w8, #4
	csel	w10, w10, w11, hi
	cmp	w8, #8
	csel	w21, w9, w10, hi
Lloh5:
	adrp	x23, _HW_ATL_B0_RINGS_MAX@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HW_ATL_B0_RINGS_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_hw_atl_rpo_lro_max_num_of_descriptors_set
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	w1, #1562
	bl	_hw_atl_rpo_lro_time_base_divider_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_rpo_lro_inactive_interval_set
	mov	x0, x19
	mov	w1, #50
	bl	_hw_atl_rpo_lro_max_coalescing_interval_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rpo_lro_qsessions_lim_set
	mov	x0, x19
	mov	w1, #2
	bl	_hw_atl_rpo_lro_total_desc_lim_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rpo_lro_patch_optimization_en_set
	mov	x0, x19
	mov	w1, #10
	bl	_hw_atl_rpo_lro_min_pay_of_first_pkt_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_rpo_lro_pkt_lim_set
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csetm	w1, ne
	mov	x0, x19
	bl	_hw_atl_rpo_lro_en_set
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csetm	w1, ne
	mov	x0, x19
	bl	_hw_atl_itr_rsc_en_set
	mov	x0, x19
	mov	w1, #1
	bl	_hw_atl_itr_rsc_delay_set
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_aq_hw_err_from_flags
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_HW_ATL_B0_LRO_RXD_MAX,4,2      ; @HW_ATL_B0_LRO_RXD_MAX
	.comm	_HW_ATL_B0_RINGS_MAX,4,2        ; @HW_ATL_B0_RINGS_MAX
	.no_dead_strip	_hw_atl_b0_hw_offload_set
.subsections_via_symbols
