	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drain_scq
_drain_scq:                             ## @drain_scq
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rsi), %r14
	movl	4(%rdi), %ebx
	leaq	8(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	movslq	%eax, %rdx
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_TXPRINTK
	leaq	12(%r14), %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_TXPRINTK
	movl	(%r12), %ebx
	movq	%r13, %rdi
	callq	_IDT77252_PRV_PADDR
	movl	(%r13), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*%rax
	jmp	LBB0_4
LBB0_3:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
LBB0_4:
	movq	(%rbx), %rdi
	callq	_atomic_inc
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	4(%r14), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_push_on_scq
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	(%r15), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_head
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: SCQ (before drain %2d) next = 0x%p.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: freeing skb at %p.\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_drain_scq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drain_scq
_drain_scq:                             ; @drain_scq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x1]
	ldr	w23, [x0, #4]
	add	x22, x19, #8
	mov	x0, x22
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_TXPRINTK
	add	x0, x19, #12
	bl	_skb_dequeue
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	w1, [x21, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_TXPRINTK
	ldr	w24, [x21]
	mov	x0, x23
	bl	_IDT77252_PRV_PADDR
	mov	x1, x0
	ldr	w2, [x23]
Lloh4:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x24
	bl	_pci_unmap_single
	mov	x0, x23
	bl	_ATM_SKB
	ldr	x24, [x0]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x23
	blr	x8
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_4:
	ldr	x0, [x24]
	bl	_atomic_inc
LBB0_5:
	mov	x0, x22
	bl	_atomic_dec
	mov	x0, x19
	bl	_spin_lock
	add	x22, x19, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_dequeue
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_push_on_scq
	cbz	x0, LBB0_6
; %bb.8:
	ldr	x8, [x20]
	add	x0, x8, #4
	mov	x1, x23
	bl	_skb_queue_head
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_spin_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: SCQ (before drain %2d) next = 0x%p.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: freeing skb at %p.\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_drain_scq
.subsections_via_symbols
