	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl3501_receive
_wl3501_receive:                        ## @wl3501_receive
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$48, %r15
	addl	$-12, %r12d
	movl	(%rdi), %esi
	addl	$2, %esi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	callq	_wl3501_get_from_wla
	movslq	%r12d, %rax
	movq	_WL3501_BLKSZ@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	addq	$-4, %rcx
	movl	(%rbx), %esi
	addl	$4, %esi
	cmpq	%rax, %rcx
	jae	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wl3501_get_from_wla
	movslq	(%r13), %rax
	addq	$-4, %rax
	subl	%eax, %r12d
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.4:
	leaq	(%r15,%rax,4), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	addl	$-5, %ecx
	movl	-44(%rbp), %esi
	addl	$5, %esi
	cmpl	%ecx, %r12d
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_wl3501_get_from_wla
	movslq	(%r13), %r15
	leaq	-5(%r15), %r13
	movl	-44(%rbp), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	leaq	-48(%rbp), %rdx
	movl	$4, %ecx
	callq	_wl3501_get_from_wla
	leaq	(%rbx,%r15,4), %rbx
	addq	$-20, %rbx
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	subl	%r13d, %r12d
	movq	_WL3501_BLKSZ@GOTPCREL(%rip), %r13
	jg	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rdx
	jmp	LBB0_2
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
LBB0_2:
	movl	%r12d, %ecx
	callq	_wl3501_get_from_wla
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL3501_BLKSZ,4,2               ## @WL3501_BLKSZ
	.no_dead_strip	_wl3501_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl3501_receive
_wl3501_receive:                        ; @wl3501_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x21, x1, #48
	sub	w20, w2, #12
	ldr	w8, [x0]
	add	w1, w8, #2
	add	x2, sp, #12
	mov	w3, #4
	bl	_wl3501_get_from_wla
Lloh0:
	adrp	x22, _WL3501_BLKSZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WL3501_BLKSZ@GOTPAGEOFF]
	ldrsw	x8, [x22]
	sub	x3, x8, #4
	ldr	w8, [x19]
	add	w1, w8, #4
	cmp	x3, w20, sxtw
	b.hs	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wl3501_get_from_wla
	ldrsw	x8, [x22]
	sub	x8, x8, #4
	sub	w20, w20, w8
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.2:
	add	x21, x21, x8, lsl #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	sub	w3, w8, #5
	ldr	w8, [sp, #12]
	add	w1, w8, #5
	cmp	w20, w3
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x2, x21
	bl	_wl3501_get_from_wla
	ldrsw	x8, [x22]
	sub	x8, x8, #5
	sub	w20, w20, w8
	add	x21, x21, x8, lsl #2
	ldr	w8, [sp, #12]
	add	w1, w8, #2
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_wl3501_get_from_wla
	ldr	w8, [sp, #8]
	str	w8, [sp, #12]
	cmp	w20, #0
	b.gt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_wl3501_get_from_wla
LBB0_6:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WL3501_BLKSZ,4,2               ; @WL3501_BLKSZ
	.no_dead_strip	_wl3501_receive
.subsections_via_symbols
