	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pas_audio_start_input
_pas_audio_start_input:                 ## @pas_audio_start_input
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	movq	_audio_devs@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	movslq	%r15d, %r13
	movq	(%rcx,%r13,8), %rax
	movq	8(%rax), %rax
	movl	%ebx, %r15d
	sarl	%r15d
	cmpl	$4, (%rax)
	movl	%ebx, %r12d
	cmovgel	%r15d, %ebx
	movq	_pcm_count@GOTPCREL(%rip), %rsi
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	_pas_audiodev@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	_DMA_AUTOMODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	je	LBB0_3
## %bb.2:
	cmpl	(%rsi), %ebx
	jne	LBB0_3
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	movq	%rsi, %r14
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movq	8(%rax), %rax
	cmpl	$4, (%rax)
	cmovgel	%r15d, %r12d
	cmpl	(%r14), %r12d
	je	LBB0_5
## %bb.4:
	movl	%r12d, %ebx
	movl	$2954, %edi                     ## imm = 0xB8A
	callq	_pas_read
	andl	$-129, %eax
	movl	%eax, %edi
	movl	$2954, %esi                     ## imm = 0xB8A
	callq	_pas_write
	movl	$116, %edi
	movl	$5003, %esi                     ## imm = 0x138B
	callq	_pas_write
	movzbl	%bl, %edi
	movl	$5001, %esi                     ## imm = 0x1389
	callq	_pas_write
	movzbl	%bh, %edi
	movl	$5001, %esi                     ## imm = 0x1389
	callq	_pas_write
	movl	$2954, %edi                     ## imm = 0xB8A
	callq	_pas_read
	orl	$128, %eax
	movl	%eax, %edi
	movl	$2954, %esi                     ## imm = 0xB8A
	callq	_pas_write
	movl	%r12d, (%r14)
LBB0_5:
	movl	$2954, %edi                     ## imm = 0xB8A
	callq	_pas_read
	orl	$192, %eax
	movl	%eax, %edi
	movl	$2954, %esi                     ## imm = 0xB8A
	callq	_pas_write
	movq	_PCM_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pcm_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pas2_pcm.c: static void pas_audio_start_input(char *buf = %P, int count = %X)\n"

	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_pas_audiodev,8,3               ## @pas_audiodev
	.comm	_DMA_AUTOMODE,4,2               ## @DMA_AUTOMODE
	.comm	_pcm_count,4,2                  ## @pcm_count
	.comm	_pas_lock,4,2                   ## @pas_lock
	.comm	_PCM_ADC,4,2                    ## @PCM_ADC
	.comm	_pcm_mode,4,2                   ## @pcm_mode
	.no_dead_strip	_pas_audio_start_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pas_audio_start_input
_pas_audio_start_input:                 ; @pas_audio_start_input
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_DEB
Lloh2:
	adrp	x23, _audio_devs@GOTPAGE
Lloh3:
	ldr	x23, [x23, _audio_devs@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x8, [x9, w20, sxtw #3]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	asr	w24, w19, #1
	cmp	w8, #3
	csel	w8, w24, w19, gt
Lloh4:
	adrp	x22, _pcm_count@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pcm_count@GOTPAGEOFF]
	cbz	w21, LBB0_3
; %bb.1:
Lloh6:
	adrp	x10, _pas_audiodev@GOTPAGE
Lloh7:
	ldr	x10, [x10, _pas_audiodev@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
Lloh9:
	adrp	x10, _DMA_AUTOMODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DMA_AUTOMODE@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	and	w9, w10, w9
	ldr	w10, [x22]
	cmp	w9, #0
	ccmp	w8, w10, #0, ne
	b.ne	LBB0_3
; %bb.2:
	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
LBB0_3:
	sxtw	x20, w20
Lloh12:
	adrp	x0, _pas_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x8, [x23]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	csel	w19, w24, w19, gt
	ldr	w8, [x22]
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #2954
	bl	_pas_read
	and	w0, w0, #0xffffff7f
	mov	w1, #2954
	bl	_pas_write
	mov	w0, #116
	mov	w1, #5003
	bl	_pas_write
	and	w0, w19, #0xff
	mov	w1, #5001
	bl	_pas_write
	ubfx	w0, w19, #8, #8
	mov	w1, #5001
	bl	_pas_write
	mov	w0, #2954
	bl	_pas_read
	orr	w0, w0, #0x80
	mov	w1, #2954
	bl	_pas_write
	str	w19, [x22]
LBB0_5:
	mov	w0, #2954
	bl	_pas_read
	orr	w0, w0, #0xc0
	mov	w1, #2954
	bl	_pas_write
Lloh14:
	adrp	x8, _PCM_ADC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCM_ADC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _pcm_mode@GOTPAGE
Lloh18:
	ldr	x9, [x9, _pcm_mode@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
Lloh20:
	adrp	x0, _pas_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pas2_pcm.c: static void pas_audio_start_input(char *buf = %P, int count = %X)\n"

	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_pas_audiodev,8,3               ; @pas_audiodev
	.comm	_DMA_AUTOMODE,4,2               ; @DMA_AUTOMODE
	.comm	_pcm_count,4,2                  ; @pcm_count
	.comm	_pas_lock,4,2                   ; @pas_lock
	.comm	_PCM_ADC,4,2                    ; @PCM_ADC
	.comm	_pcm_mode,4,2                   ; @pcm_mode
	.no_dead_strip	_pas_audio_start_input
.subsections_via_symbols
