	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sq_allocate_buffers
_sq_allocate_buffers:                   ## @sq_allocate_buffers
	.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
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rdi)
	jne	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	leal	(,%r12,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.3:
	movl	%r12d, %r12d
	shlq	$2, %r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	_dmasound@GOTPCREL(%rip), %rax
	callq	*8(%rax)
	movq	8(%r13), %rdi
	movl	%eax, (%rdi,%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	decl	%r15d
	cmpq	%rbx, %r12
	jne	LBB0_4
## %bb.11:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	movq	_dmasound@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi,%rbx), %edi
	movl	%r14d, %esi
	callq	*(%r15)
	movq	8(%r13), %rdi
	addq	$-4, %rbx
	jne	LBB0_7
LBB0_8:
	callq	_kfree
	movq	$0, 8(%r13)
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dmasound,16,3                  ## @dmasound
	.no_dead_strip	_sq_allocate_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sq_allocate_buffers
_sq_allocate_buffers:                   ; @sq_allocate_buffers
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	w1, w2, [x0]
	lsl	w0, w1, #3
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_1
; %bb.4:
	mov	w24, #0
	mov	x23, #0
	mov	w8, w21
	lsl	x25, x8, #2
Lloh2:
	adrp	x21, _dmasound@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dmasound@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x22]
	mov	x0, x20
	blr	x8
	mov	x8, x0
	ldr	x0, [x19, #8]
	str	w8, [x0, x23]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #4
	sub	w24, w24, #1
	cmp	x25, x23
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:
	cbz	w24, LBB0_10
; %bb.8:
	sub	x22, x23, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x0, x22]
	mov	x1, x20
	blr	x8
	ldr	x0, [x19, #8]
	sub	x22, x22, #4
	cmn	x22, #4
	b.ne	LBB0_9
LBB0_10:
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_11:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dmasound,16,3                  ; @dmasound
	.no_dead_strip	_sq_allocate_buffers
.subsections_via_symbols
