	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_apply_ch14_fixup
_mt7601u_apply_ch14_fixup:              ## @mt7601u_apply_ch14_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	cmpl	$14, %esi
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_MT_BW_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$96, %edx
	callq	_mt7601u_bbp_wr
	movq	%rbx, %rdi
	movl	$178, %esi
	xorl	%edx, %edx
	callq	_mt7601u_bbp_wr
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	addq	$-2, %rdx
	movq	8(%r14), %rax
	movq	%rdx, (%rax)
	movq	8(%rcx), %rcx
	addq	$-2, %rcx
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_mt7601u_bbp_rmw
	movq	%rbx, %rdi
	movl	$178, %esi
	movl	$255, %edx
	callq	_mt7601u_bbp_wr
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movq	8(%r14), %rax
	movq	%rdx, (%rax)
	movq	8(%rcx), %rcx
LBB0_4:
	movq	%rcx, 8(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_BW_20,8,3                   ## @MT_BW_20
	.no_dead_strip	_mt7601u_apply_ch14_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_apply_ch14_fixup
_mt7601u_apply_ch14_fixup:              ; @mt7601u_apply_ch14_fixup
	.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
	ldr	x20, [x0, #8]
	cmp	w1, #14
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MT_BW_20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT_BW_20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #96
	bl	_mt7601u_bbp_wr
	mov	x0, x19
	mov	w1, #178
	mov	w2, #0
	bl	_mt7601u_bbp_wr
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	x8, [x9]
	sub	x10, x8, #2
	ldr	x8, [x20, #8]
	str	x10, [x8]
	ldr	x9, [x9, #8]
	sub	x9, x9, #2
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #32
	mov	w3, #0
	bl	_mt7601u_bbp_rmw
	mov	x0, x19
	mov	w1, #178
	mov	w2, #255
	bl	_mt7601u_bbp_wr
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	x10, [x9]
	ldr	x8, [x20, #8]
	str	x10, [x8]
	ldr	x9, [x9, #8]
LBB0_4:
	str	x9, [x8, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_BW_20,8,3                   ; @MT_BW_20
	.no_dead_strip	_mt7601u_apply_ch14_fixup
.subsections_via_symbols
