	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mt7603_mcu_msg_send
___mt7603_mcu_msg_send:                 ## @__mt7603_mcu_msg_send
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r12
	cmpq	$0, 8(%rdi)
	movl	$12, %eax
	movl	$40, %r15d
	cmovel	%eax, %r15d
	movl	(%rdi), %eax
	leal	1(%rax), %r14d
	movl	%r14d, (%rdi)
	andl	$15, %r14d
	jne	LBB0_2
## %bb.1:
	addl	$2, %eax
	movl	%eax, (%rdi)
	andl	$15, %eax
	movl	%eax, %r14d
LBB0_2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%r12, %r15
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	movq	_MCU_CMD_FW_SCATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_3
## %bb.4:
	movq	_MCU_PORT_QUEUE_FW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MCU_PORT_QUEUE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	_MCU_PKT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	%r14d, (%rbx)
	testl	%r13d, %r13d
	js	LBB0_6
## %bb.7:
	movq	_MCU_CMD_EXT_CID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, 8(%rbx)
	movq	_MCU_Q_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, 12(%rbx)
	movl	%ecx, %r13d
	jmp	LBB0_8
LBB0_6:
	negl	%r13d
	movq	_MCU_Q_NA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	%r15, %rdx
	movl	%r13d, 4(%rbx)
	movl	%eax, 16(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r14d, (%rax)
LBB0_10:
	movq	_MT_TXQ_MCU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_tx_queue_skb_raw          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_CMD_FW_SCATTER,4,2         ## @MCU_CMD_FW_SCATTER
	.comm	_MCU_PORT_QUEUE_FW,4,2          ## @MCU_PORT_QUEUE_FW
	.comm	_MCU_PORT_QUEUE,4,2             ## @MCU_PORT_QUEUE
	.comm	_MCU_PKT_ID,4,2                 ## @MCU_PKT_ID
	.comm	_MCU_Q_NA,4,2                   ## @MCU_Q_NA
	.comm	_MCU_CMD_EXT_CID,4,2            ## @MCU_CMD_EXT_CID
	.comm	_MCU_Q_SET,4,2                  ## @MCU_Q_SET
	.comm	_MT_TXQ_MCU,4,2                 ## @MT_TXQ_MCU
	.no_dead_strip	___mt7603_mcu_msg_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mt7603_mcu_msg_send
___mt7603_mcu_msg_send:                 ; @__mt7603_mcu_msg_send
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	mov	w8, #40
	mov	w9, #12
	csel	w24, w9, w8, eq
	ldr	w8, [x0]
	add	w9, w8, #1
	str	w9, [x0]
	ands	w25, w9, #0xf
	b.ne	LBB0_2
; %bb.1:
	add	w8, w8, #2
	str	w8, [x20]
	and	w25, w8, #0xf
LBB0_2:
	mov	x0, x19
	mov	x1, x24
	bl	_skb_push
	mov	x23, x0
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [x23, #32]
Lloh0:
	adrp	x8, _MCU_CMD_FW_SCATTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCU_CMD_FW_SCATTER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MCU_PORT_QUEUE_FW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCU_PORT_QUEUE_FW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _MCU_PORT_QUEUE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MCU_PORT_QUEUE@GOTPAGEOFF]
	cmn	w8, w22
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #24]
Lloh7:
	adrp	x8, _MCU_PKT_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCU_PKT_ID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x23, #20]
	str	w25, [x23]
	tbnz	w22, #31, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _MCU_CMD_EXT_CID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCU_CMD_EXT_CID@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MCU_Q_SET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MCU_Q_SET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	mov	w10, #1
	stp	w22, w10, [x23, #8]
	b	LBB0_5
LBB0_4:
	neg	w8, w22
Lloh16:
	adrp	x9, _MCU_Q_NA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MCU_Q_NA@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
LBB0_5:
	str	w8, [x23, #4]
	str	w9, [x23, #16]
	cbz	x21, LBB0_7
; %bb.6:
	str	w25, [x21]
LBB0_7:
Lloh19:
	adrp	x8, _MT_TXQ_MCU@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT_TXQ_MCU@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mt76_tx_queue_skb_raw
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_CMD_FW_SCATTER,4,2         ; @MCU_CMD_FW_SCATTER
	.comm	_MCU_PORT_QUEUE_FW,4,2          ; @MCU_PORT_QUEUE_FW
	.comm	_MCU_PORT_QUEUE,4,2             ; @MCU_PORT_QUEUE
	.comm	_MCU_PKT_ID,4,2                 ; @MCU_PKT_ID
	.comm	_MCU_Q_NA,4,2                   ; @MCU_Q_NA
	.comm	_MCU_CMD_EXT_CID,4,2            ; @MCU_CMD_EXT_CID
	.comm	_MCU_Q_SET,4,2                  ; @MCU_Q_SET
	.comm	_MT_TXQ_MCU,4,2                 ; @MT_TXQ_MCU
	.no_dead_strip	___mt7603_mcu_msg_send
.subsections_via_symbols
