	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_free_buffer_with_count
_vino_free_buffer_with_count:           ## @vino_free_buffer_with_count
	.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, %r15
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_virt_to_page
	movl	%eax, %edi
	callq	_ClearPageReserved
	movq	24(%r15), %rax
	movq	_VINO_PAGE_RATIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ebx, %ecx
	movl	(%rax,%rcx,4), %esi
	movl	(%r13), %edx
	movl	(%r12), %ecx
	xorl	%edi, %edi
	callq	_dma_unmap_single
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_free_page
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movq	_VINO_PAGE_RATIO@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	movl	16(%r15), %ecx
	addl	$4, %esi
	imull	(%rax), %esi
	shll	$2, %esi
	movq	24(%r15), %rdx
	xorl	%edi, %edi
	callq	_dma_free_coherent
	movq	8(%r15), %rdi
	callq	_kfree
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_free_buffer_with_count(): count = %d\n"

	.comm	_VINO_PAGE_RATIO,4,2            ## @VINO_PAGE_RATIO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_vino_free_buffer_with_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_free_buffer_with_count
_vino_free_buffer_with_count:           ; @vino_free_buffer_with_count
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x21, _VINO_PAGE_RATIO@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VINO_PAGE_RATIO@GOTPAGEOFF]
	cbz	w20, LBB0_3
; %bb.1:
	mov	x22, #0
Lloh4:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	mov	w20, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x25, x22, #3
	ldr	x0, [x8, x25]
	bl	_virt_to_page
	bl	_ClearPageReserved
	ldr	x8, [x19, #24]
	ldr	w9, [x21]
	mul	w9, w9, w22
	ldr	w1, [x8, w9, uxtw #2]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, #0
	bl	_dma_unmap_single
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x25]
	bl	_free_page
	add	x22, x22, #1
	cmp	x20, x22
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w9, w9, #4
	mul	w8, w8, w9
	lsl	w1, w8, #2
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #16]
	mov	x0, #0
	bl	_dma_free_coherent
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_free_buffer_with_count(): count = %d\n"

	.comm	_VINO_PAGE_RATIO,4,2            ; @VINO_PAGE_RATIO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_vino_free_buffer_with_count
.subsections_via_symbols
