	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_init_rx_filter
_rt2800_init_rx_filter:                 ## @rt2800_init_rx_filter
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edx, %edx
	testl	%esi, %esi
	setne	%dl
	shlq	$5, %rdx
	orq	$7, %rdx
	movl	$24, %esi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_rt2800_bbp_read
	movq	%rax, -64(%rbp)
	movq	_BBP4_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rbx,%rbx), %edx
	leaq	-64(%rbp), %rdi
	callq	_rt2x00_set_field8
	movl	-64(%rbp), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_rt2800_bbp_write
	movq	%r15, %rdi
	movl	$31, %esi
	callq	_rt2800_rfcsr_read
	movq	%rax, -48(%rbp)
	movq	_RFCSR31_RX_H20M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field8
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$31, %esi
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_rt2800_rfcsr_read
	movq	%rax, -48(%rbp)
	movq	_RFCSR22_BASEBAND_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	_rt2800_bbp_write
	movl	$99, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$25, %esi
	movl	$144, %edx
	callq	_rt2800_bbp_write
	movl	$1, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$55, %esi
	callq	_rt2800_bbp_read
	movq	%rax, %r14
	subl	$1, %ebx
	setb	%al
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	movl	$24, %esi
	movl	$6, %edx
	callq	_rt2800_bbp_write
	movq	%r15, %r13
	movl	$100, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$25, %esi
	movl	$144, %edx
	callq	_rt2800_bbp_write
	movl	$1, %edi
	callq	_msleep
	movq	%r13, %rdi
	movl	$55, %esi
	callq	_rt2800_bbp_read
	movq	%r14, %rcx
	subq	%rax, %rcx
	cmpq	%r12, %rcx
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	xorl	%eax, %eax
	cmpq	%r12, %rcx
	sete	%al
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	movq	%r13, %rdi
	movl	$24, %esi
	movq	%rbx, %rdx
	callq	_rt2800_rfcsr_write
	decl	%r15d
	jne	LBB0_4
LBB0_6:
	cmpq	$1, -56(%rbp)                   ## 8-byte Folded Reload
	adcq	$-1, %rbx
	movq	%r13, %rdi
	movl	$24, %esi
	movq	%rbx, %rdx
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBP4_BANDWIDTH,4,2             ## @BBP4_BANDWIDTH
	.comm	_RFCSR31_RX_H20M,4,2            ## @RFCSR31_RX_H20M
	.comm	_RFCSR22_BASEBAND_LOOPBACK,4,2  ## @RFCSR22_BASEBAND_LOOPBACK
	.no_dead_strip	_rt2800_init_rx_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_init_rx_filter
_rt2800_init_rx_filter:                 ; @rt2800_init_rx_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	cmp	w1, #0
	mov	w8, #39
	mov	w9, #7
	csel	x21, x9, x8, eq
	mov	w1, #24
	mov	x2, x21
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #4
	bl	_rt2800_bbp_read
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _BBP4_BANDWIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBP4_BANDWIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	lsl	w2, w22, #1
	add	x0, sp, #8
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #4
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #31
	bl	_rt2800_rfcsr_read
	str	x0, [sp]
Lloh3:
	adrp	x8, _RFCSR31_RX_H20M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFCSR31_RX_H20M@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, sp
	mov	x2, x22
	bl	_rt2x00_set_field8
	ldr	x2, [sp]
	mov	x0, x19
	mov	w1, #31
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #22
	bl	_rt2800_rfcsr_read
	str	x0, [sp]
Lloh6:
	adrp	x8, _RFCSR22_BASEBAND_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RFCSR22_BASEBAND_LOOPBACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, sp
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	x2, [sp]
	mov	x0, x19
	mov	w1, #22
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #0
	bl	_rt2800_bbp_write
	mov	w8, #99
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	mov	x0, x19
	mov	w1, #25
	mov	w2, #144
	bl	_rt2800_bbp_write
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #55
	bl	_rt2800_bbp_read
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w23, #1
	cbnz	w23, LBB0_1
LBB0_3:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #6
	bl	_rt2800_bbp_write
	mov	x24, #0
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #25
	mov	w2, #144
	bl	_rt2800_bbp_write
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #55
	bl	_rt2800_bbp_read
	sub	x8, x22, x0
	cmp	x8, x20
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, x24
	add	x2, x8, #1
	cinc	x23, x23, eq
	mov	x0, x19
	mov	w1, #24
	bl	_rt2800_rfcsr_write
	add	x24, x24, #1
	cmp	w24, #100
	b.ne	LBB0_4
LBB0_6:
	add	x8, x21, x24
	cmp	x23, #0
	cset	w9, ne
	sub	x20, x8, x9
	mov	x0, x19
	mov	w1, #24
	mov	x2, x20
	bl	_rt2800_rfcsr_write
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BBP4_BANDWIDTH,4,2             ; @BBP4_BANDWIDTH
	.comm	_RFCSR31_RX_H20M,4,2            ; @RFCSR31_RX_H20M
	.comm	_RFCSR22_BASEBAND_LOOPBACK,4,2  ; @RFCSR22_BASEBAND_LOOPBACK
	.no_dead_strip	_rt2800_init_rx_filter
.subsections_via_symbols
