	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_destroy          ## -- Begin function mlx5dr_action_destroy
	.p2align	4, 0x90
_mlx5dr_action_destroy:                 ## @mlx5dr_action_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$64, %rdi
	callq	_refcount_read
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	32(%rbx), %rax
	movl	4(%rax), %edi
	movl	40(%rbx), %esi
	callq	_mlx5dr_cmd_destroy_reformat_ctx
	movq	32(%rbx), %rdi
	jmp	LBB0_10
LBB0_5:
	movl	24(%rbx), %edi
	callq	_mlx5dr_icm_free_chunk
LBB0_6:
	movq	32(%rbx), %rdi
	jmp	LBB0_10
LBB0_7:
	movl	24(%rbx), %edi
	callq	_mlx5dr_icm_free_chunk
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	8(%rbx), %rdi
	jmp	LBB0_10
LBB0_8:
	cmpl	$0, 56(%rbx)
	jne	LBB0_11
## %bb.9:
	movq	48(%rbx), %rdi
LBB0_10:
	callq	_refcount_dec
LBB0_11:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_destroy          ; -- Begin function mlx5dr_action_destroy
	.p2align	2
_mlx5dr_action_destroy:                 ; @mlx5dr_action_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #64
	bl	_refcount_read
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #40]
	bl	_mlx5dr_cmd_destroy_reformat_ctx
	ldr	x0, [x19, #32]
	b	LBB0_10
LBB0_5:
	ldr	w0, [x19, #24]
	bl	_mlx5dr_icm_free_chunk
LBB0_6:
	ldr	x0, [x19, #32]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_mlx5dr_icm_free_chunk
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_11
; %bb.9:
	ldr	x0, [x19, #48]
LBB0_10:
	bl	_refcount_dec
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
