	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_10_4_op_pull_phyerr_ev
_ath10k_wmi_10_4_op_pull_phyerr_ev:     ## @ath10k_wmi_10_4_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_8
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)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	___le32_to_cpu
	movq	_PHY_ERROR_10_4_SPECTRAL_SCAN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_PHY_ERROR_SPECTRAL_SCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_PHY_ERROR_10_4_RADAR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_PHY_ERROR_RADAR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_PHY_ERROR_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_8:
	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_10_4_SPECTRAL_SCAN_MASK,4,2 ## @PHY_ERROR_10_4_SPECTRAL_SCAN_MASK
	.comm	_PHY_ERROR_SPECTRAL_SCAN,4,2    ## @PHY_ERROR_SPECTRAL_SCAN
	.comm	_PHY_ERROR_10_4_RADAR_MASK,4,2  ## @PHY_ERROR_10_4_RADAR_MASK
	.comm	_PHY_ERROR_RADAR,4,2            ## @PHY_ERROR_RADAR
	.comm	_PHY_ERROR_UNKNOWN,4,2          ## @PHY_ERROR_UNKNOWN
	.no_dead_strip	_ath10k_wmi_10_4_op_pull_phyerr_ev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_10_4_op_pull_phyerr_ev
_ath10k_wmi_10_4_op_pull_phyerr_ev:     ; @ath10k_wmi_10_4_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_8
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	x8, [x20]
	ldr	w0, [x8]
	bl	___le32_to_cpu
Lloh5:
	adrp	x8, _PHY_ERROR_10_4_SPECTRAL_SCAN_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_ERROR_10_4_SPECTRAL_SCAN_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh8:
	adrp	x8, _PHY_ERROR_SPECTRAL_SCAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHY_ERROR_SPECTRAL_SCAN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _PHY_ERROR_10_4_RADAR_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_ERROR_10_4_RADAR_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
Lloh13:
	adrp	x8, _PHY_ERROR_RADAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHY_ERROR_RADAR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
Lloh15:
	adrp	x8, _PHY_ERROR_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_ERROR_UNKNOWN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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_10_4_SPECTRAL_SCAN_MASK,4,2 ; @PHY_ERROR_10_4_SPECTRAL_SCAN_MASK
	.comm	_PHY_ERROR_SPECTRAL_SCAN,4,2    ; @PHY_ERROR_SPECTRAL_SCAN
	.comm	_PHY_ERROR_10_4_RADAR_MASK,4,2  ; @PHY_ERROR_10_4_RADAR_MASK
	.comm	_PHY_ERROR_RADAR,4,2            ; @PHY_ERROR_RADAR
	.comm	_PHY_ERROR_UNKNOWN,4,2          ; @PHY_ERROR_UNKNOWN
	.no_dead_strip	_ath10k_wmi_10_4_op_pull_phyerr_ev
.subsections_via_symbols
