	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_q_destroy               ## -- Begin function be_cmd_q_destroy
	.p2align	4, 0x90
_be_cmd_q_destroy:                      ## @be_cmd_q_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_2:
	movq	%r15, %rdi
	callq	_wrb_from_mbox
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_embedded_payload
	movq	%rax, %rsi
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_5
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_CMD_SUBSYSTEM_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OPCODE_ETH_TX_DESTROY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rsi, %rbx
	callq	_BUG
	movq	%rbx, %rsi
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_6:
	movq	_CMD_SUBSYSTEM_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OPCODE_ETH_RX_DESTROY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OPCODE_COMMON_MCC_DESTROY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OPCODE_COMMON_EQ_DESTROY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_OPCODE_COMMON_CQ_DESTROY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
LBB0_11:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	addq	$4, %rdi
	movl	%r13d, %esi
	movl	$8, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movl	4(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_be_mbox_notify_wait
	movl	%eax, %ebx
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_EQ_DESTROY,4,2   ## @OPCODE_COMMON_EQ_DESTROY
	.comm	_OPCODE_COMMON_CQ_DESTROY,4,2   ## @OPCODE_COMMON_CQ_DESTROY
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ## @CMD_SUBSYSTEM_ETH
	.comm	_OPCODE_ETH_TX_DESTROY,4,2      ## @OPCODE_ETH_TX_DESTROY
	.comm	_OPCODE_ETH_RX_DESTROY,4,2      ## @OPCODE_ETH_RX_DESTROY
	.comm	_OPCODE_COMMON_MCC_DESTROY,4,2  ## @OPCODE_COMMON_MCC_DESTROY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_q_destroy               ; -- Begin function be_cmd_q_destroy
	.p2align	2
_be_cmd_q_destroy:                      ; @be_cmd_q_destroy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_wrb_from_mbox
	mov	x22, x0
	bl	_embedded_payload
	mov	x21, x0
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh2:
	adrp	x8, _CMD_SUBSYSTEM_ETH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_SUBSYSTEM_ETH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _OPCODE_ETH_TX_DESTROY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPCODE_ETH_TX_DESTROY@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	bl	_BUG
	mov	w1, #0
	mov	w2, #0
	b	LBB0_11
LBB0_6:
Lloh7:
	adrp	x8, _CMD_SUBSYSTEM_ETH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_SUBSYSTEM_ETH@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _OPCODE_ETH_RX_DESTROY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPCODE_ETH_RX_DESTROY@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _OPCODE_COMMON_MCC_DESTROY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OPCODE_COMMON_MCC_DESTROY@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _OPCODE_COMMON_EQ_DESTROY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPCODE_COMMON_EQ_DESTROY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _OPCODE_COMMON_CQ_DESTROY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OPCODE_COMMON_CQ_DESTROY@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
LBB0_11:
	add	x0, x21, #4
	mov	w3, #8
	mov	x4, x22
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	ldr	w0, [x20, #4]
	bl	_cpu_to_le16
	str	w0, [x21]
	mov	x0, x19
	bl	_be_mbox_notify_wait
	mov	x21, x0
	str	wzr, [x20]
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_EQ_DESTROY,4,2   ; @OPCODE_COMMON_EQ_DESTROY
	.comm	_OPCODE_COMMON_CQ_DESTROY,4,2   ; @OPCODE_COMMON_CQ_DESTROY
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ; @CMD_SUBSYSTEM_ETH
	.comm	_OPCODE_ETH_TX_DESTROY,4,2      ; @OPCODE_ETH_TX_DESTROY
	.comm	_OPCODE_ETH_RX_DESTROY,4,2      ; @OPCODE_ETH_RX_DESTROY
	.comm	_OPCODE_COMMON_MCC_DESTROY,4,2  ; @OPCODE_COMMON_MCC_DESTROY
.subsections_via_symbols
