	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl128x_cmd_general_parms       ## -- Begin function wl128x_cmd_general_parms
	.p2align	4, 0x90
_wl128x_cmd_general_parms:              ## @wl128x_cmd_general_parms
	.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	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movq	(%r12), %rax
	movq	_WL1271_INI_FEM_MODULE_COUNT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jge	LBB0_4
## %bb.5:
	movq	%rdi, %r15
	movq	24(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_TEST_CMD_INI_FILE_GENERAL_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movq	_PLT_FEM_DETECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_warning
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r14)
	sete	%al
LBB0_10:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $al killed $al killed $eax
	xorb	$1, %al
	movzbl	%al, %ecx
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_wl1271_cmd_test
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	8(%r14), %rcx
	movq	%rcx, (%r12)
	cmpq	(%r13), %rcx
	jge	LBB0_13
## %bb.14:
	movq	(%r15), %rax
	movq	_PLT_FEM_DETECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.16:
	movq	%rcx, 8(%r15)
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_warning
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1271_warning
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.6(%rip), %rax
LBB0_17:
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.4(%rip), %rdx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_wl1271_debug
LBB0_18:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_WL1271_INI_FEM_MODULE_COUNT,8,3 ## @WL1271_INI_FEM_MODULE_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FEM index from ini out of bounds"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TEST_CMD_INI_FILE_GENERAL_PARAM,4,2 ## @TEST_CMD_INI_FILE_GENERAL_PARAM
	.comm	_PLT_FEM_DETECT,8,3             ## @PLT_FEM_DETECT
L_.str.1:                               ## @.str.1
	.asciz	"CMD_INI_FILE_GENERAL_PARAM failed"

L_.str.2:                               ## @.str.2
	.asciz	"FEM index from FW out of bounds"

	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
L_.str.3:                               ## @.str.3
	.asciz	"FEM autodetect: %s, manufacturer: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"manual"

L_.str.5:                               ## @.str.5
	.asciz	"calibrator_fem_detect"

L_.str.6:                               ## @.str.6
	.asciz	"auto"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl128x_cmd_general_parms       ; -- Begin function wl128x_cmd_general_parms
	.p2align	2
_wl128x_cmd_general_parms:              ; @wl128x_cmd_general_parms
	.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
	ldr	x22, [x0, #16]
	cbz	x22, LBB0_5
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _WL1271_INI_FEM_MODULE_COUNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WL1271_INI_FEM_MODULE_COUNT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x21, [x0, #24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh5:
	adrp	x8, _TEST_CMD_INI_FILE_GENERAL_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TEST_CMD_INI_FILE_GENERAL_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x20]
Lloh8:
	adrp	x25, _PLT_FEM_DETECT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PLT_FEM_DETECT@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	mov	w24, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_warning
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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_10:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w24, eq
LBB0_11:
	eor	w3, w24, #0x1
	ldr	d0, [x21]
	str	d0, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #32
	bl	_wl1271_cmd_test
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.12:
	ldr	x3, [x19, #8]
	str	x3, [x22]
	ldr	x8, [x23]
	cmp	x3, x8
	b.ge	LBB0_16
; %bb.13:
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	str	x3, [x20, #8]
Lloh18:
	adrp	x8, l_.str.5@PAGE
Lloh19:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_15:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_warning
	b	LBB0_19
LBB0_16:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wl1271_warning
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_17:
Lloh27:
	adrp	x8, l_.str.6@PAGE
Lloh28:
	add	x8, x8, l_.str.6@PAGEOFF
LBB0_18:
Lloh29:
	adrp	x9, _DEBUG_CMD@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DEBUG_CMD@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
Lloh32:
	adrp	x9, l_.str.4@PAGE
Lloh33:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w24, #0
	csel	x2, x9, x8, ne
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wl1271_debug
LBB0_19:
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_WL1271_INI_FEM_MODULE_COUNT,8,3 ; @WL1271_INI_FEM_MODULE_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FEM index from ini out of bounds"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TEST_CMD_INI_FILE_GENERAL_PARAM,4,2 ; @TEST_CMD_INI_FILE_GENERAL_PARAM
	.comm	_PLT_FEM_DETECT,8,3             ; @PLT_FEM_DETECT
l_.str.1:                               ; @.str.1
	.asciz	"CMD_INI_FILE_GENERAL_PARAM failed"

l_.str.2:                               ; @.str.2
	.asciz	"FEM index from FW out of bounds"

	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
l_.str.3:                               ; @.str.3
	.asciz	"FEM autodetect: %s, manufacturer: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"manual"

l_.str.5:                               ; @.str.5
	.asciz	"calibrator_fem_detect"

l_.str.6:                               ; @.str.6
	.asciz	"auto"

.subsections_via_symbols
