	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_update_allowed_rates
_wcn36xx_update_allowed_rates:          ## @wcn36xx_update_allowed_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
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_wcn36xx_sta_to_priv
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_STA_11n@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_13
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	movq	16(%r15), %rcx
	movq	_wcn_2ghz_rates@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, %r8d
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	testb	$1, %bl
	je	LBB0_13
## %bb.12:
	movl	(%rdx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	sarl	%ebx
LBB0_13:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_25
## %bb.14:
	movq	8(%r15), %rcx
	movq	_wcn_5ghz_rates@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, %r8d
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
LBB0_22:
	testb	$1, %r8b
	je	LBB0_25
## %bb.23:
	andl	$1, %ebx
	je	LBB0_25
## %bb.24:
	movl	(%rdx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
LBB0_25:
	cmpq	$0, 16(%r14)
	je	LBB0_26
## %bb.27:
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	movl	(%r15), %edi
	movl	8(%r14), %esi
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%eax, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdi
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rdx,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	sarl	%ebx
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	testb	$1, %bl
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	4(%rdx,%rax,4), %esi
	movl	%esi, 4(%rcx,%rax,4)
	sarl	%ebx
	jmp	LBB0_21
LBB0_4:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdx,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	sarl	%ebx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %bl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rdx,%rax,4), %esi
	movl	%esi, 4(%rcx,%rax,4)
	sarl	%ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_STA_11n,4,2                    ## @STA_11n
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_wcn_2ghz_rates,8,3             ## @wcn_2ghz_rates
	.comm	_wcn_5ghz_rates,8,3             ## @wcn_5ghz_rates
	.no_dead_strip	_wcn36xx_update_allowed_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_update_allowed_rates
_wcn36xx_update_allowed_rates:          ; @wcn36xx_update_allowed_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	x21, x1
	mov	x19, x0
	bl	_wcn36xx_sta_to_priv
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w22, [x8, w21, uxtw #2]
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _STA_11n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STA_11n@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
Lloh3:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	ccmp	w0, #1, #8, eq
	b.ge	LBB0_8
LBB0_1:
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _wcn_5ghz_rates@GOTPAGE
Lloh7:
	ldr	x9, [x9, _wcn_5ghz_rates@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, w0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #4
	add	x9, x9, #4
	subs	x10, x10, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w22, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x9]
	str	w11, [x8]
	asr	w22, w22, #1
	b	LBB0_3
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.7:
	mov	w0, #0
	bl	_BUILD_BUG_ON
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	mov	w2, #4
	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
	b	_memcpy
LBB0_8:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _wcn_2ghz_rates@GOTPAGE
Lloh10:
	ldr	x9, [x9, _wcn_2ghz_rates@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w10, w0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #4
	add	x9, x9, #4
	subs	x10, x10, #1
	b.eq	LBB0_1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	tbz	w22, #0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [x9]
	str	w11, [x8]
	asr	w22, w22, #1
	b	LBB0_9
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STA_11n,4,2                    ; @STA_11n
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_wcn_2ghz_rates,8,3             ; @wcn_2ghz_rates
	.comm	_wcn_5ghz_rates,8,3             ; @wcn_5ghz_rates
	.no_dead_strip	_wcn36xx_update_allowed_rates
.subsections_via_symbols
