	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_CheckStatusBuffer
_DAC960_CheckStatusBuffer:              ## @DAC960_CheckStatusBuffer
	.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	%rdi, %r12
	movl	(%rdi), %eax
	addl	%esi, %eax
	movl	4(%rdi), %ecx
	movl	8(%rdi), %edi
	addl	%ecx, %eax
	addl	$2, %eax
	movl	$1, %r14d
	cmpl	%edi, %eax
	jbe	LBB0_10
## %bb.1:
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:
	addl	%edi, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	16(%r12), %rsi
	movl	8(%r12), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	16(%r12), %rdi
	callq	_kfree
	movq	%r15, 16(%r12)
	shll	8(%r12)
	movslq	(%r12), %rax
	addq	%r15, %rax
	incq	%rax
	movq	%rax, 24(%r12)
	jmp	LBB0_10
LBB0_4:
	movq	_DAC960_InitialStatusBufferSize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	leal	(%rbx,%rbx), %eax
	cmpl	%esi, %ebx
	jb	LBB0_5
## %bb.6:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%ebx, 8(%r12)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_DAC960_Warning
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_InitialStatusBufferSize,4,2 ## @DAC960_InitialStatusBufferSize
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to expand Combined Status Buffer - Truncating\n"

	.no_dead_strip	_DAC960_CheckStatusBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_CheckStatusBuffer
_DAC960_CheckStatusBuffer:              ; @DAC960_CheckStatusBuffer
	.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
	ldp	w8, w9, [x0]
	add	w8, w1, w8
	add	w8, w8, w9
	add	w9, w8, #2
	ldr	w8, [x0, #8]
	cmp	w9, w8
	b.ls	LBB0_8
; %bb.1:
	mov	x19, x0
	cbz	w8, LBB0_4
; %bb.2:
	lsl	w0, w8, #1
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	str	w8, [x19, #8]
	ldrsw	x8, [x19]
	add	x8, x8, x20
	add	x8, x8, #1
	stp	x20, x8, [x19, #16]
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _DAC960_InitialStatusBufferSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAC960_InitialStatusBufferSize@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	lsl	w8, w8, #1
	cmp	w20, w1
	b.lo	LBB0_5
; %bb.6:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.7:
	str	w20, [x19, #8]
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DAC960_Warning
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_InitialStatusBufferSize,4,2 ; @DAC960_InitialStatusBufferSize
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to expand Combined Status Buffer - Truncating\n"

	.no_dead_strip	_DAC960_CheckStatusBuffer
.subsections_via_symbols
