	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_dm_cleanup                ## -- Begin function mlx5_dm_cleanup
	.p2align	4, 0x90
_mlx5_dm_cleanup:                       ## @mlx5_dm_cleanup
	.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	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	_log_steering_sw_icm_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_DEV_MEM
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bitmap_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_3:
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_log_header_modify_sw_icm_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5_CAP_DEV_MEM
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bitmap_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%r14), %rdi
	callq	_kfree
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_steering_sw_icm_size,4,2   ## @log_steering_sw_icm_size
	.comm	_log_header_modify_sw_icm_size,4,2 ## @log_header_modify_sw_icm_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_dm_cleanup                ; -- Begin function mlx5_dm_cleanup
	.p2align	2
_mlx5_dm_cleanup:                       ; @mlx5_dm_cleanup
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _log_steering_sw_icm_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_steering_sw_icm_size@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_DEV_MEM
	mov	x22, x0
	mov	x0, x20
	bl	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	sub	x0, x22, x0
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_bitmap_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_3:
	ldr	x21, [x19]
	cbz	x21, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _log_header_modify_sw_icm_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _log_header_modify_sw_icm_size@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_DEV_MEM
	mov	x22, x0
	mov	x0, x20
	bl	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	sub	x0, x22, x0
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_bitmap_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x0, [x19]
	bl	_kfree
LBB0_5:
	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	_kfree
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_log_steering_sw_icm_size,4,2   ; @log_steering_sw_icm_size
	.comm	_log_header_modify_sw_icm_size,4,2 ; @log_header_modify_sw_icm_size
.subsections_via_symbols
