	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_huge_buf
_free_huge_buf:                         ## @free_huge_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movq	_MLX5_Q_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
	callq	_mlx5_spin_lock
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	movl	%r15d, %edx
	callq	_bitmap_free_range
	movq	8(%rbx), %rdi
	callq	_bitmap_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	movq	8(%rbx), %rsi
	movq	_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	callq	_mlx5_spin_unlock
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_huge_mem                  ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_spin_unlock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_Q_CHUNK_SIZE,4,2          ## @MLX5_Q_CHUNK_SIZE
	.comm	_entry,4,2                      ## @entry
	.no_dead_strip	_free_huge_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_huge_buf
_free_huge_buf:                         ; @free_huge_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MLX5_Q_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_Q_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w21, w8, w9
	bl	_mlx5_spin_lock
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #16]
	mov	x2, x21
	bl	_bitmap_free_range
	ldr	x0, [x19, #8]
	bl	_bitmap_empty
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #4
	ldr	x1, [x19, #8]
Lloh3:
	adrp	x8, _entry@GOTPAGE
Lloh4:
	ldr	x8, [x8, _entry@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_mlx5_spin_unlock
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free_huge_mem
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mlx5_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_Q_CHUNK_SIZE,4,2          ; @MLX5_Q_CHUNK_SIZE
	.comm	_entry,4,2                      ; @entry
	.no_dead_strip	_free_huge_buf
.subsections_via_symbols
