	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_edcca_tx_enable
_mt76x02_edcca_tx_enable:               ## @mt76x02_edcca_tx_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_MAC_SYS_CTRL_ENABLE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	callq	_mt76_set
	movq	_MT_AUTO_RSP_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_AUTO_RSP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_set
	movq	_MT_TX_PIN_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movq	_MT_TX_PIN_CFG_TXANT@GOTPCREL(%rip), %rcx
	movq	_MT_TX_PIN_CFG_RXANT@GOTPCREL(%rip), %rdx
	movq	_MT_TX_PIN_RFTR_EN@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_MT_TX_PIN_TRSW_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mt76_wr
	jmp	LBB0_3
LBB0_2:
	callq	_mt76_clear
	movq	_MT_AUTO_RSP_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_AUTO_RSP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_clear
	movq	_MT_TX_PIN_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MT_TX_PIN_CFG_TXANT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_clear
	movl	(%r15), %esi
	movq	_MT_TX_PIN_CFG_RXANT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_clear
LBB0_3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ## @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_AUTO_RSP_CFG,4,2            ## @MT_AUTO_RSP_CFG
	.comm	_MT_AUTO_RSP_EN,4,2             ## @MT_AUTO_RSP_EN
	.comm	_MT_TX_PIN_CFG,4,2              ## @MT_TX_PIN_CFG
	.comm	_MT_TX_PIN_CFG_TXANT,4,2        ## @MT_TX_PIN_CFG_TXANT
	.comm	_MT_TX_PIN_CFG_RXANT,4,2        ## @MT_TX_PIN_CFG_RXANT
	.comm	_MT_TX_PIN_RFTR_EN,4,2          ## @MT_TX_PIN_RFTR_EN
	.comm	_MT_TX_PIN_TRSW_EN,4,2          ## @MT_TX_PIN_TRSW_EN
	.no_dead_strip	_mt76x02_edcca_tx_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_edcca_tx_enable
_mt76x02_edcca_tx_enable:               ; @mt76x02_edcca_tx_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL_ENABLE_TX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	w20, LBB0_2
; %bb.1:
	bl	_mt76_set
Lloh6:
	adrp	x8, _MT_AUTO_RSP_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_AUTO_RSP_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MT_AUTO_RSP_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_AUTO_RSP_EN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_set
Lloh12:
	adrp	x21, _MT_TX_PIN_CFG@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MT_TX_PIN_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mt76_rr
Lloh14:
	adrp	x8, _MT_TX_PIN_CFG_TXANT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_TX_PIN_CFG_TXANT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MT_TX_PIN_CFG_RXANT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MT_TX_PIN_CFG_RXANT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _MT_TX_PIN_RFTR_EN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MT_TX_PIN_RFTR_EN@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _MT_TX_PIN_TRSW_EN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MT_TX_PIN_TRSW_EN@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, w11
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mt76_wr
	b	LBB0_3
LBB0_2:
	bl	_mt76_clear
Lloh26:
	adrp	x8, _MT_AUTO_RSP_CFG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_AUTO_RSP_CFG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _MT_AUTO_RSP_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_AUTO_RSP_EN@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
Lloh32:
	adrp	x21, _MT_TX_PIN_CFG@GOTPAGE
Lloh33:
	ldr	x21, [x21, _MT_TX_PIN_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh34:
	adrp	x8, _MT_TX_PIN_CFG_TXANT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MT_TX_PIN_CFG_TXANT@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
	ldr	w1, [x21]
Lloh37:
	adrp	x8, _MT_TX_PIN_CFG_RXANT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MT_TX_PIN_CFG_RXANT@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
LBB0_3:
	cmp	w20, #0
	cset	w8, eq
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.comm	_MT_MAC_SYS_CTRL_ENABLE_TX,4,2  ; @MT_MAC_SYS_CTRL_ENABLE_TX
	.comm	_MT_AUTO_RSP_CFG,4,2            ; @MT_AUTO_RSP_CFG
	.comm	_MT_AUTO_RSP_EN,4,2             ; @MT_AUTO_RSP_EN
	.comm	_MT_TX_PIN_CFG,4,2              ; @MT_TX_PIN_CFG
	.comm	_MT_TX_PIN_CFG_TXANT,4,2        ; @MT_TX_PIN_CFG_TXANT
	.comm	_MT_TX_PIN_CFG_RXANT,4,2        ; @MT_TX_PIN_CFG_RXANT
	.comm	_MT_TX_PIN_RFTR_EN,4,2          ; @MT_TX_PIN_RFTR_EN
	.comm	_MT_TX_PIN_TRSW_EN,4,2          ; @MT_TX_PIN_TRSW_EN
	.no_dead_strip	_mt76x02_edcca_tx_enable
.subsections_via_symbols
