	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_cal_tdp_req
_atl1e_cal_tdp_req:                     ## @atl1e_cal_tdp_req
	.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
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	$1, %r13d
	xorl	%ebx, %ebx
	movq	_MAX_TX_BUF_SHIFT@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	16(%rax), %rdi
	addq	%rbx, %rdi
	callq	_skb_frag_size
                                        ## kill: def $eax killed $eax def $rax
	movq	_MAX_TX_BUF_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	movzbl	(%r12), %ecx
	sarl	%cl, %eax
	addl	%eax, %r13d
	incq	%r15
	movq	%r14, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$1, %r13d
LBB0_4:
	movq	%r14, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%r14), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rax
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_skb_transport_offset
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_tcp_hdrlen
	movl	%eax, %r15d
	addl	%r12d, %r15d
	movq	%r14, %rdi
	callq	_skb_headlen
	cmpl	%eax, %r15d
	jge	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_skb_headlen
	movq	_MAX_TX_BUF_LEN@GOTPCREL(%rip), %rcx
	notl	%r15d
	addl	%eax, %r15d
	addl	(%rcx), %r15d
	movq	_MAX_TX_BUF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	addl	%r15d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_BUF_LEN,4,2             ## @MAX_TX_BUF_LEN
	.comm	_MAX_TX_BUF_SHIFT,4,2           ## @MAX_TX_BUF_SHIFT
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_SKB_GSO_TCPV6,8,3              ## @SKB_GSO_TCPV6
	.no_dead_strip	_atl1e_cal_tdp_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_cal_tdp_req
_atl1e_cal_tdp_req:                     ; @atl1e_cal_tdp_req
	.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, x0
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w19, #1
Lloh0:
	adrp	x23, _MAX_TX_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_TX_BUF_LEN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MAX_TX_BUF_SHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_TX_BUF_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #16]
	add	x0, x8, x21
	bl	_skb_frag_size
	ldr	w8, [x23]
	add	w8, w0, w8
	sub	w8, w8, #1
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w19, w8, w19
	add	x22, x22, #1
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #1
LBB0_4:
	mov	x0, x20
	bl	_skb_is_gso
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x21, [x20]
Lloh4:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
Lloh7:
	adrp	x9, _SKB_GSO_TCPV6@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SKB_GSO_TCPV6@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_skb_transport_offset
	mov	x21, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	add	w21, w0, w21
	mov	x0, x20
	bl	_skb_headlen
	cmp	w21, w0
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_skb_headlen
Lloh10:
	adrp	x8, _MAX_TX_BUF_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_TX_BUF_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mvn	w9, w21
	add	w9, w0, w9
	add	w8, w9, w8
Lloh13:
	adrp	x9, _MAX_TX_BUF_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MAX_TX_BUF_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	asr	w8, w8, w9
	add	w19, w8, w19
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_BUF_LEN,4,2             ; @MAX_TX_BUF_LEN
	.comm	_MAX_TX_BUF_SHIFT,4,2           ; @MAX_TX_BUF_SHIFT
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_SKB_GSO_TCPV6,8,3              ; @SKB_GSO_TCPV6
	.no_dead_strip	_atl1e_cal_tdp_req
.subsections_via_symbols
