	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_alsa_dma_init
_cx23885_alsa_dma_init:                 ## @cx23885_alsa_dma_init
	.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
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	movl	%esi, %edi
	shll	%cl, %edi
	callq	_vmalloc_32
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movb	(%rbx), %cl
	movl	%r14d, %r8d
	shll	%cl, %r8d
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movl	%eax, %edx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	8(%r15), %rdi
	movb	(%rbx), %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r14d, (%r15)
	movl	$4, %edi
	movl	%r14d, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_sg_init_table
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	movslq	%ebx, %rdi
	imulq	%rax, %rdi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	callq	_vmalloc_to_page
	movq	16(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rdi
	movl	(%r14), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_sg_set_page
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	callq	_vfree
	movq	$0, 16(%r15)
LBB0_8:
	movq	8(%r15), %rdi
	callq	_vfree
	movq	$0, 8(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_9:
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmalloc_32(%d pages) failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"vmalloc is at addr %p, size=%d\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_cx23885_alsa_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_alsa_dma_init
_cx23885_alsa_dma_init:                 ; @cx23885_alsa_dma_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w0, w1, w8
	bl	_vmalloc_32
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x2, x0
	ldr	w8, [x21]
	lsl	w8, w19, w8
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dprintk
	ldr	x0, [x20, #8]
	ldr	w8, [x21]
	lsl	w2, w19, w8
	mov	w1, #0
	bl	_memset
	str	w19, [x20]
	mov	w0, #4
	mov	x1, x19
	bl	_array_size
	bl	_vzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w1, [x20]
	bl	_sg_init_table
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x19, #0
	mov	x21, #0
Lloh4:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x22]
	mul	w9, w9, w21
	add	x0, x8, w9, sxtw #2
	bl	_vmalloc_to_page
	mov	x1, x0
	ldr	x0, [x20, #16]
	cbz	x1, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, x19
	ldr	w2, [x22]
	mov	w3, #0
	bl	_sg_set_page
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x19, x19, #4
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_dprintk
	b	LBB0_10
LBB0_8:
	bl	_vfree
	str	xzr, [x20, #16]
LBB0_9:
	ldr	x0, [x20, #8]
	bl	_vfree
	str	xzr, [x20, #8]
LBB0_10:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmalloc_32(%d pages) failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"vmalloc is at addr %p, size=%d\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_cx23885_alsa_dma_init
.subsections_via_symbols
