	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgsl_free_buffer_list_memory
_mgsl_free_buffer_list_memory:          ## @mgsl_free_buffer_list_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_MGSL_BUS_TYPE_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BUFFERLISTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %ecx
	xorl	%edi, %edi
	callq	_dma_free_coherent
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ## @MGSL_BUS_TYPE_PCI
	.comm	_BUFFERLISTSIZE,4,2             ## @BUFFERLISTSIZE
	.no_dead_strip	_mgsl_free_buffer_list_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mgsl_free_buffer_list_memory
_mgsl_free_buffer_list_memory:          ; @mgsl_free_buffer_list_memory
	.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	x2, [x0, #24]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MGSL_BUS_TYPE_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MGSL_BUS_TYPE_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _BUFFERLISTSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFERLISTSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19, #32]
	mov	x0, #0
	bl	_dma_free_coherent
LBB0_3:
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MGSL_BUS_TYPE_PCI,8,3          ; @MGSL_BUS_TYPE_PCI
	.comm	_BUFFERLISTSIZE,4,2             ; @BUFFERLISTSIZE
	.no_dead_strip	_mgsl_free_buffer_list_memory
.subsections_via_symbols
