	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_set_bitrate_mask
_mwifiex_cfg80211_set_bitrate_mask:     ## @mwifiex_cfg80211_set_bitrate_mask
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r14
	movq	_MAX_BITMAP_RATES_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	8(%r14), %rdi
	cmpl	$0, 4(%r14)
	je	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_mwifiex_band_to_radio_type
	movl	%eax, %r12d
	shll	$2, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rsi
	movq	(%r15), %r8
	movl	%r12d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%r8,%rcx,8), %edx
	cmpl	(%rsi), %r12d
	jne	LBB0_4
## %bb.3:
	leaq	(%r8,%rcx,8), %rsi
	andl	$15, %edx
	movl	%edx, (%r13)
	movl	(%rsi), %edx
	shrl	$4, %edx
	movzbl	%dl, %edx
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, 4(%r13)
	movq	8(%r8,%rcx,8), %rbx
	movl	(%rbx), %edi
	movl	%edi, 8(%r13)
	movq	(%rax), %rdx
	movq	_HT_STREAM_2X2@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %ebx
	shll	$8, %ebx
	orl	%edi, %ebx
	movl	%ebx, 8(%r13)
LBB0_6:
	movq	8(%rax), %rdi
	movq	_MWIFIEX_FW_V15@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	jne	LBB0_9
## %bb.7:
	movq	16(%r8,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, 40(%r13)
	cmpq	%rsi, %rdx
	jne	LBB0_9
## %bb.8:
	movl	4(%rax), %eax
	movl	%eax, 44(%r13)
LBB0_9:
	movq	_HostCmd_CMD_TX_RATE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	jmp	LBB0_10
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BITMAP_RATES_SIZE,4,2      ## @MAX_BITMAP_RATES_SIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not set Tx data rate in disconnected state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_HT_STREAM_2X2,8,3              ## @HT_STREAM_2X2
	.comm	_MWIFIEX_FW_V15,8,3             ## @MWIFIEX_FW_V15
	.comm	_HostCmd_CMD_TX_RATE_CFG,4,2    ## @HostCmd_CMD_TX_RATE_CFG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_set_bitrate_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_set_bitrate_mask
_mwifiex_cfg80211_set_bitrate_mask:     ; @mwifiex_cfg80211_set_bitrate_mask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x22, x3
	mov	x0, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _MAX_BITMAP_RATES_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BITMAP_RATES_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x21, [x0, #8]
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_9
; %bb.1:
	ldr	w0, [x19]
	bl	_mwifiex_band_to_radio_type
	mov	x23, x0
	lsl	w2, w24, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh8:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x8]
	ldr	x8, [x22]
	mov	w9, w23
	mov	w10, #24
	umaddl	x11, w23, w10, x8
	ldr	w10, [x11]
	cmp	w23, w12
	b.ne	LBB0_3
; %bb.2:
	and	w10, w10, #0xf
	str	w10, [x20]
	ldr	w10, [x11]
	ubfx	w10, w10, #4, #8
LBB0_3:
	str	w10, [x20, #4]
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x12, [x10, #8]
	ldr	w13, [x12]
	str	w13, [x20, #8]
	ldr	x10, [x21]
Lloh11:
	adrp	x11, _HT_STREAM_2X2@GOTPAGE
Lloh12:
	ldr	x11, [x11, _HT_STREAM_2X2@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.4:
	ldr	w12, [x12, #4]
	orr	w12, w13, w12, lsl #8
	str	w12, [x20, #8]
LBB0_5:
	ldr	x12, [x21, #8]
Lloh14:
	adrp	x13, _MWIFIEX_FW_V15@GOTPAGE
Lloh15:
	ldr	x13, [x13, _MWIFIEX_FW_V15@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_8
; %bb.6:
	mov	w12, #24
	madd	x8, x9, x12, x8
	ldr	x8, [x8, #16]
	ldr	w9, [x8]
	str	w9, [x20, #40]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x8, #4]
	str	w8, [x20, #44]
LBB0_8:
Lloh17:
	adrp	x8, _HostCmd_CMD_TX_RATE_CFG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HostCmd_CMD_TX_RATE_CFG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, x20
	mov	w5, #1
	bl	_mwifiex_send_cmd
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BITMAP_RATES_SIZE,4,2      ; @MAX_BITMAP_RATES_SIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not set Tx data rate in disconnected state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_HT_STREAM_2X2,8,3              ; @HT_STREAM_2X2
	.comm	_MWIFIEX_FW_V15,8,3             ; @MWIFIEX_FW_V15
	.comm	_HostCmd_CMD_TX_RATE_CFG,4,2    ; @HostCmd_CMD_TX_RATE_CFG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.no_dead_strip	_mwifiex_cfg80211_set_bitrate_mask
.subsections_via_symbols
