	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pas_audio_open
_pas_audio_open:                        ## @pas_audio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	%eax, %edi
	callq	_DEB
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_pcm_busy@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movl	$1, (%rax)
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_PAS_PCM_INTRBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pas_set_intr
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_pcm_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_open_mode@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pas2_pcm.c: static int pas_audio_open(int mode = %X)\n"

	.comm	_pas_lock,4,2                   ## @pas_lock
	.comm	_pcm_busy,4,2                   ## @pcm_busy
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PAS_PCM_INTRBITS,4,2           ## @PAS_PCM_INTRBITS
	.comm	_pcm_count,8,3                  ## @pcm_count
	.comm	_open_mode,4,2                  ## @open_mode
	.no_dead_strip	_pas_audio_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pas_audio_open
_pas_audio_open:                        ; @pas_audio_open
	.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, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	bl	_DEB
Lloh2:
	adrp	x0, _pas_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh4:
	adrp	x8, _pcm_busy@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pcm_busy@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, _pas_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
Lloh11:
	adrp	x0, _pas_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x8, _PAS_PCM_INTRBITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAS_PCM_INTRBITS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_pas_set_intr
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w0, #0
Lloh16:
	adrp	x8, _pcm_count@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pcm_count@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x8, _open_mode@GOTPAGE
Lloh20:
	ldr	x8, [x8, _open_mode@GOTPAGEOFF]
Lloh21:
	str	w19, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pas2_pcm.c: static int pas_audio_open(int mode = %X)\n"

	.comm	_pas_lock,4,2                   ; @pas_lock
	.comm	_pcm_busy,4,2                   ; @pcm_busy
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PAS_PCM_INTRBITS,4,2           ; @PAS_PCM_INTRBITS
	.comm	_pcm_count,8,3                  ; @pcm_count
	.comm	_open_mode,4,2                  ; @open_mode
	.no_dead_strip	_pas_audio_open
.subsections_via_symbols
