	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_burst_receive
_sii8620_burst_receive:                 ## @sii8620_burst_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
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_REG_EMSCRFIFOBCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	_sii8620_read_buf
	movq	%rbx, %rdi
	callq	_get_unaligned_le16
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	%eax, %r14d
	movq	_REG_EMSC_RCV_READ_PORT@GOTPCREL(%rip), %r13
	leaq	-60(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	$3, %esi
	callq	_min
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_sii8620_read_buf
	subl	%ebx, %r14d
	movl	(%r12), %eax
	addl	%ebx, %eax
	decl	%eax
	movl	%eax, (%r12)
	movslq	-56(%rbp), %rax
	movq	8(%r12), %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	movl	$0, %eax
	cmovleq	%rax, %rcx
	movq	%rcx, 8(%r12)
	cmpl	$3, %ebx
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sii8620_burst_get_rx_buf
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_sii8620_read_buf
	subl	%ebx, %r14d
	addl	%ebx, (%r12)
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_EMSCRFIFOBCNTL,4,2         ## @REG_EMSCRFIFOBCNTL
	.comm	_REG_EMSC_RCV_READ_PORT,4,2     ## @REG_EMSC_RCV_READ_PORT
	.no_dead_strip	_sii8620_burst_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_burst_receive
_sii8620_burst_receive:                 ; @sii8620_burst_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _REG_EMSCRFIFOBCNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_EMSCRFIFOBCNTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #2
	bl	_sii8620_read_buf
	add	x0, sp, #12
	bl	_get_unaligned_le16
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x22, _REG_EMSC_RCV_READ_PORT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _REG_EMSC_RCV_READ_PORT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #0
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #3
	bl	_min
	mov	x21, x0
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, x21
	bl	_sii8620_read_buf
	sub	w20, w20, w21
	ldr	w8, [x19]
	add	w8, w21, w8
	sub	w8, w8, #1
	str	w8, [x19]
	ldrsw	x8, [sp, #16]
	ldr	x9, [x19, #8]
	sub	x8, x9, x8
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	str	x8, [x19, #8]
	cmp	w21, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [sp, #20]
	cbz	w21, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_sii8620_burst_get_rx_buf
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x3, x21
	bl	_sii8620_read_buf
	sub	w20, w20, w21
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	b	LBB0_2
LBB0_7:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_EMSCRFIFOBCNTL,4,2         ; @REG_EMSCRFIFOBCNTL
	.comm	_REG_EMSC_RCV_READ_PORT,4,2     ; @REG_EMSC_RCV_READ_PORT
	.no_dead_strip	_sii8620_burst_receive
.subsections_via_symbols
