	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_ret_tx_rate_cfg
_mwifiex_ret_tx_rate_cfg:               ## @mwifiex_ret_tx_rate_cfg
	.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	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movabsq	$30064771072, %rbx              ## imm = 0x700000000
	movl	(%rsi), %edi
	callq	_le16_to_cpu
	movq	%rax, %r15
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	addl	$-4, %r15d
	shlq	$32, %r15
	cmpq	%rbx, %r15
	jbe	LBB0_12
## %bb.1:
	addq	$20, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13,4), %r14
	subl	%r13d, %r15d
	shlq	$32, %r15
	movabsq	$30064771072, %rax              ## imm = 0x700000000
	cmpq	%rax, %r15
	jbe	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	sarq	$32, %r15
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r13
	addq	$8, %r13
	cmpq	%r13, %r15
	jb	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %r12d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14), %edi
	callq	_le16_to_cpu
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	movl	16(%r14), %edi
	callq	_le16_to_cpu
	movq	16(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	16(%r12), %rcx
	movq	%rax, 16(%rcx,%rbx,8)
	incq	%rbx
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rax
	movl	(%rax), %eax
	movq	_MWIFIEX_FW_V15@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	16(%r12), %rcx
	movq	%rax, 80(%rcx,%rbx,8)
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mwifiex_is_rate_auto
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_HostCmd_CMD_802_11_TX_RATE_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_send_cmd               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_DS_GEN,8,3                   ## @S_DS_GEN
	.comm	_MWIFIEX_FW_V15,4,2             ## @MWIFIEX_FW_V15
	.comm	_HostCmd_CMD_802_11_TX_RATE_QUERY,4,2 ## @HostCmd_CMD_802_11_TX_RATE_QUERY
	.comm	_HostCmd_ACT_GEN_GET,4,2        ## @HostCmd_ACT_GEN_GET
	.no_dead_strip	_mwifiex_ret_tx_rate_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_ret_tx_rate_cfg
_mwifiex_ret_tx_rate_cfg:               ; @mwifiex_ret_tx_rate_cfg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_le16_to_cpu
Lloh0:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w0, w8
	sub	w8, w8, #4
	lsl	x8, x8, #32
	mov	x9, #1
	movk	x9, #7, lsl #32
	cmp	x8, x9
	b.lo	LBB0_12
; %bb.1:
	add	x21, x20, #20
Lloh3:
	adrp	x22, _MWIFIEX_FW_V15@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MWIFIEX_FW_V15@GOTPAGEOFF]
	mov	x23, #30064771072
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x25, lsl #2
	sub	w8, w24, w25
	lsl	x8, x8, #32
	cmp	x8, x23
	b.ls	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	asr	x24, x8, #32
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x21]
	bl	_le16_to_cpu
	sxtw	x8, w0
	add	x25, x8, #8
	cmp	x24, x25
	b.lo	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #128
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #20]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	add	x8, x8, x20, lsl #3
	str	x0, [x8, #16]
	add	x20, x20, #1
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	x20, x0
	b.lo	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	add	x8, x8, x20, lsl #3
	str	x0, [x8, #80]
	add	x20, x20, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x20, x0
	b.lo	LBB0_11
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_mwifiex_is_rate_auto
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.13:
	str	xzr, [x19]
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh5:
	adrp	x8, _HostCmd_CMD_802_11_TX_RATE_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HostCmd_CMD_802_11_TX_RATE_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _HostCmd_ACT_GEN_GET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HostCmd_ACT_GEN_GET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mwifiex_send_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S_DS_GEN,8,3                   ; @S_DS_GEN
	.comm	_MWIFIEX_FW_V15,4,2             ; @MWIFIEX_FW_V15
	.comm	_HostCmd_CMD_802_11_TX_RATE_QUERY,4,2 ; @HostCmd_CMD_802_11_TX_RATE_QUERY
	.comm	_HostCmd_ACT_GEN_GET,4,2        ; @HostCmd_ACT_GEN_GET
	.no_dead_strip	_mwifiex_ret_tx_rate_cfg
.subsections_via_symbols
