	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa2xx_pcm_open
_pxa2xx_pcm_open:                       ## @pxa2xx_pcm_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	16(%rdi), %r15
	callq	___pxa2xx_pcm_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%r12), %r12
	movq	(%r14), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	8(%r15,%rdx,8), %rax
	movq	%rax, 8(%r12)
	movl	(%rax), %edi
	movq	_DMA_PRIO_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pxa2xx_pcm_dma_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_pxa_request_dma
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%ebx, (%r12)
	movq	%r14, %rdi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_pxa_free_dma
LBB0_5:
	movq	%r14, %rdi
	callq	___pxa2xx_pcm_close
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_DMA_PRIO_LOW,4,2               ## @DMA_PRIO_LOW
	.comm	_pxa2xx_pcm_dma_irq,4,2         ## @pxa2xx_pcm_dma_irq
	.no_dead_strip	_pxa2xx_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa2xx_pcm_open
_pxa2xx_pcm_open:                       ; @pxa2xx_pcm_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldp	x22, x21, [x0, #8]
	bl	___pxa2xx_pcm_open
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x22, [x22]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #8
	mov	w11, #16
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x8, [x21, x8]
	str	x8, [x22, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DMA_PRIO_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_PRIO_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _pxa2xx_pcm_dma_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pxa2xx_pcm_dma_irq@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_pxa_request_dma
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	str	w20, [x22]
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_pxa_free_dma
LBB0_4:
	mov	x0, x19
	bl	___pxa2xx_pcm_close
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_DMA_PRIO_LOW,4,2               ; @DMA_PRIO_LOW
	.comm	_pxa2xx_pcm_dma_irq,4,2         ; @pxa2xx_pcm_dma_irq
	.no_dead_strip	_pxa2xx_pcm_open
.subsections_via_symbols
