	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_check_tx_rates
_prism2_check_tx_rates:                 ## @prism2_check_tx_rates
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	movq	8(%rdi), %rdx
	xorl	%eax, %eax
	movq	_WLAN_RATE_1M@GOTPCREL(%rip), %r8
	movq	_WLAN_RATE_2M@GOTPCREL(%rip), %r12
	movq	_WLAN_RATE_5M5@GOTPCREL(%rip), %r15
	movq	_WLAN_RATE_11M@GOTPCREL(%rip), %r14
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	cmpq	$8, %rsi
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$127, %edi
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	(%r8), %eax
	movl	%eax, (%rbx)
	movl	(%rdx,%rsi,4), %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %edi
	andl	$127, %edi
	cmpl	$4, %edi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	(%rdx,%rsi,4), %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %edi
	andl	$127, %edi
	cmpl	$11, %edi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	(%rdx,%rsi,4), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	andl	$127, %ecx
	cmpl	$22, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	(%r14), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_10:
	movl	$0, 24(%rbx)
	movq	$0, 16(%rbx)
	testl	%eax, (%r8)
	je	LBB0_13
## %bb.11:
	movl	28(%rbx), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	$10, 20(%rbx)
LBB0_13:
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.14:
	movl	$1, 16(%rbx)
	movl	28(%rbx), %edx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movabsq	$4294967316, %rax               ## imm = 0x100000014
	movq	%rax, 20(%rbx)
LBB0_16:
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_19
## %bb.17:
	movl	$2, 16(%rbx)
	movl	28(%rbx), %edx
	movl	$2, %edi
	movq	%rbx, %rsi
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movabsq	$8589934647, %rax               ## imm = 0x200000037
	movq	%rax, 20(%rbx)
LBB0_19:
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_22
## %bb.20:
	movl	$3, 16(%rbx)
	movl	28(%rbx), %edx
	movl	$3, %edi
	movq	%rbx, %rsi
	callq	_ap_tx_rate_ok
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movabsq	$12884901998, %rax              ## imm = 0x30000006E
	movq	%rax, 20(%rbx)
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_RATE_1M,4,2               ## @WLAN_RATE_1M
	.comm	_WLAN_RATE_2M,4,2               ## @WLAN_RATE_2M
	.comm	_WLAN_RATE_5M5,4,2              ## @WLAN_RATE_5M5
	.comm	_WLAN_RATE_11M,4,2              ## @WLAN_RATE_11M
	.no_dead_strip	_prism2_check_tx_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function prism2_check_tx_rates
lCPI0_0:
	.long	10                              ; 0xa
	.long	0                               ; 0x0
lCPI0_1:
	.long	20                              ; 0x14
	.long	1                               ; 0x1
lCPI0_2:
	.long	55                              ; 0x37
	.long	2                               ; 0x2
lCPI0_3:
	.long	110                             ; 0x6e
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_prism2_check_tx_rates:                 ; @prism2_check_tx_rates
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	x9, #0
	mov	w8, #0
	str	wzr, [x0]
	ldr	x11, [x0, #8]
Lloh0:
	adrp	x10, _WLAN_RATE_1M@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WLAN_RATE_1M@GOTPAGEOFF]
Lloh2:
	adrp	x22, _WLAN_RATE_2M@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WLAN_RATE_2M@GOTPAGEOFF]
Lloh4:
	adrp	x21, _WLAN_RATE_5M5@GOTPAGE
Lloh5:
	ldr	x21, [x21, _WLAN_RATE_5M5@GOTPAGEOFF]
Lloh6:
	adrp	x20, _WLAN_RATE_11M@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WLAN_RATE_11M@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #4
	cmp	x9, #32
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9]
	and	w13, w12, #0x7f
	cmp	w13, #2
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x10]
	orr	w8, w8, w12
	str	w8, [x19]
	ldr	w12, [x11, x9]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w13, w12, #0x7f
	cmp	w13, #4
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x22]
	orr	w8, w8, w12
	str	w8, [x19]
	ldr	w12, [x11, x9]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w13, w12, #0x7f
	cmp	w13, #11
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x21]
	orr	w8, w8, w12
	str	w8, [x19]
	ldr	w12, [x11, x9]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w12, w12, #0x7f
	cmp	w12, #22
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x20]
	orr	w8, w8, w12
	str	w8, [x19]
	b	LBB0_1
LBB0_10:
	str	wzr, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w9, [x10]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	w2, [x19, #28]
	mov	w0, #0
	mov	x1, x19
	bl	_ap_tx_rate_ok
	cbz	x0, LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #20]
LBB0_13:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w2, [x19, #28]
	mov	w0, #1
	mov	x1, x19
	bl	_ap_tx_rate_ok
	cbz	x0, LBB0_16
; %bb.15:
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #20]
LBB0_16:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.17:
	mov	w8, #2
	str	w8, [x19, #16]
	ldr	w2, [x19, #28]
	mov	w0, #2
	mov	x1, x19
	bl	_ap_tx_rate_ok
	cbz	x0, LBB0_19
; %bb.18:
Lloh12:
	adrp	x8, lCPI0_2@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	stur	d0, [x19, #20]
LBB0_19:
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
	mov	w8, #3
	str	w8, [x19, #16]
	ldr	w2, [x19, #28]
	mov	w0, #3
	mov	x1, x19
	bl	_ap_tx_rate_ok
	cbz	x0, LBB0_22
; %bb.21:
Lloh14:
	adrp	x8, lCPI0_3@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	stur	d0, [x19, #20]
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_RATE_1M,4,2               ; @WLAN_RATE_1M
	.comm	_WLAN_RATE_2M,4,2               ; @WLAN_RATE_2M
	.comm	_WLAN_RATE_5M5,4,2              ; @WLAN_RATE_5M5
	.comm	_WLAN_RATE_11M,4,2              ; @WLAN_RATE_11M
	.no_dead_strip	_prism2_check_tx_rates
.subsections_via_symbols
