	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_swap_desc_tasklet
_do_swap_desc_tasklet:                  ## @do_swap_desc_tasklet
	.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
	movl	$-32, %r13d
	movq	_DATA_BUFFER_ALIGNMENT@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	subl	(%r14), %ecx
	andl	%eax, %ecx
	movq	%rbx, -8(%rcx)
	andl	$268435455, %eax                ## imm = 0xFFFFFFF
	movl	%eax, 4(%r15,%r12,8)
	movl	$1, (%r15,%r12,8)
	incl	%r13d
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_WAN_SWAP_DESC_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_g_ptm_priv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	cmpl	$0, (%r15,%r12,8)
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r12), %rcx
	movq	%rcx, (%rax)
	movq	_WAN_SWAP_DESC_NUM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$0, %edx
	cmoveq	%rdx, %rcx
	movq	%rcx, (%rax)
	movl	4(%r15,%r12,8), %edi
	callq	_get_skb_pointer
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb_any
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_RX_MAX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_skb_tx
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_panic
	jmp	LBB0_6
LBB0_7:
	movq	_MBOX_IGU1_ISRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$16, %esi
	callq	_IFX_REG_W32_MASK
	movq	_WAN_SWAP_DESC_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_g_ptm_priv_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.8:
	movq	_MBOX_IGU1_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$65536, %esi                    ## imm = 0x10000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IFX_REG_W32_MASK               ## TAILCALL
LBB0_9:
	movq	_g_swap_desc_tasklet@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_hi_schedule            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WAN_SWAP_DESC_BASE,8,3         ## @WAN_SWAP_DESC_BASE
	.comm	_g_ptm_priv_data,8,3            ## @g_ptm_priv_data
	.comm	_WAN_SWAP_DESC_NUM,8,3          ## @WAN_SWAP_DESC_NUM
	.comm	_RX_MAX_BUFFER_SIZE,4,2         ## @RX_MAX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't allocate swap buffer for PPE firmware use\n"

	.comm	_DATA_BUFFER_ALIGNMENT,4,2      ## @DATA_BUFFER_ALIGNMENT
	.comm	_MBOX_IGU1_ISRC,4,2             ## @MBOX_IGU1_ISRC
	.comm	_MBOX_IGU1_IER,4,2              ## @MBOX_IGU1_IER
	.comm	_g_swap_desc_tasklet,4,2        ## @g_swap_desc_tasklet
	.no_dead_strip	_do_swap_desc_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_swap_desc_tasklet
_do_swap_desc_tasklet:                  ; @do_swap_desc_tasklet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _WAN_SWAP_DESC_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WAN_SWAP_DESC_BASE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _g_ptm_priv_data@GOTPAGE
Lloh3:
	ldr	x22, [x22, _g_ptm_priv_data@GOTPAGEOFF]
Lloh4:
	adrp	x23, _WAN_SWAP_DESC_NUM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WAN_SWAP_DESC_NUM@GOTPAGEOFF]
Lloh6:
	adrp	x24, _RX_MAX_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RX_MAX_BUFFER_SIZE@GOTPAGEOFF]
	mov	w25, #-32
	mov	w26, #1
Lloh8:
	adrp	x27, _DATA_BUFFER_ALIGNMENT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DATA_BUFFER_ALIGNMENT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	w9, [x27]
	neg	w9, w9
	and	x9, x8, x9
	stur	x20, [x9, #-8]
	and	w8, w8, #0xfffffff
	str	w8, [x19]
	str	w26, [x28]
	adds	w25, w25, #1
	b.hs	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	ldr	x8, [x22]
	ldr	x9, [x8]
	add	x28, x10, x9, lsl #3
	ldr	w10, [x28]
	cbnz	w10, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x9, #1
	str	x10, [x8]
	ldr	x11, [x23]
	cmp	x10, x11
	csinc	x9, xzr, x9, eq
	str	x9, [x8]
	mov	x19, x28
	ldr	w0, [x19, #4]!
	bl	_get_skb_pointer
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_dev_kfree_skb_any
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_alloc_skb_tx
	mov	x20, x0
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_1
LBB0_7:
Lloh12:
	adrp	x8, _MBOX_IGU1_ISRC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBOX_IGU1_ISRC@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w1, #16
	bl	_IFX_REG_W32_MASK
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x9, [x9]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cbz	w8, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _MBOX_IGU1_IER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBOX_IGU1_IER@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w1, #65536
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_IFX_REG_W32_MASK
LBB0_9:
Lloh18:
	adrp	x0, _g_swap_desc_tasklet@GOTPAGE
Lloh19:
	ldr	x0, [x0, _g_swap_desc_tasklet@GOTPAGEOFF]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_tasklet_hi_schedule
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WAN_SWAP_DESC_BASE,8,3         ; @WAN_SWAP_DESC_BASE
	.comm	_g_ptm_priv_data,8,3            ; @g_ptm_priv_data
	.comm	_WAN_SWAP_DESC_NUM,8,3          ; @WAN_SWAP_DESC_NUM
	.comm	_RX_MAX_BUFFER_SIZE,4,2         ; @RX_MAX_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't allocate swap buffer for PPE firmware use\n"

	.comm	_DATA_BUFFER_ALIGNMENT,4,2      ; @DATA_BUFFER_ALIGNMENT
	.comm	_MBOX_IGU1_ISRC,4,2             ; @MBOX_IGU1_ISRC
	.comm	_MBOX_IGU1_IER,4,2              ; @MBOX_IGU1_IER
	.comm	_g_swap_desc_tasklet,4,2        ; @g_swap_desc_tasklet
	.no_dead_strip	_do_swap_desc_tasklet
.subsections_via_symbols
