	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_clean_buffer
_atl1c_clean_buffer:                    ## @atl1c_clean_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	movq	_ATL1C_BUFFER_FREE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	_ATL1C_PCIMAP_FROMDEVICE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movq	_ATL1C_PCIMAP_SINGLE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	movl	24(%rbx), %edx
	callq	_pci_unmap_single
	jmp	LBB0_9
LBB0_7:
	movq	_ATL1C_PCIMAP_PAGE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.8:
	movl	24(%rbx), %edx
	callq	_pci_unmap_page
LBB0_9:
	leaq	8(%rbx), %r15
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_dev_consume_skb_any
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATL1C_SET_BUFFER_STATE         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATL1C_BUFFER_FREE,4,2          ## @ATL1C_BUFFER_FREE
	.comm	_ATL1C_PCIMAP_FROMDEVICE,4,2    ## @ATL1C_PCIMAP_FROMDEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ATL1C_PCIMAP_SINGLE,4,2        ## @ATL1C_PCIMAP_SINGLE
	.comm	_ATL1C_PCIMAP_PAGE,4,2          ## @ATL1C_PCIMAP_PAGE
	.no_dead_strip	_atl1c_clean_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_clean_buffer
_atl1c_clean_buffer:                    ; @atl1c_clean_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x20, _ATL1C_BUFFER_FREE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ATL1C_BUFFER_FREE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	ldr	x1, [x1, #16]
	cbz	x1, LBB0_7
; %bb.3:
Lloh2:
	adrp	x9, _ATL1C_PCIMAP_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATL1C_PCIMAP_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	adrp	x11, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x10, x11, eq
	ldr	w3, [x9]
Lloh9:
	adrp	x9, _ATL1C_PCIMAP_SINGLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATL1C_PCIMAP_SINGLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w2, [x19, #24]
	bl	_pci_unmap_single
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x9, _ATL1C_PCIMAP_PAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATL1C_PCIMAP_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w2, [x19, #24]
	bl	_pci_unmap_page
LBB0_7:
	mov	x21, x19
	ldr	x0, [x21, #8]!
	cbz	x0, LBB0_9
; %bb.8:
	bl	_dev_consume_skb_any
LBB0_9:
	stp	xzr, xzr, [x21]
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ATL1C_SET_BUFFER_STATE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATL1C_BUFFER_FREE,4,2          ; @ATL1C_BUFFER_FREE
	.comm	_ATL1C_PCIMAP_FROMDEVICE,4,2    ; @ATL1C_PCIMAP_FROMDEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ATL1C_PCIMAP_SINGLE,4,2        ; @ATL1C_PCIMAP_SINGLE
	.comm	_ATL1C_PCIMAP_PAGE,4,2          ; @ATL1C_PCIMAP_PAGE
	.no_dead_strip	_atl1c_clean_buffer
.subsections_via_symbols
