	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_lp_tx_filter_bw_cal
_rt2800_lp_tx_filter_bw_cal:            ## @rt2800_lp_tx_filter_bw_cal
	.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, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$130, %edx
	callq	_rt2800_bbp_dcoc_write
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%r14, %rdi
	movl	$159, %esi
	callq	_rt2800_bbp_read
	cmpl	$2, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	cmpl	$19, %ebx
	movl	%eax, %ebx
	jb	LBB0_1
LBB0_3:
	movq	%r14, %rdi
	movl	$57, %esi
	callq	_rt2800_bbp_dcoc_read
	andb	$127, %al
	cmpb	$64, %al
	setae	%cl
	shlb	$7, %cl
	orb	%al, %cl
	movsbl	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rt2800_lp_tx_filter_bw_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_lp_tx_filter_bw_cal
_rt2800_lp_tx_filter_bw_cal:            ; @rt2800_lp_tx_filter_bw_cal
	.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
	mov	w1, #0
	mov	w2, #130
	bl	_rt2800_bbp_dcoc_write
	mov	w20, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #159
	bl	_rt2800_bbp_read
	cmp	w0, #2
	ccmp	w20, #19, #2, ne
	add	w20, w20, #1
	b.lo	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #57
	bl	_rt2800_bbp_dcoc_read
	and	w8, w0, #0x7f
	cmp	w8, #63
	cset	w9, hi
	bfi	w8, w9, #7, #1
	sxtb	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rt2800_lp_tx_filter_bw_cal
.subsections_via_symbols
