	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_txq_create              ## -- Begin function be_cmd_txq_create
	.p2align	4, 0x90
_be_cmd_txq_create:                     ## @be_cmd_txq_create
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	leaq	36(%rsi), %rbx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_embedded_payload
	movq	%rax, %r15
	movq	_CMD_SUBSYSTEM_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_ETH_TX_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %ecx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r14, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %r13
	movl	$1, (%r15)
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_BEx_chip
	movq	%rbx, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_BE_FUNCTION_CAPS_SUPER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
LBB0_4:
	movl	$2, (%r15)
LBB0_6:
	movl	4(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r15)
LBB0_7:
	movl	36(%r12), %esi
	movl	40(%r12), %edi
	callq	_PAGES_4K_SPANNED
	movl	%eax, 32(%r15)
	movq	_BE_ULP1_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_BE_ETH_TX_RING_TYPE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	8(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movl	32(%r12), %edi
	callq	_be_encoded_q_len
	movl	%eax, 8(%r15)
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_be_cmd_page_addrs_prepare
	movl	(%r15), %r15d
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_be_cmd_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	leaq	-48(%rbp), %rdi
	callq	_embedded_payload
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, 28(%r12)
	cmpl	$2, %r15d
	jne	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	jmp	LBB0_11
LBB0_10:
	movq	_DB_TXULP1_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movl	%eax, (%r12)
	movl	$1, 24(%r12)
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, (%r15)
	jg	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ## @CMD_SUBSYSTEM_ETH
	.comm	_OPCODE_ETH_TX_CREATE,4,2       ## @OPCODE_ETH_TX_CREATE
	.comm	_BE_FUNCTION_CAPS_SUPER_NIC,4,2 ## @BE_FUNCTION_CAPS_SUPER_NIC
	.comm	_BE_ULP1_NUM,4,2                ## @BE_ULP1_NUM
	.comm	_BE_ETH_TX_RING_TYPE_STANDARD,4,2 ## @BE_ETH_TX_RING_TYPE_STANDARD
	.comm	_DB_TXULP1_OFFSET,4,2           ## @DB_TXULP1_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_txq_create              ; -- Begin function be_cmd_txq_create
	.p2align	2
_be_cmd_txq_create:                     ; @be_cmd_txq_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	add	x21, x1, #36
	add	x0, sp, #8
	bl	_embedded_payload
	mov	x22, x0
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_ETH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_ETH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_ETH_TX_CREATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_ETH_TX_CREATE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w3, #48
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	mov	x0, x20
	bl	_lancer_chip
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_BEx_chip
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _BE_FUNCTION_CAPS_SUPER_NIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BE_FUNCTION_CAPS_SUPER_NIC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_4:
	mov	w8, #2
LBB0_5:
	str	w8, [x22]
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_cpu_to_le16
	str	x0, [x22, #40]
LBB0_7:
	ldp	w1, w0, [x19, #36]
	bl	_PAGES_4K_SPANNED
	str	w0, [x22, #32]
Lloh9:
	adrp	x8, _BE_ULP1_NUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BE_ULP1_NUM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BE_ETH_TX_RING_TYPE_STANDARD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BE_ETH_TX_RING_TYPE_STANDARD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	ldr	w0, [x19, #32]
	bl	_be_encoded_q_len
	str	w0, [x22, #8]
	ldr	w23, [x22, #4]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x23
	mov	x2, x21
	bl	_be_cmd_page_addrs_prepare
	ldr	w22, [x22]
	add	x1, sp, #8
	mov	x0, x20
	bl	_be_cmd_notify_wait
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.8:
	add	x0, sp, #8
	bl	_embedded_payload
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_le16_to_cpu
	str	w0, [x19, #28]
	cmp	w22, #2
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x21]
	bl	_le32_to_cpu
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _DB_TXULP1_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DB_TXULP1_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_11:
	str	w0, [x19]
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ge	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SUBSYSTEM_ETH,4,2          ; @CMD_SUBSYSTEM_ETH
	.comm	_OPCODE_ETH_TX_CREATE,4,2       ; @OPCODE_ETH_TX_CREATE
	.comm	_BE_FUNCTION_CAPS_SUPER_NIC,4,2 ; @BE_FUNCTION_CAPS_SUPER_NIC
	.comm	_BE_ULP1_NUM,4,2                ; @BE_ULP1_NUM
	.comm	_BE_ETH_TX_RING_TYPE_STANDARD,4,2 ; @BE_ETH_TX_RING_TYPE_STANDARD
	.comm	_DB_TXULP1_OFFSET,4,2           ; @DB_TXULP1_OFFSET
.subsections_via_symbols
