	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_maybe_stop_tso
_hns_nic_maybe_stop_tso:                ## @hns_nic_maybe_stop_tso
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_skb_headlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_BD_MAX_SEND_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	shlq	$2, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%r13, %rdi
	callq	_skb_frag_size
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	addl	%eax, %ebx
	addq	$4, %r13
	cmpq	%r13, %r15
	jne	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	(%r15), %ebx
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	(%r12), %eax
	movl	(%r14), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ring_space
	cmpl	%ebx, %eax
	jl	LBB0_5
## %bb.7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_copy
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_ring_space
	cmpl	%ebx, %eax
	jge	LBB0_11
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_MAX_SEND_SIZE,4,2           ## @BD_MAX_SEND_SIZE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hns_nic_maybe_stop_tso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_maybe_stop_tso
_hns_nic_maybe_stop_tso:                ; @hns_nic_maybe_stop_tso
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_skb_headlen
Lloh0:
	adrp	x24, _BD_MAX_SEND_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BD_MAX_SEND_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w9, w0, w8
	sub	w9, w9, #1
	sdiv	w23, w9, w8
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	lsl	x26, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x25
	bl	_skb_frag_size
	ldr	w8, [x24]
	add	w9, w0, w8
	sub	w9, w9, #1
	sdiv	w8, w9, w8
	add	w23, w8, w23
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x22]
	cmp	w23, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x24]
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w23, w8, w9
	mov	x0, x22
	bl	_ring_space
	cmp	w0, w23
	b.lt	LBB0_8
; %bb.5:
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_copy
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_dev_kfree_skb_any
	str	x22, [x20]
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_ring_space
	cmp	w0, w23
	b.ge	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	str	w23, [x19]
	b	LBB0_12
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_MAX_SEND_SIZE,4,2           ; @BD_MAX_SEND_SIZE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hns_nic_maybe_stop_tso
.subsections_via_symbols
