	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_memcpy_dma_free
_tw686x_memcpy_dma_free:                ## @tw686x_memcpy_dma_free
	.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	%esi, %r14d
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %r13
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movl	%r14d, %eax
	shlq	$4, %rax
	movq	(%r15,%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	leaq	(%r15,%rax), %rbx
	movq	(%r12), %rdi
	movl	8(%r15,%rax), %ecx
	movl	12(%r15,%rax), %esi
	callq	_pci_free_consistent
	movq	$0, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to deallocate on missing device\n"

	.no_dead_strip	_tw686x_memcpy_dma_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_memcpy_dma_free
_tw686x_memcpy_dma_free:                ; @tw686x_memcpy_dma_free
	.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	x19, x1
	ldp	x21, x22, [x0]
	add	x20, x21, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x23, [x21]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbz	x23, LBB0_4
; %bb.1:
	mov	w8, w19
	add	x19, x22, x8, lsl #4
	ldr	x2, [x19]
	cbz	x2, LBB0_3
; %bb.2:
	ldr	x0, [x21]
	ldp	w3, w1, [x19, #8]
	bl	_pci_free_consistent
	str	xzr, [x19]
LBB0_3:
	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
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	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
	b	_WARN
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to deallocate on missing device\n"

	.no_dead_strip	_tw686x_memcpy_dma_free
.subsections_via_symbols
