	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psc_dma_new
_psc_dma_new:                           ## @psc_dma_new
	.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	%rdx, %rbx
	movq	%rsi, %rcx
	movq	%rdi, %r14
	movq	16(%rdx), %r13
	movq	(%r13), %rax
	movq	8(%r13), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %r12
	movq	_psc_dma_hardware@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_dev_dbg
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_snd_dma_alloc_pages
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	(%rbx), %rax
LBB0_7:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_snd_dma_alloc_pages
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_snd_dma_free_pages
LBB0_13:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_1:
	movq	_psc_dma_dmamask@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_3:
	movl	$-1, (%rax)
	jmp	LBB0_4
LBB0_9:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	movq	%r12, (%rcx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_psc_dma_hardware,8,3           ## @psc_dma_hardware
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"psc_dma_new(card=%p, dai=%p, pcm=%p)\n"

	.comm	_psc_dma_dmamask,4,2            ## @psc_dma_dmamask
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate buffer(s)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_psc_dma_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psc_dma_new
_psc_dma_new:                           ; @psc_dma_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x3, x1
	mov	x19, x0
	ldr	x23, [x2, #16]
	ldp	x9, x8, [x23]
	ldr	x8, [x8]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _psc_dma_hardware@GOTPAGE
Lloh1:
	ldr	x8, [x8, _psc_dma_hardware@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w0, [x9, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x4, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
; %bb.1:
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
LBB0_2:
	mov	w9, #-1
	str	w9, [x8]
LBB0_3:
	ldr	x8, [x20]
	ldr	x3, [x8]
Lloh5:
	adrp	x24, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
	cbz	x3, LBB0_6
; %bb.4:
	ldr	w0, [x24]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x2, x21
	bl	_snd_dma_alloc_pages
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x20]
LBB0_6:
	ldr	x3, [x8, #8]
	cbz	x3, LBB0_12
; %bb.7:
	ldr	w0, [x24]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x2, x21
	bl	_snd_dma_alloc_pages
	cbz	w0, LBB0_12
; %bb.8:
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_snd_dma_free_pages
LBB0_10:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x9, _psc_dma_dmamask@GOTPAGE
Lloh13:
	ldr	x9, [x9, _psc_dma_dmamask@GOTPAGEOFF]
	str	x9, [x8, #8]
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
	b	LBB0_2
LBB0_12:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	w0, #0
	str	x22, [x8]
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_psc_dma_hardware,8,3           ; @psc_dma_hardware
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"psc_dma_new(card=%p, dai=%p, pcm=%p)\n"

	.comm	_psc_dma_dmamask,4,2            ; @psc_dma_dmamask
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate buffer(s)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_psc_dma_new
.subsections_via_symbols
