	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_acx_set_rate_mgmt_params ## -- Begin function wl12xx_acx_set_rate_mgmt_params
	.p2align	4, 0x90
_wl12xx_acx_set_rate_mgmt_params:       ## @wl12xx_acx_set_rate_mgmt_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ACX_RATE_MGMT_ALL_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movl	56(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 72(%rbx)
	movl	52(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%rbx)
	movl	48(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%rbx)
	movl	44(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 48(%rbx)
	movl	40(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	movl	36(%r14), %eax
	movl	%eax, 36(%rbx)
	movups	20(%r14), %xmm0
	movups	%xmm0, 20(%rbx)
	movups	4(%r14), %xmm0
	movups	%xmm0, 4(%rbx)
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_ACX_SET_RATE_MGMT_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$88, %ecx
	callq	_wl1271_cmd_configure
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_wl1271_warning
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acx set rate mgmt params"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACX_RATE_MGMT_ALL_PARAMS,4,2   ## @ACX_RATE_MGMT_ALL_PARAMS
	.comm	_ACX_SET_RATE_MGMT_PARAMS,4,2   ## @ACX_SET_RATE_MGMT_PARAMS
L_.str.1:                               ## @.str.1
	.asciz	"acx set rate mgmt params failed: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_acx_set_rate_mgmt_params ; -- Begin function wl12xx_acx_set_rate_mgmt_params
	.p2align	2
_wl12xx_acx_set_rate_mgmt_params:       ; @wl12xx_acx_set_rate_mgmt_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x8, _ACX_RATE_MGMT_ALL_PARAMS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACX_RATE_MGMT_ALL_PARAMS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #80]
	ldr	w0, [x20, #56]
	bl	_cpu_to_le16
	str	x0, [x19, #72]
	ldr	w0, [x20, #52]
	bl	_cpu_to_le16
	str	x0, [x19, #64]
	ldr	w0, [x20, #48]
	bl	_cpu_to_le16
	str	x0, [x19, #56]
	ldr	w0, [x20, #44]
	bl	_cpu_to_le16
	str	x0, [x19, #48]
	ldr	w0, [x20, #40]
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	ldr	w8, [x20, #36]
	str	w8, [x19, #36]
	ldur	q0, [x20, #20]
	stur	q0, [x19, #20]
	ldur	q0, [x20, #4]
	stur	q0, [x19, #4]
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_memcpy
Lloh11:
	adrp	x8, _ACX_SET_RATE_MGMT_PARAMS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACX_SET_RATE_MGMT_PARAMS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #88
	bl	_wl1271_cmd_configure
	mov	x20, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
LBB0_3:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx set rate mgmt params"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACX_RATE_MGMT_ALL_PARAMS,4,2   ; @ACX_RATE_MGMT_ALL_PARAMS
	.comm	_ACX_SET_RATE_MGMT_PARAMS,4,2   ; @ACX_SET_RATE_MGMT_PARAMS
l_.str.1:                               ; @.str.1
	.asciz	"acx set rate mgmt params failed: %d"

.subsections_via_symbols
