	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_rings_free
_ag71xx_rings_free:                     ## @ag71xx_rings_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	52(%rdi), %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	28(%rbx), %edi
	callq	_BIT
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	addl	%r14d, %eax
	movq	(%rbx), %rdi
	movq	_AG71XX_DESC_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	48(%rbx), %ecx
	movl	%eax, %esi
	callq	_dma_free_coherent
LBB0_2:
	movq	32(%rbx), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 32(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AG71XX_DESC_SIZE,4,2           ## @AG71XX_DESC_SIZE
	.no_dead_strip	_ag71xx_rings_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_rings_free
_ag71xx_rings_free:                     ; @ag71xx_rings_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #52]
	bl	_BIT
	mov	x20, x0
	ldr	w0, [x19, #28]
	bl	_BIT
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_2
; %bb.1:
	add	w8, w0, w20
	ldr	x0, [x19]
Lloh0:
	adrp	x9, _AG71XX_DESC_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AG71XX_DESC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldr	w3, [x19, #48]
	bl	_dma_free_coherent
LBB0_2:
	ldr	x0, [x19, #32]
	bl	_kfree
	stp	xzr, xzr, [x19, #8]
	stp	xzr, xzr, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AG71XX_DESC_SIZE,4,2           ; @AG71XX_DESC_SIZE
	.no_dead_strip	_ag71xx_rings_free
.subsections_via_symbols
