	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_coalesce_cfg
_mwifiex_cmd_coalesce_cfg:              ## @mwifiex_cmd_coalesce_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
	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, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_HostCmd_CMD_COALESCE_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_cpu_to_le16
	movq	%rax, 32(%r14)
	movq	(%rbx), %rdi
	callq	_cpu_to_le16
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%r14)
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%r13), %rdi
	callq	_cpu_to_le16
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_le16_unaligned_add_cpu
	shlq	$2, %r13
	addq	8(%r14), %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	cmpq	(%rbx), %r14
	jae	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_TLV_TYPE_COALESCE_RULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 24(%r13)
	movq	8(%rbx), %rax
	movq	%r14, %r15
	shlq	$5, %r15
	movq	(%rax,%r15), %rdi
	callq	_cpu_to_le16
	movq	%rax, 40(%r13)
	movq	8(%rbx), %rax
	movl	24(%rax,%r15), %ecx
	movl	%ecx, 32(%r13)
	movq	8(%rax,%r15), %rcx
	movq	%rcx, (%r13)
	testq	%rcx, %rcx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %r14
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rax,%r15), %rax
	movl	16(%rax,%r13), %ecx
	movl	%ecx, 16(%r14,%r13)
	movl	12(%rax,%r13), %ecx
	movl	%ecx, (%r14,%r13)
	movq	(%rax,%r13), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14,%r13)
	movl	(%r14,%r13), %edx
	movl	4(%r14,%r13), %edi
	movq	8(%rbx), %rax
	movq	16(%rax,%r15), %rax
	movl	8(%rax,%r13), %esi
	callq	_memcpy
	addq	$24, %r13
	incq	%r12
	movq	8(%rbx), %rax
	cmpq	8(%rax,%r15), %r12
	jb	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_le16_unaligned_add_cpu
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_COALESCE_CFG,8,3   ## @HostCmd_CMD_COALESCE_CFG
	.comm	_S_DS_GEN,8,3                   ## @S_DS_GEN
	.comm	_TLV_TYPE_COALESCE_RULE,8,3     ## @TLV_TYPE_COALESCE_RULE
	.no_dead_strip	_mwifiex_cmd_coalesce_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_coalesce_cfg
_mwifiex_cmd_coalesce_cfg:              ; @mwifiex_cmd_coalesce_cfg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _HostCmd_CMD_COALESCE_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_COALESCE_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #32]
	ldr	x0, [x20]
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, #0
	ldr	x22, [x19, #16]
Lloh6:
	adrp	x23, _TLV_TYPE_COALESCE_RULE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TLV_TYPE_COALESCE_RULE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x24, #16
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	bl	_le16_to_cpu
	add	w1, w0, #4
	mov	x0, x19
	bl	_le16_unaligned_add_cpu
	ldr	x8, [x22, #8]
	add	x22, x8, x24, lsl #2
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x0, [x23]
	bl	_cpu_to_le16
	str	x0, [x22, #24]
	ldr	x8, [x20, #8]
	lsl	x25, x21, #5
	ldr	x0, [x8, x25]
	bl	_cpu_to_le16
	str	x0, [x22, #40]
	ldr	x8, [x20, #8]
	add	x9, x8, x25
	ldr	w10, [x9, #24]
	str	w10, [x22, #32]
	ldr	x9, [x9, #8]
	str	x9, [x22]
	mov	x24, #0
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	ldr	x27, [x22, #8]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x8, x25
	ldr	x8, [x8, #16]
	add	x8, x8, x24
	add	x28, x27, x24
	ldp	w10, w9, [x8, #12]
	str	w9, [x28, #16]
	str	w10, [x28]
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x28, #8]
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldr	x8, [x8, #16]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	ldp	w2, w0, [x28]
	bl	_memcpy
	add	x24, x24, #24
	add	x26, x26, #1
	ldr	x8, [x20, #8]
	add	x9, x8, x25
	ldr	x9, [x9, #8]
	cmp	x26, x9
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	mov	w1, #16
	bl	_le16_unaligned_add_cpu
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_COALESCE_CFG,8,3   ; @HostCmd_CMD_COALESCE_CFG
	.comm	_S_DS_GEN,8,3                   ; @S_DS_GEN
	.comm	_TLV_TYPE_COALESCE_RULE,8,3     ; @TLV_TYPE_COALESCE_RULE
	.no_dead_strip	_mwifiex_cmd_coalesce_cfg
.subsections_via_symbols
