	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_set_tmac_template
_mt7603_set_tmac_template:              ## @mt7603_set_tmac_template
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$0, -64(%rbp)
	movq	_MT_TXD3_REM_TX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$15, %esi
	callq	_FIELD_PREP
	movl	%eax, -60(%rbp)
	movl	$0, -56(%rbp)
	movq	_MT_TXD5_SW_POWER_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	_MT_CLIENT_BASE_PHYS_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt7603_reg_map
	movl	%eax, %r15d
	movq	_MT_CLIENT_TMAC_INFO_TEMPLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	addl	%r15d, %r12d
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mt76_wr
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addl	$4, %r12d
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TXD3_REM_TX_COUNT,4,2       ## @MT_TXD3_REM_TX_COUNT
	.comm	_MT_TXD5_SW_POWER_MGMT,4,2      ## @MT_TXD5_SW_POWER_MGMT
	.comm	_MT_CLIENT_BASE_PHYS_ADDR,4,2   ## @MT_CLIENT_BASE_PHYS_ADDR
	.comm	_MT_CLIENT_TMAC_INFO_TEMPLATE,4,2 ## @MT_CLIENT_TMAC_INFO_TEMPLATE
	.no_dead_strip	_mt7603_set_tmac_template
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_set_tmac_template
_mt7603_set_tmac_template:              ; @mt7603_set_tmac_template
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #4]
Lloh3:
	adrp	x8, _MT_TXD3_REM_TX_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TXD3_REM_TX_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #15
	bl	_FIELD_PREP
	stp	w0, wzr, [sp, #8]
Lloh6:
	adrp	x8, _MT_TXD5_SW_POWER_MGMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_TXD5_SW_POWER_MGMT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #16]
Lloh9:
	adrp	x8, _MT_CLIENT_BASE_PHYS_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_CLIENT_BASE_PHYS_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt7603_reg_map
	mov	x20, x0
Lloh12:
	adrp	x8, _MT_CLIENT_TMAC_INFO_TEMPLATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_CLIENT_TMAC_INFO_TEMPLATE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	add	x21, sp, #4
	add	x0, sp, #4
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	add	w20, w23, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21, x22, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_mt76_wr
	add	x22, x22, #1
	add	x0, sp, #4
	bl	_ARRAY_SIZE
	add	w20, w20, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TXD3_REM_TX_COUNT,4,2       ; @MT_TXD3_REM_TX_COUNT
	.comm	_MT_TXD5_SW_POWER_MGMT,4,2      ; @MT_TXD5_SW_POWER_MGMT
	.comm	_MT_CLIENT_BASE_PHYS_ADDR,4,2   ; @MT_CLIENT_BASE_PHYS_ADDR
	.comm	_MT_CLIENT_TMAC_INFO_TEMPLATE,4,2 ; @MT_CLIENT_TMAC_INFO_TEMPLATE
	.no_dead_strip	_mt7603_set_tmac_template
.subsections_via_symbols
