	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_tx_clr_all_bufs
_hns_nic_tx_clr_all_bufs:               ## @hns_nic_tx_clr_all_bufs
	.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	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movl	(%rbx), %r14d
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	cmpl	4(%rbx), %r14d
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_hns_nic_reclaim_one_desc
	cmpl	4(%rbx), %r14d
	jne	LBB0_2
LBB0_3:
	movl	(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	callq	_netdev_tx_reset_queue
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hns_nic_tx_clr_all_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_tx_clr_all_bufs
_hns_nic_tx_clr_all_bufs:               ; @hns_nic_tx_clr_all_bufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x19, x21, [x0, #8]
	ldp	w22, w8, [x21]
	str	xzr, [sp, #8]
	cmp	w22, w8
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_hns_nic_reclaim_one_desc
	ldr	w8, [x21, #4]
	cmp	w22, w8
	b.ne	LBB0_1
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_netdev_get_tx_queue
	bl	_netdev_tx_reset_queue
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hns_nic_tx_clr_all_bufs
.subsections_via_symbols
