	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_scan          ## -- Begin function ath10k_wmi_event_scan
	.p2align	4, 0x90
_ath10k_wmi_event_scan:                 ## @ath10k_wmi_event_scan
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	-64(%rbp), %rdx
	callq	_ath10k_wmi_pull_scan
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_10
LBB0_2:
	movl	-44(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, %r15
	movl	-48(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, %r13
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-60(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %edi
	callq	___le32_to_cpu
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_ath10k_wmi_event_scan_type_str
	movl	%eax, %r13d
	movl	4(%rbx), %edi
	callq	_ath10k_scan_state_str
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%rbx), %r10d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%r12
	callq	_ath10k_dbg
	addq	$48, %rsp
	addl	$-128, %r15d
	cmpl	$8, %r15d
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	%rbx, %rdi
	callq	_ath10k_wmi_event_scan_start_failed
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_ath10k_wmi_event_scan_started
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ath10k_wmi_event_scan_foreign_chan
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_ath10k_wmi_event_scan_completed
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_ath10k_wmi_event_scan_bss_chan
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_10:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse scan event: %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
L_.str.1:                               ## @.str.1
	.asciz	"scan event %s type %d reason %d freq %d req_id %d scan_id %d vdev_id %d state %s (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"received scan start failure event\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_scan          ; -- Begin function ath10k_wmi_event_scan
	.p2align	2
_ath10k_wmi_event_scan:                 ; @ath10k_wmi_event_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	add	x2, sp, #24
	bl	_ath10k_wmi_pull_scan
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_10
LBB0_2:
	ldr	w0, [sp, #44]
	bl	___le32_to_cpu
	mov	x21, x0
	ldr	w0, [sp, #40]
	bl	___le32_to_cpu
	mov	x23, x0
	ldr	w0, [sp, #36]
	bl	___le32_to_cpu
	mov	x22, x0
	ldr	w0, [sp, #32]
	bl	___le32_to_cpu
	mov	x24, x0
	ldr	w0, [sp, #28]
	bl	___le32_to_cpu
	mov	x25, x0
	ldr	w0, [sp, #24]
	bl	___le32_to_cpu
	mov	x26, x0
	mov	x0, x19
	bl	_spin_lock_bh
Lloh2:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_ath10k_wmi_event_scan_type_str
	mov	x28, x0
	ldr	w0, [x19, #4]
	bl	_ath10k_scan_state_str
	ldr	w8, [x19, #4]
	stp	w0, w8, [sp, #16]
	stp	x25, x26, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x27
	mov	x3, x28
	mov	x4, x21
	mov	x5, x23
	mov	x6, x22
	mov	x7, x24
	bl	_ath10k_dbg
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_9
; %bb.3:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x19
	bl	_ath10k_wmi_event_scan_start_failed
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_ath10k_wmi_event_scan_started
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_ath10k_wmi_event_scan_foreign_chan
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_ath10k_wmi_event_scan_completed
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ath10k_wmi_event_scan_bss_chan
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse scan event: %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
l_.str.1:                               ; @.str.1
	.asciz	"scan event %s type %d reason %d freq %d req_id %d scan_id %d vdev_id %d state %s (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"received scan start failure event\n"

.subsections_via_symbols
