	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camelot_pcm_open
_camelot_pcm_open:                      ## @camelot_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	%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	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %rcx
	movq	_cam_pcm_data@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_camelot_pcm_hardware@GOTPCREL(%rip), %rsi
	callq	_snd_soc_set_runtime_hwparams
	leaq	(%r15,%r15,2), %rax
	leaq	(,%rax,8), %rdx
	addq	%r13, %rdx
	movl	(%r13,%rax,8), %r15d
	cmpq	%r12, %r14
	jne	LBB0_1
## %bb.4:
	movq	%rbx, 8(%r13,%rax,8)
	movq	_camelot_txdma@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r15d, %edi
	movq	%rdx, %rbx
	callq	_dmabrg_request_irq
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	incl	%r15d
	jmp	LBB0_6
LBB0_1:
	leal	2(%r15), %edi
	movq	%rbx, 16(%r13,%rax,8)
	movq	_camelot_rxdma@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rdx, %rbx
	callq	_dmabrg_request_irq
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	addl	$3, %r15d
LBB0_6:
	movl	(%r14), %esi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_dmabrg_request_irq
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cam_pcm_data,8,3               ## @cam_pcm_data
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_camelot_pcm_hardware,4,2       ## @camelot_pcm_hardware
	.comm	_camelot_rxdma,4,2              ## @camelot_rxdma
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio unit %d irqs already taken!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_camelot_txdma,4,2              ## @camelot_txdma
	.no_dead_strip	_camelot_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camelot_pcm_open
_camelot_pcm_open:                      ; @camelot_pcm_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
Lloh0:
	adrp	x8, _cam_pcm_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cam_pcm_data@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldp	x25, x22, [x0]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x24, [x8]
	mov	w8, #24
	madd	x19, x24, x8, x23
Lloh3:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
Lloh6:
	adrp	x1, _camelot_pcm_hardware@GOTPAGE
Lloh7:
	ldr	x1, [x1, _camelot_pcm_hardware@GOTPAGEOFF]
	bl	_snd_soc_set_runtime_hwparams
	ldr	w20, [x19]
	cmp	x25, x26
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #24
	madd	x8, x24, x8, x23
	str	x21, [x8, #8]
Lloh8:
	adrp	x21, _camelot_txdma@GOTPAGE
Lloh9:
	ldr	x21, [x21, _camelot_txdma@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_dmabrg_request_irq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.2:
	add	w0, w20, #1
	b	LBB0_6
LBB0_3:
	add	w0, w20, #2
	mov	w8, #24
	madd	x8, x24, x8, x23
	str	x21, [x8, #16]
Lloh10:
	adrp	x21, _camelot_rxdma@GOTPAGE
Lloh11:
	ldr	x21, [x21, _camelot_rxdma@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_dmabrg_request_irq
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_4:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x1, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	add	w0, w20, #3
LBB0_6:
	ldr	w1, [x21]
	mov	x2, x19
	bl	_dmabrg_request_irq
	mov	w0, #0
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cam_pcm_data,8,3               ; @cam_pcm_data
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_camelot_pcm_hardware,4,2       ; @camelot_pcm_hardware
	.comm	_camelot_rxdma,4,2              ; @camelot_rxdma
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio unit %d irqs already taken!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_camelot_txdma,4,2              ; @camelot_txdma
	.no_dead_strip	_camelot_pcm_open
.subsections_via_symbols
