	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_cq_frag_buf
_alloc_cq_frag_buf:                     ## @alloc_cq_frag_buf
	.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
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	12(%rsi), %r12
	movl	%ecx, %edi
	callq	_ilog2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rdi
	movl	%r13d, %esi
	imull	%r14d, %esi
	movl	(%rdi), %ecx
	movq	%r12, %rdx
	callq	_mlx5_frag_buf_alloc_node
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	cmpl	$128, %r13d
	sete	%sil
	orl	$6, %esi
	movl	12(%r15), %edi
	leaq	8(%r15), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx5_init_fbc
	movl	%r13d, (%r15)
	movl	%r14d, 4(%r15)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alloc_cq_frag_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_cq_frag_buf
_alloc_cq_frag_buf:                     ; @alloc_cq_frag_buf
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	add	x24, x1, #12
	mov	x0, x3
	bl	_ilog2
	mov	x22, x0
	ldr	x0, [x23]
	mul	w1, w20, w19
	ldr	w3, [x0]
	mov	x2, x24
	bl	_mlx5_frag_buf_alloc_node
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.1:
	cmp	w20, #128
	mov	w8, #6
	cinc	w1, w8, eq
	ldr	w0, [x21, #12]
	add	x3, x21, #8
	mov	x2, x22
	bl	_mlx5_init_fbc
	stp	w20, w19, [x21]
LBB0_2:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alloc_cq_frag_buf
.subsections_via_symbols
