	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_init_mac_registers
_mt76x0_init_mac_registers:             ## @mt76x0_init_mac_registers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_common_mac_reg_table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RANDOM_WRITE
	movq	_mt76x0_mac_reg_table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RANDOM_WRITE
	movq	_MT_MAC_SYS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_mt76_clear
	movq	_MT_EXT_CCA_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_mt76_set
	movq	_MT_FCE_L2_STUFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_FCE_L2_STUFF_WR_MPDU_LEN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt76_clear
	movq	_MT_WMM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	movl	$513, %ecx                      ## imm = 0x201
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mt76_rmw                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_common_mac_reg_table,4,2       ## @common_mac_reg_table
	.comm	_mt76x0_mac_reg_table,4,2       ## @mt76x0_mac_reg_table
	.comm	_MT_MAC_SYS_CTRL,4,2            ## @MT_MAC_SYS_CTRL
	.comm	_MT_EXT_CCA_CFG,4,2             ## @MT_EXT_CCA_CFG
	.comm	_MT_FCE_L2_STUFF,4,2            ## @MT_FCE_L2_STUFF
	.comm	_MT_FCE_L2_STUFF_WR_MPDU_LEN_EN,4,2 ## @MT_FCE_L2_STUFF_WR_MPDU_LEN_EN
	.comm	_MT_WMM_CTRL,4,2                ## @MT_WMM_CTRL
	.no_dead_strip	_mt76x0_init_mac_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_init_mac_registers
_mt76x0_init_mac_registers:             ; @mt76x0_init_mac_registers
	.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, x0
Lloh0:
	adrp	x8, _common_mac_reg_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _common_mac_reg_table@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_RANDOM_WRITE
Lloh3:
	adrp	x8, _mt76x0_mac_reg_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mt76x0_mac_reg_table@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RANDOM_WRITE
Lloh6:
	adrp	x8, _MT_MAC_SYS_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_MAC_SYS_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_mt76_clear
Lloh9:
	adrp	x8, _MT_EXT_CCA_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EXT_CCA_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #61440
	bl	_mt76_set
Lloh12:
	adrp	x8, _MT_FCE_L2_STUFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_FCE_L2_STUFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MT_FCE_L2_STUFF_WR_MPDU_LEN_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_FCE_L2_STUFF_WR_MPDU_LEN_EN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt76_clear
Lloh18:
	adrp	x8, _MT_WMM_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_WMM_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1023
	mov	w3, #513
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt76_rmw
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_common_mac_reg_table,4,2       ; @common_mac_reg_table
	.comm	_mt76x0_mac_reg_table,4,2       ; @mt76x0_mac_reg_table
	.comm	_MT_MAC_SYS_CTRL,4,2            ; @MT_MAC_SYS_CTRL
	.comm	_MT_EXT_CCA_CFG,4,2             ; @MT_EXT_CCA_CFG
	.comm	_MT_FCE_L2_STUFF,4,2            ; @MT_FCE_L2_STUFF
	.comm	_MT_FCE_L2_STUFF_WR_MPDU_LEN_EN,4,2 ; @MT_FCE_L2_STUFF_WR_MPDU_LEN_EN
	.comm	_MT_WMM_CTRL,4,2                ; @MT_WMM_CTRL
	.no_dead_strip	_mt76x0_init_mac_registers
.subsections_via_symbols
