	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_mac_set_timing          ## -- Begin function mt7603_mac_set_timing
	.p2align	4, 0x90
_mt7603_mac_set_timing:                 ## @mt7603_mac_set_timing
	.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	%rdi, %r14
	movq	_MT_TIMEOUT_VAL_PLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %r15
	movl	$231, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	movq	_MT_TIMEOUT_VAL_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	movl	$48, %esi
	callq	_FIELD_PREP
	orl	%eax, %r13d
	movl	(%r15), %edi
	movl	$60, %esi
	callq	_FIELD_PREP
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movl	$24, %esi
	callq	_FIELD_PREP
	orl	%eax, %r15d
	movl	(%r14), %eax
	leal	(%rax,%rax,2), %r12d
	movq	_MT_TIMEOUT_VAL_PLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_MT_TIMEOUT_VAL_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$16, %eax
	movl	$10, %r12d
	cmovel	%eax, %r12d
	movq	_MT_ARB_SCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_ARB_SCR_TX_DISABLE@GOTPCREL(%rip), %rax
	movq	_MT_ARB_SCR_RX_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mt76_set
	movl	$1, %edi
	callq	_udelay
	movq	_MT_TIMEOUT_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %r13d
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_mt76_wr
	movq	_MT_TIMEOUT_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_IFS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MT_IFS_EIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$360, %esi                      ## imm = 0x168
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_MT_IFS_RIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_MT_IFS_SIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_IFS_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	cmpl	$20, 4(%r14)
	jge	LBB0_1
## %bb.2:
	movq	_MT7603_CFEND_RATE_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MT7603_CFEND_RATE_11B@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_MT_AGG_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_AGG_CONTROL_CFEND_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mt76_rmw_field
	movq	_MT_ARB_SCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_ARB_SCR_RX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT_ARB_SCR_TX_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_clear                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TIMEOUT_VAL_PLCP,4,2        ## @MT_TIMEOUT_VAL_PLCP
	.comm	_MT_TIMEOUT_VAL_CCA,4,2         ## @MT_TIMEOUT_VAL_CCA
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_MT_ARB_SCR,4,2                 ## @MT_ARB_SCR
	.comm	_MT_ARB_SCR_TX_DISABLE,4,2      ## @MT_ARB_SCR_TX_DISABLE
	.comm	_MT_ARB_SCR_RX_DISABLE,4,2      ## @MT_ARB_SCR_RX_DISABLE
	.comm	_MT_TIMEOUT_CCK,4,2             ## @MT_TIMEOUT_CCK
	.comm	_MT_TIMEOUT_OFDM,4,2            ## @MT_TIMEOUT_OFDM
	.comm	_MT_IFS,4,2                     ## @MT_IFS
	.comm	_MT_IFS_EIFS,4,2                ## @MT_IFS_EIFS
	.comm	_MT_IFS_RIFS,4,2                ## @MT_IFS_RIFS
	.comm	_MT_IFS_SIFS,4,2                ## @MT_IFS_SIFS
	.comm	_MT_IFS_SLOT,4,2                ## @MT_IFS_SLOT
	.comm	_MT7603_CFEND_RATE_DEFAULT,4,2  ## @MT7603_CFEND_RATE_DEFAULT
	.comm	_MT7603_CFEND_RATE_11B,4,2      ## @MT7603_CFEND_RATE_11B
	.comm	_MT_AGG_CONTROL,4,2             ## @MT_AGG_CONTROL
	.comm	_MT_AGG_CONTROL_CFEND_RATE,4,2  ## @MT_AGG_CONTROL_CFEND_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7603_mac_set_timing          ; -- Begin function mt7603_mac_set_timing
	.p2align	2
_mt7603_mac_set_timing:                 ; @mt7603_mac_set_timing
	.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	x19, x0
Lloh0:
	adrp	x21, _MT_TIMEOUT_VAL_PLCP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT_TIMEOUT_VAL_PLCP@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #231
	bl	_FIELD_PREP
	mov	x20, x0
Lloh2:
	adrp	x23, _MT_TIMEOUT_VAL_CCA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MT_TIMEOUT_VAL_CCA@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #48
	bl	_FIELD_PREP
	orr	w22, w0, w20
	ldr	w0, [x21]
	mov	w1, #60
	bl	_FIELD_PREP
	mov	x20, x0
	ldr	w0, [x23]
	mov	w1, #24
	bl	_FIELD_PREP
	orr	w26, w0, w20
	ldr	w8, [x19]
	add	w20, w8, w8, lsl #1
	ldr	w0, [x21]
	mov	x1, x20
	bl	_FIELD_PREP
	mov	x21, x0
	ldr	w0, [x23]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w21, w0, w21
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #10
	mov	w9, #16
	csel	w20, w9, w8, eq
Lloh7:
	adrp	x23, _MT_ARB_SCR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MT_ARB_SCR@GOTPAGEOFF]
Lloh9:
	adrp	x24, _MT_ARB_SCR_TX_DISABLE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MT_ARB_SCR_TX_DISABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x24]
Lloh11:
	adrp	x25, _MT_ARB_SCR_RX_DISABLE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MT_ARB_SCR_RX_DISABLE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mt76_set
	mov	w0, #1
	bl	_udelay
Lloh13:
	adrp	x8, _MT_TIMEOUT_CCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT_TIMEOUT_CCK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	w2, w21, w22
	mov	x0, x19
	bl	_mt76_wr
Lloh16:
	adrp	x8, _MT_TIMEOUT_OFDM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MT_TIMEOUT_OFDM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	w2, w21, w26
	mov	x0, x19
	bl	_mt76_wr
Lloh19:
	adrp	x8, _MT_IFS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT_IFS@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
Lloh22:
	adrp	x8, _MT_IFS_EIFS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MT_IFS_EIFS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #360
	bl	_FIELD_PREP
	mov	x22, x0
Lloh25:
	adrp	x8, _MT_IFS_RIFS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MT_IFS_RIFS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_FIELD_PREP
	orr	w22, w0, w22
Lloh28:
	adrp	x8, _MT_IFS_SIFS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MT_IFS_SIFS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w20, w22, w0
Lloh31:
	adrp	x8, _MT_IFS_SLOT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MT_IFS_SLOT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_FIELD_PREP
	orr	w2, w20, w0
	mov	x0, x19
	mov	x1, x21
	bl	_mt76_wr
Lloh34:
	adrp	x8, _MT7603_CFEND_RATE_DEFAULT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MT7603_CFEND_RATE_DEFAULT@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh36:
	adrp	x10, _MT7603_CFEND_RATE_11B@GOTPAGE
Lloh37:
	ldr	x10, [x10, _MT7603_CFEND_RATE_11B@GOTPAGEOFF]
	cmp	w9, #20
	csel	x8, x8, x10, lt
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _MT_AGG_CONTROL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MT_AGG_CONTROL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _MT_AGG_CONTROL_CFEND_RATE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MT_AGG_CONTROL_CFEND_RATE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_rmw_field
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	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_clear
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TIMEOUT_VAL_PLCP,4,2        ; @MT_TIMEOUT_VAL_PLCP
	.comm	_MT_TIMEOUT_VAL_CCA,4,2         ; @MT_TIMEOUT_VAL_CCA
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_MT_ARB_SCR,4,2                 ; @MT_ARB_SCR
	.comm	_MT_ARB_SCR_TX_DISABLE,4,2      ; @MT_ARB_SCR_TX_DISABLE
	.comm	_MT_ARB_SCR_RX_DISABLE,4,2      ; @MT_ARB_SCR_RX_DISABLE
	.comm	_MT_TIMEOUT_CCK,4,2             ; @MT_TIMEOUT_CCK
	.comm	_MT_TIMEOUT_OFDM,4,2            ; @MT_TIMEOUT_OFDM
	.comm	_MT_IFS,4,2                     ; @MT_IFS
	.comm	_MT_IFS_EIFS,4,2                ; @MT_IFS_EIFS
	.comm	_MT_IFS_RIFS,4,2                ; @MT_IFS_RIFS
	.comm	_MT_IFS_SIFS,4,2                ; @MT_IFS_SIFS
	.comm	_MT_IFS_SLOT,4,2                ; @MT_IFS_SLOT
	.comm	_MT7603_CFEND_RATE_DEFAULT,4,2  ; @MT7603_CFEND_RATE_DEFAULT
	.comm	_MT7603_CFEND_RATE_11B,4,2      ; @MT7603_CFEND_RATE_11B
	.comm	_MT_AGG_CONTROL,4,2             ; @MT_AGG_CONTROL
	.comm	_MT_AGG_CONTROL_CFEND_RATE,4,2  ; @MT_AGG_CONTROL_CFEND_RATE
.subsections_via_symbols
