	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43_nphy_load_samples
LCPI0_0:
	.long	1047552                         ## 0xffc00
	.long	1047552                         ## 0xffc00
	.long	1047552                         ## 0xffc00
	.long	1047552                         ## 0xffc00
LCPI0_1:
	.long	1023                            ## 0x3ff
	.long	1023                            ## 0x3ff
	.long	1023                            ## 0x3ff
	.long	1023                            ## 0x3ff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_b43_nphy_load_samples:                 ## @b43_nphy_load_samples
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_3:
	testq	%r15, %r15
	je	LBB0_21
## %bb.4:
	cmpq	$4, %r15
	jb	LBB0_5
## %bb.7:
	leaq	(%rbx,%r15,8), %rax
	cmpq	%rax, %r12
	jae	LBB0_10
## %bb.8:
	leaq	(%r12,%r15,4), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_10
LBB0_5:
	xorl	%eax, %eax
LBB0_16:
	movq	%rax, %rcx
	notq	%rcx
	testb	$1, %r15b
	je	LBB0_18
## %bb.17:
	movl	$1047552, %edx                  ## imm = 0xFFC00
	andl	(%rbx,%rax,8), %edx
	movl	%edx, (%r12,%rax,4)
	movl	$1023, %esi                     ## imm = 0x3FF
	andl	4(%rbx,%rax,8), %esi
	orl	%edx, %esi
	movl	%esi, (%r12,%rax,4)
	orq	$1, %rax
LBB0_18:
	addq	%r15, %rcx
	je	LBB0_21
## %bb.19:
	movl	$1047552, %ecx                  ## imm = 0xFFC00
	movl	$1023, %edx                     ## imm = 0x3FF
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,8), %esi
	andl	%ecx, %esi
	movl	%esi, (%r12,%rax,4)
	movl	4(%rbx,%rax,8), %edi
	andl	%edx, %edi
	orl	%esi, %edi
	movl	%edi, (%r12,%rax,4)
	movl	8(%rbx,%rax,8), %esi
	andl	%ecx, %esi
	movl	%esi, 4(%r12,%rax,4)
	movl	12(%rbx,%rax,8), %edi
	andl	%edx, %edi
	orl	%esi, %edi
	movl	%edi, 4(%r12,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %r15
	jne	LBB0_20
	jmp	LBB0_21
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_10:
	movq	%r15, %rax
	andq	$-4, %rax
	leaq	-4(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.11:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1047552,1047552,1047552,1047552]
	movaps	LCPI0_1(%rip), %xmm1            ## xmm1 = [1023,1023,1023,1023]
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rcx,8), %xmm2
	movups	16(%rbx,%rcx,8), %xmm3
	movaps	%xmm2, %xmm4
	shufps	$136, %xmm3, %xmm4              ## xmm4 = xmm4[0,2],xmm3[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	andps	%xmm0, %xmm4
	andps	%xmm1, %xmm2
	orps	%xmm4, %xmm2
	movups	%xmm2, (%r12,%rcx,4)
	movups	32(%rbx,%rcx,8), %xmm2
	movups	48(%rbx,%rcx,8), %xmm3
	movaps	%xmm2, %xmm4
	shufps	$136, %xmm3, %xmm4              ## xmm4 = xmm4[0,2],xmm3[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	andps	%xmm0, %xmm4
	andps	%xmm1, %xmm2
	orps	%xmm4, %xmm2
	movups	%xmm2, 16(%r12,%rcx,4)
	addq	$8, %rcx
	addq	$-2, %rsi
	jne	LBB0_12
## %bb.13:
	testb	$1, %dl
	je	LBB0_15
LBB0_14:
	movups	(%rbx,%rcx,8), %xmm0
	movups	16(%rbx,%rcx,8), %xmm1
	movaps	%xmm0, %xmm2
	shufps	$136, %xmm1, %xmm2              ## xmm2 = xmm2[0,2],xmm1[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	andps	LCPI0_0(%rip), %xmm2
	andps	LCPI0_1(%rip), %xmm0
	orps	%xmm2, %xmm0
	movups	%xmm0, (%r12,%rcx,4)
LBB0_15:
	cmpq	%r15, %rax
	jne	LBB0_16
LBB0_21:
	xorl	%ebx, %ebx
	movl	$17, %edi
	xorl	%esi, %esi
	callq	_B43_NTAB32
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_b43_ntab_write_bulk
	movq	%r12, %rdi
	callq	_kfree
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.22:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ecx, %ecx
	testb	$1, %dl
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocation for samples loading failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_b43_nphy_load_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_load_samples
_b43_nphy_load_samples:                 ; @b43_nphy_load_samples
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_3:
	cbz	x20, LBB0_13
; %bb.4:
	cmp	x20, #8
	b.lo	LBB0_10
; %bb.5:
	add	x8, x21, x20, lsl #2
	add	x9, x22, x20, lsl #3
	cmp	x21, x9
	ccmp	x8, x22, #0, lo
	b.hi	LBB0_10
; %bb.6:
	and	x8, x20, #0xfffffffffffffff8
	add	x9, x22, #32
	add	x10, x21, #16
	mov	w11, #1047552
	dup.4s	v0, w11
	movi.4s	v1, #3, msl #8
	mov	x11, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x9, #32
	ld2.4s	{ v2, v3 }, [x12]
	ld2.4s	{ v4, v5 }, [x9]
	and.16b	v6, v2, v0
	and.16b	v7, v4, v0
	and.16b	v2, v3, v1
	and.16b	v3, v5, v1
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	stp	q2, q3, [x10, #-16]
	add	x9, x9, #64
	add	x10, x10, #32
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x8, x20
	b.ne	LBB0_11
	b	LBB0_13
LBB0_9:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_10:
	mov	x8, #0
LBB0_11:
	sub	x9, x20, x8
	add	x10, x21, x8, lsl #2
	add	x8, x22, x8, lsl #3
	add	x8, x8, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x8, #-4]
	and	w11, w11, #0xffc00
	str	w11, [x10]
	ldr	w12, [x8], #8
	bfxil	w11, w12, #0, #10
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_13:
	mov	w0, #17
	mov	w1, #0
	bl	_B43_NTAB32
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_b43_ntab_write_bulk
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x23]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_stay_in_carrier_search
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocation for samples loading failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_b43_nphy_load_samples
.subsections_via_symbols
