	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_op_pull_phyerr_ev   ## -- Begin function ath10k_wmi_op_pull_phyerr_ev
	.p2align	4, 0x90
_ath10k_wmi_op_pull_phyerr_ev:          ## @ath10k_wmi_op_pull_phyerr_ev
	.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
	cmpl	$47, %edx
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$48, %ecx
	callq	_ath10k_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movl	40(%rsi), %edi
	callq	___le32_to_cpu
	movq	%rax, 56(%r14)
	movl	36(%rbx), %edi
	callq	___le16_to_cpu
	movq	%rax, 48(%r14)
	movl	32(%rbx), %edi
	callq	___le16_to_cpu
	movq	%rax, 40(%r14)
	movl	28(%rbx), %eax
	movl	%eax, 36(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	20(%rbx), %edi
	callq	___le32_to_cpu
	movq	%rax, 24(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	$48, (%r14)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	___le16_to_cpu
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	___le16_to_cpu
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	callq	___le16_to_cpu
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	8(%rbx), %rax
	movl	12(%rax), %edi
	callq	___le16_to_cpu
	movq	8(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.5:
	movq	_PHY_ERROR_SPECTRAL_SCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_PHY_ERROR_FALSE_RADAR_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_PHY_ERROR_RADAR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_PHY_ERROR_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong phyerr event head len %d (need: >=%zd)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHY_ERROR_SPECTRAL_SCAN,4,2    ## @PHY_ERROR_SPECTRAL_SCAN
	.comm	_PHY_ERROR_FALSE_RADAR_EXT,4,2  ## @PHY_ERROR_FALSE_RADAR_EXT
	.comm	_PHY_ERROR_RADAR,4,2            ## @PHY_ERROR_RADAR
	.comm	_PHY_ERROR_UNKNOWN,4,2          ## @PHY_ERROR_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_op_pull_phyerr_ev   ; -- Begin function ath10k_wmi_op_pull_phyerr_ev
	.p2align	2
_ath10k_wmi_op_pull_phyerr_ev:          ; @ath10k_wmi_op_pull_phyerr_ev
	.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
	cmp	w2, #47
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #48
	bl	_ath10k_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x19, x3
	mov	x20, x1
	ldr	w0, [x1, #40]
	bl	___le32_to_cpu
	str	x0, [x19, #56]
	ldr	w0, [x20, #36]
	bl	___le16_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x20, #32]
	bl	___le16_to_cpu
	str	x0, [x19, #40]
	ldr	d0, [x20, #24]
	str	d0, [x19, #32]
	ldr	w0, [x20, #20]
	bl	___le32_to_cpu
	str	x0, [x19, #24]
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	mov	w8, #48
	str	w8, [x19]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	___le16_to_cpu
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	___le16_to_cpu
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	___le16_to_cpu
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #12]
	bl	___le16_to_cpu
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #0
Lloh5:
	adrp	x8, _PHY_ERROR_SPECTRAL_SCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_ERROR_SPECTRAL_SCAN@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	w0, #0
Lloh7:
	adrp	x8, _PHY_ERROR_FALSE_RADAR_EXT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_ERROR_FALSE_RADAR_EXT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
Lloh9:
	adrp	x8, _PHY_ERROR_RADAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_ERROR_RADAR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
Lloh11:
	adrp	x8, _PHY_ERROR_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_ERROR_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong phyerr event head len %d (need: >=%zd)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHY_ERROR_SPECTRAL_SCAN,4,2    ; @PHY_ERROR_SPECTRAL_SCAN
	.comm	_PHY_ERROR_FALSE_RADAR_EXT,4,2  ; @PHY_ERROR_FALSE_RADAR_EXT
	.comm	_PHY_ERROR_RADAR,4,2            ; @PHY_ERROR_RADAR
	.comm	_PHY_ERROR_UNKNOWN,4,2          ; @PHY_ERROR_UNKNOWN
.subsections_via_symbols
