	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_configure_tx_delay      ## -- Begin function mt76x2_configure_tx_delay
	.p2align	4, 0x90
_mt76x2_configure_tx_delay:             ## @mt76x2_configure_tx_delay
	.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
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_mt76x02_ext_pa_enabled
	testq	%r14, %r14
	movl	$1052929, %ecx                  ## imm = 0x101101
	movl	$723969, %esi                   ## imm = 0xB0C01
	cmovel	%ecx, %esi
	movl	$1052673, %ecx                  ## imm = 0x101001
	movl	$723713, %edx                   ## imm = 0xB0B01
	cmovel	%ecx, %edx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	cmovnel	%esi, %edx
	shll	$16, %ebx
	addl	$70676, %ebx                    ## imm = 0x11414
	movq	_MT_TX_SW_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mt76_wr
	movq	_MT_TX_SW_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_XIFS_TIME_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_XIFS_TIME_CFG_OFDM_SIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$15, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_rmw_field                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_SW_CFG0,4,2              ## @MT_TX_SW_CFG0
	.comm	_MT_TX_SW_CFG1,4,2              ## @MT_TX_SW_CFG1
	.comm	_MT_XIFS_TIME_CFG,4,2           ## @MT_XIFS_TIME_CFG
	.comm	_MT_XIFS_TIME_CFG_OFDM_SIFS,4,2 ## @MT_XIFS_TIME_CFG_OFDM_SIFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_configure_tx_delay      ; -- Begin function mt76x2_configure_tx_delay
	.p2align	2
_mt76x2_configure_tx_delay:             ; @mt76x2_configure_tx_delay
	.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, x2
	mov	x20, x0
	bl	_mt76x02_ext_pa_enabled
	mov	w8, #2817
	movk	w8, #11, lsl #16
	add	w9, w8, #256
	mov	w10, #4097
	movk	w10, #16, lsl #16
	orr	w11, w10, #0x100
	cmp	x19, #0
	csel	w9, w11, w9, eq
	csel	w8, w10, w8, eq
	cmp	x0, #0
	csel	w2, w8, w9, eq
	mov	w8, #5140
	movk	w8, #1, lsl #16
	add	w9, w8, #16, lsl #12            ; =65536
	csel	w19, w9, w8, eq
Lloh0:
	adrp	x8, _MT_TX_SW_CFG0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_TX_SW_CFG0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76_wr
Lloh3:
	adrp	x8, _MT_TX_SW_CFG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_SW_CFG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_mt76_wr
Lloh6:
	adrp	x8, _MT_XIFS_TIME_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_XIFS_TIME_CFG@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MT_XIFS_TIME_CFG_OFDM_SIFS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT_XIFS_TIME_CFG_OFDM_SIFS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w2, [x9]
	mov	x0, x20
	mov	w3, #15
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76_rmw_field
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_SW_CFG0,4,2              ; @MT_TX_SW_CFG0
	.comm	_MT_TX_SW_CFG1,4,2              ; @MT_TX_SW_CFG1
	.comm	_MT_XIFS_TIME_CFG,4,2           ; @MT_XIFS_TIME_CFG
	.comm	_MT_XIFS_TIME_CFG_OFDM_SIFS,4,2 ; @MT_XIFS_TIME_CFG_OFDM_SIFS
.subsections_via_symbols
