	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_roam          ## -- Begin function ath10k_wmi_event_roam
	.p2align	4, 0x90
_ath10k_wmi_event_roam:                 ## @ath10k_wmi_event_roam
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rdx
	callq	_ath10k_wmi_pull_roam_ev
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_8
LBB0_2:
	movl	-32(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, %r14
	movl	-36(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, %r15
	movl	-40(%rbp), %edi
	callq	___le32_to_cpu
	movq	_WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movq	%rax, %r9
	callq	_ath10k_dbg
	movq	_WMI_ROAM_REASON_MAX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jg	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_4:
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	jae	LBB0_5
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_8
LBB0_5:
	cmpl	$132, %r15d
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ath10k_mac_handle_beacon_miss
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse roam event: %d\n"

	.comm	_WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT,8,3 ## @WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
L_.str.1:                               ## @.str.1
	.asciz	"wmi roam event vdev %u reason 0x%08x rssi %d\n"

	.comm	_WMI_ROAM_REASON_MAX,4,2        ## @WMI_ROAM_REASON_MAX
L_.str.2:                               ## @.str.2
	.asciz	"ignoring unknown roam event reason %d on vdev %i\n"

L_.str.3:                               ## @.str.3
	.asciz	"ignoring not implemented roam event reason %d on vdev %i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_roam          ; -- Begin function ath10k_wmi_event_roam
	.p2align	2
_ath10k_wmi_event_roam:                 ; @ath10k_wmi_event_roam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	add	x2, sp, #16
	bl	_ath10k_wmi_pull_roam_ev
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_6
LBB0_2:
	ldr	w0, [sp, #24]
	bl	___le32_to_cpu
	mov	x20, x0
	ldr	w0, [sp, #20]
	bl	___le32_to_cpu
	mov	x21, x0
	ldr	w0, [sp, #16]
	bl	___le32_to_cpu
Lloh2:
	adrp	x8, _WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x5, x0, x8
Lloh5:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_ath10k_dbg
Lloh10:
	adrp	x8, _WMI_ROAM_REASON_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_ROAM_REASON_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w21
	b.gt	LBB0_4
; %bb.3:
	mov	x8, x20
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_warn
LBB0_4:
	sub	w8, w21, #128
	cmp	w8, #4
	b.hs	LBB0_8
; %bb.5:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
LBB0_6:
	bl	_ath10k_warn
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	cmp	w21, #132
	b.ne	LBB0_7
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_mac_handle_beacon_miss
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse roam event: %d\n"

	.comm	_WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT,8,3 ; @WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
l_.str.1:                               ; @.str.1
	.asciz	"wmi roam event vdev %u reason 0x%08x rssi %d\n"

	.comm	_WMI_ROAM_REASON_MAX,4,2        ; @WMI_ROAM_REASON_MAX
l_.str.2:                               ; @.str.2
	.asciz	"ignoring unknown roam event reason %d on vdev %i\n"

l_.str.3:                               ; @.str.3
	.asciz	"ignoring not implemented roam event reason %d on vdev %i\n"

.subsections_via_symbols
