	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_cfg_data
_mwifiex_cmd_cfg_data:                  ## @mwifiex_cmd_cfg_data
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	_S_DS_GEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	leaq	(%rsi,%rax,4), %rdx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %r12d
	movl	4(%rbx), %esi
	movl	8(%r15), %edi
	movl	%r12d, %ecx
	callq	_of_property_read_u8_array
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rcx
	movq	8(%rcx), %rdi
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.5:
	callq	_mwifiex_parse_cal_cfg
	movl	%eax, %r12d
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_6:
	movq	_HostCmd_CMD_CFG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	addl	(%r13), %r12d
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"download cfg_data from device tree: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"download cfg_data from config file\n"

	.comm	_HostCmd_CMD_CFG_DATA,4,2       ## @HostCmd_CMD_CFG_DATA
	.no_dead_strip	_mwifiex_cmd_cfg_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_cfg_data
_mwifiex_cmd_cfg_data:                  ; @mwifiex_cmd_cfg_data
	.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, x2
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _S_DS_GEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _S_DS_GEN@GOTPAGEOFF]
	ldrsw	x8, [x23]
	add	x2, x1, x8, lsl #2
	cbz	x22, LBB0_3
; %bb.1:
	ldr	w0, [x20, #8]
	ldp	w21, w1, [x22]
	mov	x3, x21
	bl	_of_property_read_u8_array
	cbnz	w0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x22, #4]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x1, [x8]
	cmp	x1, #1
	b.lt	LBB0_7
; %bb.5:
	bl	_mwifiex_parse_cal_cfg
	mov	x21, x0
Lloh7:
	adrp	x8, _INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_mwifiex_dbg
Lloh12:
	adrp	x8, _HostCmd_CMD_CFG_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HostCmd_CMD_CFG_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	w8, [x23]
	add	w0, w8, w21
	bl	_cpu_to_le16
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"download cfg_data from device tree: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"download cfg_data from config file\n"

	.comm	_HostCmd_CMD_CFG_DATA,4,2       ; @HostCmd_CMD_CFG_DATA
	.no_dead_strip	_mwifiex_cmd_cfg_data
.subsections_via_symbols
