	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_alloc_cbs
_e100_alloc_cbs:                        ## @e100_alloc_cbs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	48(%rdi), %edi
	movl	56(%r14), %r15d
	movq	_cuc_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movl	$0, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	40(%r14), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_dma_pool_zalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$1, %r15d
	setne	%dil
	shlq	$5, %rdi
	leaq	(%rbx,%rdi), %rax
	movq	%rax, 24(%rbx)
	movq	%r15, %rax
	shlq	$5, %rax
	addq	%rbx, %rax
	addq	$-32, %rax
	movq	%rax, 16(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpl	$1, %r15d
	jne	LBB0_3
LBB0_8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	movq	%rbx, 16(%r14)
	movq	%rbx, 24(%r14)
	movq	%rbx, 32(%r14)
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	negq	%r13
	movl	$32, %r15d
	movl	$2, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r15), %rdx
	addq	$-32, %rdx
	movq	%rcx, 24(%rbx,%r15)
	movq	%rdx, 16(%rbx,%r15)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	(%r15,%rcx), %rdx
	movq	%rdx, 8(%rbx,%r15)
	leaq	32(%r15), %r14
	movq	%r14, %rdi
	movabsq	$137438953440, %rdx             ## imm = 0x1FFFFFFFE0
	andq	%rdx, %rdi
	testq	%rax, %rax
	cmoveq	%rax, %rdi
	addq	%rcx, %rdi
	callq	_cpu_to_le32
	movl	%eax, (%rbx,%r15)
	leaq	(%r12,%r13), %rax
	incq	%rax
	incq	%r12
	movq	%r14, %r15
	cmpq	$1, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r13), %rax
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r15), %rcx
	addq	$32, %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_cuc_start,4,2                  ## @cuc_start
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_e100_alloc_cbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_alloc_cbs
_e100_alloc_cbs:                        ; @e100_alloc_cbs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _cuc_start@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cuc_start@GOTPAGEOFF]
	ldr	w22, [x0, #56]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #52]
	str	wzr, [x0]
	stp	xzr, xzr, [x0, #24]
	str	xzr, [x0, #16]
	ldr	w0, [x0, #48]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x21, x19, #40
	mov	x2, x21
	bl	_dma_pool_zalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	cbz	w22, LBB0_4
; %bb.2:
	cmp	w22, #1
	cset	w8, ne
	lsl	x8, x8, #5
	add	x9, x20, x8
	str	x9, [x20, #24]
	add	x9, x20, x22, lsl #5
	ldr	x10, [x21]
	sub	x9, x9, #32
	stp	x10, x9, [x20, #8]
	add	x0, x8, x10
	bl	_cpu_to_le32
	str	w0, [x20]
	cmp	w22, #1
	b.ne	LBB0_7
LBB0_3:
	ldr	x20, [x19, #8]
LBB0_4:
	mov	w0, #0
	stp	x20, x20, [x19, #16]
	str	x20, [x19, #32]
	str	w22, [x19]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x23, #0
	sub	x24, x22, #2
	sub	x25, x22, #1
	mov	w26, #32
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x20, x26
	str	x9, [x27, #24]
	ldr	x9, [x21]
	add	x10, x26, x9
	stp	x10, x8, [x27, #8]
	add	x26, x26, #32
	and	x8, x26, #0x1fffffffe0
	cmp	x24, x23
	csel	x8, xzr, x8, eq
	add	x0, x8, x9
	bl	_cpu_to_le32
	str	w0, [x27]
	add	x23, x23, #1
	cmp	x25, x23
	b.eq	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x20, x26
	sub	x8, x9, #32
	add	x10, x23, #2
	cmp	x10, x22
	b.hs	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #32
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cuc_start,4,2                  ; @cuc_start
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_e100_alloc_cbs
.subsections_via_symbols
