	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_sg_dma_free
_tw686x_sg_dma_free:                    ## @tw686x_sg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movl	%esi, %r14d
	leaq	(%r14,%r14,2), %rbx
	movq	16(%r12,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	(%r12,%rbx,8), %rdx
	movl	8(%r12,%rbx,8), %ecx
	callq	_pci_free_consistent
	movq	$0, (%r12,%rbx,8)
LBB0_2:
	movq	(%r15), %rax
	movq	$0, (%rax,%r14,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tw686x_sg_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_sg_dma_free
_tw686x_sg_dma_free:                    ; @tw686x_sg_dma_free
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	mov	w20, w1
	mov	w9, #24
	umaddl	x9, w1, w9, x8
	ldr	x1, [x9, #16]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	w0, [x9]
	mov	w9, #24
	madd	x21, x20, x9, x8
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
	bl	_pci_free_consistent
	str	xzr, [x21]
LBB0_2:
	ldr	x8, [x19]
	str	xzr, [x8, x20, lsl #3]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tw686x_sg_dma_free
.subsections_via_symbols
