	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_maybe_stop_tx
_hns_nic_maybe_stop_tx:                 ## @hns_nic_maybe_stop_tx
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	xorl	%edi, %edi
	cmpl	(%r13), %ebx
	setge	%dil
	callq	_unlikely
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	callq	_ring_space
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_copy
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, (%r15)
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_6:
	callq	_ring_space
	cmpl	%eax, %ebx
	jge	LBB0_2
## %bb.7:
	incl	%ebx
LBB0_9:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hns_nic_maybe_stop_tx
.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_tx
_hns_nic_maybe_stop_tx:                 ; @hns_nic_maybe_stop_tx
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w23, [x0]
	ldr	w8, [x22]
	cmp	w23, w8
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_ring_space
	cmp	w0, #0
	b.le	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_copy
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	bl	_dev_kfree_skb_any
	str	x22, [x20]
	mov	w8, #1
	b	LBB0_6
LBB0_4:
	mov	x0, x22
	bl	_ring_space
	cmp	w23, w0
	b.ge	LBB0_7
; %bb.5:
	add	w8, w23, #1
LBB0_6:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hns_nic_maybe_stop_tx
.subsections_via_symbols
