	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_alloc             ## -- Begin function snd_pcm_plug_alloc
	.p2align	4, 0x90
_snd_pcm_plug_alloc:                    ## @snd_pcm_plug_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_pcm_plug_first
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_snd_pcm_plug_stream
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_snd_pcm_plug_first
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	movl	%eax, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setle	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snd_pcm_plugin_alloc
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_2
LBB0_10:
	movq	%rbx, %rdi
	callq	_snd_pcm_plug_last
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%rcx
	movl	%eax, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setle	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snd_pcm_plugin_alloc
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_2
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_plug_alloc             ; -- Begin function snd_pcm_plug_alloc
	.p2align	2
_snd_pcm_plug_alloc:                    ; @snd_pcm_plug_alloc
	.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
	mov	x20, x0
	bl	_snd_pcm_plug_first
	cmp	x0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	bl	_snd_pcm_plug_stream
Lloh3:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_snd_pcm_plug_first
	mov	x20, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, x0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #1
	cset	w0, lt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_pcm_plugin_alloc
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_10:
	mov	x0, x20
	bl	_snd_pcm_plug_last
	mov	x20, x0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, x0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w19, #1
	cset	w0, lt
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x20, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_snd_pcm_plugin_alloc
	tbz	w0, #31, LBB0_11
	b	LBB0_2
LBB0_16:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
.subsections_via_symbols
