	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pcm_new
_atmel_pcm_new:                         ## @atmel_pcm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_4:
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movq	_atmel_pcm_dmamask@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_3:
	movl	$-1, (%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_5:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atmel_pcm_preallocate_dma_buffer
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atmel_pcm_preallocate_dma_buffer ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atmel_pcm_dmamask,4,2          ## @atmel_pcm_dmamask
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"at32-pcm:Allocating PCM capture DMA buffer\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_atmel_pcm_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pcm_new
_atmel_pcm_new:                         ; @atmel_pcm_new
	.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, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x8]
	cbz	w9, LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x9, _atmel_pcm_dmamask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _atmel_pcm_dmamask@GOTPAGEOFF]
	str	x9, [x8, #8]
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
LBB0_4:
	mov	w9, #-1
	str	w9, [x8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atmel_pcm_preallocate_dma_buffer
	cbnz	w0, LBB0_9
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh7:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atmel_pcm_preallocate_dma_buffer
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_atmel_pcm_dmamask,4,2          ; @atmel_pcm_dmamask
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"at32-pcm:Allocating PCM capture DMA buffer\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.no_dead_strip	_atmel_pcm_new
.subsections_via_symbols
