	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wlc_phy_loadsampletable_nphy
LCPI0_0:
	.long	1047552                         ## 0xffc00
	.long	1047552                         ## 0xffc00
	.space	4
	.space	4
LCPI0_1:
	.long	1023                            ## 0x3ff
	.long	1023                            ## 0x3ff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wlc_phy_loadsampletable_nphy:          ## @wlc_phy_loadsampletable_nphy
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_3:
	testq	%r15, %r15
	je	LBB0_11
## %bb.4:
	cmpq	$4, %r15
	jae	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rax
	andq	$-4, %rax
	leaq	32(%r12), %rcx
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <1047552,1047552,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <1023,1023,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rcx), %xmm2
	movdqu	-16(%rcx), %xmm3
	movdqu	(%rcx), %xmm4
	movdqu	16(%rcx), %xmm5
	movdqa	%xmm2, %xmm6
	punpckhdq	%xmm3, %xmm6            ## xmm6 = xmm6[2],xmm3[2],xmm6[3],xmm3[3]
	movdqa	%xmm4, %xmm7
	punpckhdq	%xmm5, %xmm7            ## xmm7 = xmm7[2],xmm5[2],xmm7[3],xmm5[3]
	pslld	$10, %xmm6
	pslld	$10, %xmm7
	pand	%xmm0, %xmm6
	pand	%xmm0, %xmm7
	punpckldq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
	punpckldq	%xmm5, %xmm4            ## xmm4 = xmm4[0],xmm5[0],xmm4[1],xmm5[1]
	pand	%xmm1, %xmm2
	por	%xmm6, %xmm2
	pand	%xmm1, %xmm4
	por	%xmm7, %xmm4
	punpcklqdq	%xmm4, %xmm2            ## xmm2 = xmm2[0],xmm4[0]
	movdqu	%xmm2, (%rbx,%rdx,4)
	addq	$4, %rdx
	addq	$64, %rcx
	cmpq	%rdx, %rax
	jne	LBB0_7
## %bb.8:
	cmpq	%r15, %rax
	je	LBB0_11
LBB0_9:
	movq	%rax, %rcx
	shlq	$4, %rcx
	addq	%r12, %rcx
	addq	$8, %rcx
	movl	$1023, %edx                     ## imm = 0x3FF
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	shll	$10, %esi
	andl	$1047552, %esi                  ## imm = 0xFFC00
	movl	-8(%rcx), %edi
	andl	%edx, %edi
	orl	%esi, %edi
	movl	%edi, (%rbx,%rax,4)
	incq	%rax
	addq	$16, %rcx
	cmpq	%rax, %r15
	jne	LBB0_10
LBB0_11:
	movq	_NPHY_TBL_ID_SAMPLEPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	$32, %r8d
	movq	%rbx, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%rbx, %rdi
	callq	_kfree
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_phy_stay_in_carriersearch_nphy ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_NPHY_TBL_ID_SAMPLEPLAY,4,2     ## @NPHY_TBL_ID_SAMPLEPLAY
	.no_dead_strip	_wlc_phy_loadsampletable_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_loadsampletable_nphy
_wlc_phy_loadsampletable_nphy:          ; @wlc_phy_loadsampletable_nphy
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_13
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_3:
	cbz	x20, LBB0_11
; %bb.4:
	cmp	x20, #8
	b.hs	LBB0_6
; %bb.5:
	mov	x8, #0
	b	LBB0_9
LBB0_6:
	and	x8, x20, #0xfffffffffffffff8
	add	x9, x21, #16
	add	x10, x22, #64
	mov	w11, #1047552
	dup.2s	v0, w11
	movi.2s	v1, #3, msl #8
	mov	x11, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #64
	ld2.2d	{ v2, v3 }, [x12]
	sub	x12, x10, #32
	ld2.2d	{ v4, v5 }, [x12]
	mov	x12, x10
	ld2.2d	{ v6, v7 }, [x12], #32
	ld2.2d	{ v16, v17 }, [x12]
	xtn.2s	v18, v3
	xtn.2s	v19, v5
	xtn.2s	v20, v7
	xtn.2s	v21, v17
	shl.2s	v18, v18, #10
	shl.2s	v19, v19, #10
	shl.2s	v20, v20, #10
	shl.2s	v21, v21, #10
	and.8b	v18, v18, v0
	and.8b	v19, v19, v0
	and.8b	v20, v20, v0
	and.8b	v21, v21, v0
	xtn.2s	v2, v2
	xtn.2s	v3, v4
	xtn.2s	v4, v6
	xtn.2s	v5, v16
	and.8b	v2, v2, v1
	and.8b	v3, v3, v1
	and.8b	v4, v4, v1
	and.8b	v5, v5, v1
	orr.8b	v2, v18, v2
	orr.8b	v3, v19, v3
	orr.8b	v4, v20, v4
	stur	d2, [x9, #-16]
	stur	d3, [x9, #-8]
	orr.8b	v2, v21, v5
	str	d4, [x9]
	str	d2, [x9, #8]
	add	x9, x9, #32
	add	x10, x10, #128
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x8, x20
	b.eq	LBB0_11
LBB0_9:
	sub	x9, x20, x8
	add	x10, x21, x8, lsl #2
	add	x8, x22, x8, lsl #4
	add	x8, x8, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	ldur	w12, [x8, #-8]
	and	w12, w12, #0x3ff
	bfi	w12, w11, #10, #10
	str	w12, [x10], #4
	add	x8, x8, #16
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
Lloh3:
	adrp	x8, _NPHY_TBL_ID_SAMPLEPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPHY_TBL_ID_SAMPLEPLAY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #32
	mov	x5, x21
	bl	_wlc_phy_table_write_nphy
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	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	_wlc_phy_stay_in_carriersearch_nphy
LBB0_13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_NPHY_TBL_ID_SAMPLEPLAY,4,2     ; @NPHY_TBL_ID_SAMPLEPLAY
	.no_dead_strip	_wlc_phy_loadsampletable_nphy
.subsections_via_symbols
