	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_get_common_rates
_mwifiex_get_common_rates:              ## @mwifiex_get_common_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	movq	%r12, %r8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, (%r8)
	addq	$4, %r8
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%r13, %rax
	je	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r14,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r15, %r15
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rsi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%ecx, %edi
	xorl	%edx, %edi
	testb	$127, %dil
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%rsi
	cmpq	%rsi, %r15
	jne	LBB0_8
	jmp	LBB0_4
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpl	$0, 8(%r14)
	je	LBB0_14
LBB0_19:
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_14:
	movl	(%r12), %eax
	movl	(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	addq	$4, %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	andl	$127, %eax
	cmpl	%ecx, %eax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r12), %eax
	addq	$4, %r12
	testl	%eax, %eax
	jne	LBB0_16
LBB0_18:
	movl	4(%r14), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %r14d
LBB0_20:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc tmp buf\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"info: Tx data rate set to %#x\n"

L_.str.2:                               ## @.str.2
	.asciz	"previously set fixed data rate %#x\tis not compatible with the network\n"

	.no_dead_strip	_mwifiex_get_common_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_get_common_rates
_mwifiex_get_common_rates:              ; @mwifiex_get_common_rates
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x24
	bl	_kmemdup
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	cbz	x22, LBB0_10
; %bb.2:
	mov	x8, #0
	mov	x9, x21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w13, [x9], #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x8, x22
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w10, [x23, x8, lsl #2]
	cbz	w10, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, x19
	mov	x12, x24
	cbz	x24, LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11]
	cbz	w13, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	eor	w14, w13, w10
	tst	w14, #0x7f
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x11, x11, #4
	subs	x12, x12, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_10:
Lloh3:
	adrp	x8, _INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w0, [x20]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_13
LBB0_11:
	mov	w20, #0
	b	LBB0_18
LBB0_12:
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_19
LBB0_13:
	ldr	w9, [x21]
	ldr	w8, [x20]
	cbz	w9, LBB0_17
; %bb.14:
	add	x10, x21, #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	and	w9, w9, #0x7f
	cmp	w9, w8
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x10], #4
	cbnz	w9, LBB0_15
LBB0_17:
	ldr	w0, [x20, #4]
Lloh16:
	adrp	x9, _ERROR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	mov	w20, #-1
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc tmp buf\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"info: Tx data rate set to %#x\n"

l_.str.2:                               ; @.str.2
	.asciz	"previously set fixed data rate %#x\tis not compatible with the network\n"

	.no_dead_strip	_mwifiex_get_common_rates
.subsections_via_symbols
