	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_qp_free_icm
_mlx4_qp_free_icm:                      ## @mlx4_qp_free_icm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	-20(%rbp), %rdi
	movl	%r14d, %esi
	callq	_set_param_l
	movl	-20(%rbp), %esi
	movq	_RES_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RES_OP_MAP_ICM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX4_CMD_FREE_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	callq	_mlx4_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mlx4_warn
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___mlx4_qp_free_icm             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_QP,4,2                     ## @RES_QP
	.comm	_RES_OP_MAP_ICM,4,2             ## @RES_OP_MAP_ICM
	.comm	_MLX4_CMD_FREE_RES,4,2          ## @MLX4_CMD_FREE_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to free icm of qp:%d\n"

	.no_dead_strip	_mlx4_qp_free_icm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_qp_free_icm
_mlx4_qp_free_icm:                      ; @mlx4_qp_free_icm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	bl	_mlx4_is_mfunc
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, sp, #12
	mov	x1, x19
	bl	_set_param_l
	ldr	w1, [sp, #12]
Lloh0:
	adrp	x8, _RES_QP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_QP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _RES_OP_MAP_ICM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_OP_MAP_ICM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_FREE_RES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_FREE_RES@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x20
	bl	_mlx4_cmd
	cbz	x0, LBB0_3
; %bb.2:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_mlx4_warn
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	___mlx4_qp_free_icm
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_QP,4,2                     ; @RES_QP
	.comm	_RES_OP_MAP_ICM,4,2             ; @RES_OP_MAP_ICM
	.comm	_MLX4_CMD_FREE_RES,4,2          ; @MLX4_CMD_FREE_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to free icm of qp:%d\n"

	.no_dead_strip	_mlx4_qp_free_icm
.subsections_via_symbols
