	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_create_cq              ## -- Begin function mlx4_en_create_cq
	.p2align	4, 0x90
_mlx4_en_create_cq:                     ## @mlx4_en_create_cq
	.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
	movl	%r9d, %r15d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	movl	%r9d, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	(%r13), %rax
	imull	16(%rax), %r14d
	movl	%r14d, 4(%rbx)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rbx)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%rbx)
	movl	20(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_set_dev_node
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	addq	$16, %rsi
	movl	4(%rbx), %edx
	callq	_mlx4_alloc_hwq_res
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rdi
	movl	(%rax), %esi
	callq	_set_dev_node
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_en_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate CQ structure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_create_cq              ; -- Begin function mlx4_en_create_cq
	.p2align	2
_mlx4_en_create_cq:                     ; @mlx4_en_create_cq
	.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
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x25, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	mov	x2, x5
	bl	_kzalloc_node
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x26]
	ldp	w9, w10, [x8, #16]
	mul	w9, w9, w24
	stp	w24, w9, [x0]
	stp	w23, w22, [x0, #8]
	str	w10, [x0, #32]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_set_dev_node
	ldr	x0, [x26]
	add	x1, x20, #16
	ldr	w2, [x20, #4]
	bl	_mlx4_alloc_hwq_res
	mov	x21, x0
	ldr	x8, [x26]
	ldr	x9, [x8, #8]
	ldr	x0, [x9]
	ldr	w1, [x8]
	bl	_set_dev_node
	cbz	w21, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_en_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #16]
	str	x8, [x20, #24]
	str	x20, [x19]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate CQ structure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
