	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fc_bulk_create
_mlx5_fc_bulk_create:                   ## @mlx5_fc_bulk_create
	.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	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_flow_counter_bulk_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_MLX5_CAP_GEN
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	callq	_MLX5_FC_BULK_NUM_FCS
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r15d
LBB0_3:
	leal	32(,%r15,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
	movl	(%rbx), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_mlx5_cmd_fc_bulk_alloc
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	callq	_kfree
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdx
	movq	%rdx, 24(%r12)
	movl	%r15d, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.7:
	movq	16(%r12), %rdi
	movq	%r12, %rsi
	callq	_mlx5_fc_init
	movq	8(%r12), %rsi
	xorl	%edi, %edi
	callq	_set_bit
	cmpl	$1, %r15d
	je	LBB0_13
## %bb.8:
	movl	%r15d, %r14d
	movl	$1, %ebx
	movl	$4, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r15, %rdi
	movq	-48(%rbp), %rdx
	addq	%rbx, %rdx
	movq	%r12, %rsi
	callq	_mlx5_fc_init
	movq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_set_bit
	incq	%rbx
	addq	$4, %r15
	cmpq	%rbx, %r14
	jne	LBB0_9
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_flow_counter_bulk_alloc,4,2    ## @flow_counter_bulk_alloc
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mlx5_fc_bulk_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fc_bulk_create
_mlx5_fc_bulk_create:                   ; @mlx5_fc_bulk_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _flow_counter_bulk_alloc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _flow_counter_bulk_alloc@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	mov	x23, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_MLX5_FC_BULK_NUM_FCS
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
	lsl	w8, w21, #2
	add	w0, w8, #32
Lloh6:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x19, x0
	mov	x0, x21
	bl	_BITS_TO_LONGS
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	_mlx5_cmd_fc_bulk_alloc
	cbz	w0, LBB0_10
; %bb.6:
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x20
	bl	_ERR_PTR
	mov	x19, x0
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x2, [sp, #8]
	str	x2, [x19, #24]
	str	w21, [x19]
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.11:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_mlx5_fc_init
	ldr	x1, [x19, #8]
	mov	w0, #0
	bl	_set_bit
	cmp	w21, #1
	b.eq	LBB0_9
; %bb.12:
	mov	w21, w21
	mov	w20, #1
	mov	w22, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #16]
	add	x0, x9, x22
	add	x2, x20, x8
	mov	x1, x19
	bl	_mlx5_fc_init
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_set_bit
	add	x20, x20, #1
	add	x22, x22, #4
	cmp	x21, x20
	b.ne	LBB0_13
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_flow_counter_bulk_alloc,4,2    ; @flow_counter_bulk_alloc
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mlx5_fc_bulk_create
.subsections_via_symbols
