	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_db_free                   ## -- Begin function mlx5_db_free
	.p2align	4, 0x90
_mlx5_db_free:                          ## @mlx5_db_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	xorl	%eax, %eax
	callq	_cache_line_size
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	___set_bit
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_bitmap_full
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	callq	_dma_free_coherent
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_list_del
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_bitmap_free
	movq	(%rbx), %rdi
	callq	_kfree
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_db_free                   ; -- Begin function mlx5_db_free
	.p2align	2
_mlx5_db_free:                          ; @mlx5_db_free
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w21, [x22]
	bl	_cache_line_size
	sdiv	w21, w21, w0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	___set_bit
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_bitmap_full
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	ldr	x8, [x20]
	ldp	w3, w2, [x8, #8]
	bl	_dma_free_coherent
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_list_del
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_bitmap_free
	ldr	x0, [x20]
	bl	_kfree
LBB0_2:
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
