	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_set_roam_lrssi_cmd  ## -- Begin function ath6kl_wmi_set_roam_lrssi_cmd
	.p2align	4, 0x90
_ath6kl_wmi_set_roam_lrssi_cmd:         ## @ath6kl_wmi_set_roam_lrssi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$40, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%rax), %rbx
	movq	_DEF_LRSSI_SCAN_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 32(%rbx)
	movq	_DEF_SCAN_FOR_ROAM_INTVL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_a_cpu_to_sle16
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_a_cpu_to_sle16
	movq	%rax, 16(%rbx)
	movq	_DEF_LRSSI_ROAM_FLOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_WMI_SET_LRSSI_SCAN_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_WMI_SET_ROAM_CTRL_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEF_LRSSI_SCAN_PERIOD,4,2      ## @DEF_LRSSI_SCAN_PERIOD
	.comm	_DEF_SCAN_FOR_ROAM_INTVL,8,3    ## @DEF_SCAN_FOR_ROAM_INTVL
	.comm	_DEF_LRSSI_ROAM_FLOOR,4,2       ## @DEF_LRSSI_ROAM_FLOOR
	.comm	_WMI_SET_LRSSI_SCAN_PARAMS,4,2  ## @WMI_SET_LRSSI_SCAN_PARAMS
	.comm	_WMI_SET_ROAM_CTRL_CMDID,4,2    ## @WMI_SET_ROAM_CTRL_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_set_roam_lrssi_cmd  ; -- Begin function ath6kl_wmi_set_roam_lrssi_cmd
	.p2align	2
_ath6kl_wmi_set_roam_lrssi_cmd:         ; @ath6kl_wmi_set_roam_lrssi_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w0, #40
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _DEF_LRSSI_SCAN_PERIOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEF_LRSSI_SCAN_PERIOD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x22, #32]
Lloh3:
	adrp	x8, _DEF_SCAN_FOR_ROAM_INTVL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEF_SCAN_FOR_ROAM_INTVL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x21
	bl	_a_cpu_to_sle16
	str	x0, [x22, #24]
	mov	x0, x21
	bl	_a_cpu_to_sle16
Lloh6:
	adrp	x8, _DEF_LRSSI_ROAM_FLOOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEF_LRSSI_ROAM_FLOOR@GOTPAGEOFF]
	str	x0, [x22, #16]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22, #8]
Lloh9:
	adrp	x8, _WMI_SET_LRSSI_SCAN_PARAMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_SET_LRSSI_SCAN_PARAMS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh12:
	adrp	x8, _WMI_SET_ROAM_CTRL_CMDID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMI_SET_ROAM_CTRL_CMDID@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath6kl_wmi_cmd_send
LBB0_2:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEF_LRSSI_SCAN_PERIOD,4,2      ; @DEF_LRSSI_SCAN_PERIOD
	.comm	_DEF_SCAN_FOR_ROAM_INTVL,8,3    ; @DEF_SCAN_FOR_ROAM_INTVL
	.comm	_DEF_LRSSI_ROAM_FLOOR,4,2       ; @DEF_LRSSI_ROAM_FLOOR
	.comm	_WMI_SET_LRSSI_SCAN_PARAMS,4,2  ; @WMI_SET_LRSSI_SCAN_PARAMS
	.comm	_WMI_SET_ROAM_CTRL_CMDID,4,2    ; @WMI_SET_ROAM_CTRL_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
