	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_scanparams_cmd      ## -- Begin function ath6kl_wmi_scanparams_cmd
	.p2align	4, 0x90
_ath6kl_wmi_scanparams_cmd:             ## @ath6kl_wmi_scanparams_cmd
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	56(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	48(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	40(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$80, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 72(%r12)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%r12)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 56(%r12)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 48(%r12)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 40(%r12)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 32(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 8(%r12)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, (%r12)
	movq	_WMI_SET_SCAN_PARAMS_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_SET_SCAN_PARAMS_CMDID,4,2  ## @WMI_SET_SCAN_PARAMS_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_scanparams_cmd      ; -- Begin function ath6kl_wmi_scanparams_cmd
	.p2align	2
_ath6kl_wmi_scanparams_cmd:             ; @ath6kl_wmi_scanparams_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w7, [sp, #16]                   ; 4-byte Folded Spill
	mov	x25, x6
	mov	x26, x5
	mov	x27, x4
	mov	x28, x3
	mov	x19, x2
	mov	x23, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [x29, #36]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w24, [x29, #32]
	ldp	x22, x20, [x29, #16]
	mov	w0, #80
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x23, [x0]
	mov	x0, x19
	bl	_cpu_to_le16
	str	x0, [x23, #72]
	mov	x0, x28
	bl	_cpu_to_le16
	str	x0, [x23, #64]
	mov	x0, x27
	bl	_cpu_to_le16
	str	x0, [x23, #56]
	mov	x0, x26
	bl	_cpu_to_le16
	str	x0, [x23, #48]
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [x23, #40]
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	bl	_cpu_to_le16
	stp	x22, x0, [x23, #24]
	str	x20, [x23, #16]
	mov	x0, x24
	bl	_cpu_to_le32
	str	w0, [x23, #8]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_cpu_to_le16
	str	x0, [x23]
Lloh0:
	adrp	x8, _WMI_SET_SCAN_PARAMS_CMDID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SET_SCAN_PARAMS_CMDID@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ath6kl_wmi_cmd_send
LBB0_2:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_SET_SCAN_PARAMS_CMDID,4,2  ; @WMI_SET_SCAN_PARAMS_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
