	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_vm_create                   ## -- Begin function ct_vm_create
	.p2align	4, 0x90
_ct_vm_create:                          ## @ct_vm_create
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	callq	_mutex_init
	movq	_CT_PTP_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_snd_dma_pci_data
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_snd_dma_alloc_pages
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_CT_PTP_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_3:
	xorl	%r13d, %r13d
LBB0_8:
	movq	_CT_ADDRS_PER_PAGE@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	movl	%r13d, (%r12)
	movq	_ct_vm_map@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_ct_vm_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_ct_get_ptp_phys@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	$0, 8(%rax)
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	addq	$4, %rax
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_list_add
LBB0_10:
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	callq	_ct_vm_destroy
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CT_PTP_NUM,4,2                 ## @CT_PTP_NUM
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CT_ADDRS_PER_PAGE,4,2          ## @CT_ADDRS_PER_PAGE
	.comm	_ct_vm_map,4,2                  ## @ct_vm_map
	.comm	_ct_vm_unmap,4,2                ## @ct_vm_unmap
	.comm	_ct_get_ptp_phys,4,2            ## @ct_get_ptp_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_vm_create                   ; -- Begin function ct_vm_create
	.p2align	2
_ct_vm_create:                          ; @ct_vm_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	str	xzr, [x0]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	add	x0, x0, #32
	bl	_mutex_init
Lloh2:
	adrp	x25, _CT_PTP_NUM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CT_PTP_NUM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x26, #0
	mov	x24, #0
Lloh4:
	adrp	x27, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh6:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x27]
	mov	x0, x21
	bl	_snd_dma_pci_data
	mov	x1, x0
	ldr	w2, [x28]
	ldr	x8, [x20, #24]
	add	x3, x8, x26
	mov	x0, x22
	bl	_snd_dma_alloc_pages
	tbnz	w0, #31, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
Lloh8:
	adrp	x8, _CT_ADDRS_PER_PAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CT_ADDRS_PER_PAGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w8, w8, w24
Lloh11:
	adrp	x9, _ct_vm_map@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ct_vm_map@GOTPAGEOFF]
	str	w8, [x20]
Lloh13:
	ldr	w8, [x9]
	str	w8, [x20, #20]
Lloh14:
	adrp	x8, _ct_vm_unmap@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ct_vm_unmap@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ct_get_ptp_phys@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ct_get_ptp_phys@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	add	x21, x20, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.7:
	str	xzr, [x0, #8]
	ldr	w8, [x20]
	str	w8, [x0], #4
	mov	x1, x21
	bl	_list_add
LBB0_8:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_ct_vm_destroy
LBB0_10:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CT_PTP_NUM,4,2                 ; @CT_PTP_NUM
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CT_ADDRS_PER_PAGE,4,2          ; @CT_ADDRS_PER_PAGE
	.comm	_ct_vm_map,4,2                  ; @ct_vm_map
	.comm	_ct_vm_unmap,4,2                ; @ct_vm_unmap
	.comm	_ct_get_ptp_phys,4,2            ; @ct_get_ptp_phys
.subsections_via_symbols
