	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_lib_malloc_pages       ## -- Begin function snd_pcm_lib_malloc_pages
	.p2align	4, 0x90
_snd_pcm_lib_malloc_pages:              ## @snd_pcm_lib_malloc_pages
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_SNDRV_DMA_TYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	32(%rbx), %r12
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	%r14, (%rax)
	jae	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_free_pages
LBB0_8:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %r15
	cmpq	%r14, (%rbx)
	jae	LBB0_14
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r15
	leaq	8(%rbx), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%r15)
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_snd_dma_alloc_pages
	testq	%rax, %rax
	js	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snd_pcm_set_runtime_buffer
	movq	%r14, (%r12)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_6:
	movq	%r14, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_DMA_TYPE_UNKNOWN,8,3     ## @SNDRV_DMA_TYPE_UNKNOWN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_pcm_lib_malloc_pages       ; -- Begin function snd_pcm_lib_malloc_pages
	.p2align	2
_snd_pcm_lib_malloc_pages:              ; @snd_pcm_lib_malloc_pages
	.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	x19, x1
	mov	x20, x0
	bl	_PCM_RUNTIME_CHECK
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x23, x20
	ldr	x8, [x23, #8]!
Lloh0:
	adrp	x9, _SNDRV_DMA_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_DMA_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldr	x22, [x20, #32]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cmp	x8, x19
	b.hs	LBB0_13
; %bb.7:
	mov	x0, x20
	bl	_snd_pcm_lib_free_pages
LBB0_8:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x20]
	mov	x21, x20
	cmp	x8, x19
	b.hs	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.11:
	mov	x21, x0
	ldr	q0, [x23]
	stur	q0, [x0, #8]
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #16]
	mov	x2, x19
	mov	x3, x21
	bl	_snd_dma_alloc_pages
	tbnz	x0, #63, LBB0_14
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_pcm_set_runtime_buffer
	str	x19, [x22]
	mov	w0, #1
	b	LBB0_4
LBB0_13:
	mov	w0, #0
	str	x19, [x22]
	b	LBB0_4
LBB0_14:
	mov	x0, x21
	bl	_kfree
LBB0_15:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_DMA_TYPE_UNKNOWN,8,3     ; @SNDRV_DMA_TYPE_UNKNOWN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
