	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pxa2xx_pcm_new                 ## -- Begin function pxa2xx_pcm_new
	.p2align	4, 0x90
_pxa2xx_pcm_new:                        ## @pxa2xx_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	%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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	8(%rsi), %r13
	xorl	%ecx, %ecx
	testq	%r13, %r13
	setne	%cl
	xorl	%r8d, %r8d
	testq	%r12, %r12
	setne	%r8b
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r9
	xorl	%edx, %edx
	callq	_snd_pcm_new
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rdi
	movq	%rbx, 8(%rdi)
	movq	_pxa2xx_pcm_free_dma_buffers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_5:
	testq	%r13, %r13
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movq	_pxa2xx_pcm_dmamask@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	cmpl	$0, (%rax)
	jne	LBB0_5
LBB0_4:
	movl	$-1, (%rax)
	testq	%r13, %r13
	je	LBB0_7
LBB0_6:
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_pxa2xx_pcm_ops@GOTPCREL(%rip), %rdx
	movl	%ebx, %esi
	callq	_snd_pcm_set_ops
	movq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_pxa2xx_pcm_preallocate_dma_buffer
	testl	%eax, %eax
	jne	LBB0_11
LBB0_7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	movq	_pxa2xx_pcm_ops@GOTPCREL(%rip), %rdx
	movl	%ebx, %esi
	callq	_snd_pcm_set_ops
	movq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_pxa2xx_pcm_preallocate_dma_buffer
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PXA2xx-PCM"

	.comm	_pxa2xx_pcm_free_dma_buffers,4,2 ## @pxa2xx_pcm_free_dma_buffers
	.comm	_pxa2xx_pcm_dmamask,4,2         ## @pxa2xx_pcm_dmamask
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_pxa2xx_pcm_ops,4,2             ## @pxa2xx_pcm_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pxa2xx_pcm_new                 ; -- Begin function pxa2xx_pcm_new
	.p2align	2
_pxa2xx_pcm_new:                        ; @pxa2xx_pcm_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x22, x23, [x1]
	cmp	x23, #0
	cset	w3, ne
	cmp	x22, #0
	cset	w4, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	w2, #0
	bl	_snd_pcm_new
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	x0, [sp, #8]
	str	x21, [x0, #8]
Lloh2:
	adrp	x8, _pxa2xx_pcm_free_dma_buffers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pxa2xx_pcm_free_dma_buffers@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	w9, [x8]
	cbz	w9, LBB0_6
LBB0_4:
	cbnz	x23, LBB0_7
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x9, _pxa2xx_pcm_dmamask@GOTPAGE
Lloh6:
	ldr	x9, [x9, _pxa2xx_pcm_dmamask@GOTPAGEOFF]
	str	x9, [x8, #8]
	ldr	w9, [x8]
	cbnz	w9, LBB0_4
LBB0_6:
	mov	w9, #-1
	str	w9, [x8]
	cbz	x23, LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
Lloh10:
	adrp	x2, _pxa2xx_pcm_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _pxa2xx_pcm_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_snd_pcm_set_ops
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_pxa2xx_pcm_preallocate_dma_buffer
	cbnz	w0, LBB0_1
LBB0_8:
	cbz	x22, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x2, _pxa2xx_pcm_ops@GOTPAGE
Lloh16:
	ldr	x2, [x2, _pxa2xx_pcm_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_snd_pcm_set_ops
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_pxa2xx_pcm_preallocate_dma_buffer
	cbnz	w0, LBB0_1
LBB0_10:
	mov	w0, #0
	cbz	x19, LBB0_1
; %bb.11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PXA2xx-PCM"

	.comm	_pxa2xx_pcm_free_dma_buffers,4,2 ; @pxa2xx_pcm_free_dma_buffers
	.comm	_pxa2xx_pcm_dmamask,4,2         ; @pxa2xx_pcm_dmamask
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_pxa2xx_pcm_ops,4,2             ; @pxa2xx_pcm_ops
	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
.subsections_via_symbols
