	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function supereagle_generic_packets
_supereagle_generic_packets:            ## @supereagle_generic_packets
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r13d
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	movl	16(%rbp), %r15d
	movq	8(%rdi), %r12
	movq	16(%rdi), %r14
	leaq	(,%r13,4), %r10
	xorl	%r11d, %r11d
	xorl	%r9d, %r9d
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdx), %edx
	movl	%edx, 8(%rsi,%r9,4)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rsi,%r9,4)
	addq	$4, %r9
	cmpq	%r9, %r10
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %edi
	addl	%r15d, %r11d
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movq	_SUPEREAGLE_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%edi, %edx
	imulq	%rcx, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rdx,4), %rdx
	movq	%rdx, 40(%r14,%r9)
	movq	%rdi, %rdx
	movq	24(%rbp), %rbx
	imulq	%rbx, %rdx
	leaq	(%r8,%rdx,4), %rdx
	movq	%rdx, 32(%r14,%r9)
	movq	%rcx, (%r14,%r9)
	movq	%rbx, 8(%r14,%r9)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 16(%r14,%r9)
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%edx, 20(%r14,%r9)
	movl	%edi, 24(%r14,%r9)
	xorl	%edx, %edx
	cmpl	%r15d, %eax
	leaq	(%r14,%r9), %rax
	sete	%dl
	movl	%edx, 28(%r14,%r9)
	movq	_supereagle_work_cb_rgb565@GOTPCREL(%rip), %rdx
	movq	_SOFTFILTER_FMT_RGB565@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_supereagle_work_cb_xrgb8888@GOTPCREL(%rip), %rdx
	movq	_SOFTFILTER_FMT_XRGB8888@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %r12
	je	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPEREAGLE_SCALE,4,2           ## @SUPEREAGLE_SCALE
	.comm	_SOFTFILTER_FMT_RGB565,8,3      ## @SOFTFILTER_FMT_RGB565
	.comm	_supereagle_work_cb_rgb565,4,2  ## @supereagle_work_cb_rgb565
	.comm	_SOFTFILTER_FMT_XRGB8888,8,3    ## @SOFTFILTER_FMT_XRGB8888
	.comm	_supereagle_work_cb_xrgb8888,4,2 ## @supereagle_work_cb_xrgb8888
	.no_dead_strip	_supereagle_generic_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function supereagle_generic_packets
_supereagle_generic_packets:            ; @supereagle_generic_packets
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w9, #0
	ldp	x11, x10, [x0, #8]
Lloh0:
	adrp	x12, _SUPEREAGLE_SCALE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _SUPEREAGLE_SCALE@GOTPAGEOFF]
Lloh2:
	adrp	x13, _SOFTFILTER_FMT_RGB565@GOTPAGE
Lloh3:
	ldr	x13, [x13, _SOFTFILTER_FMT_RGB565@GOTPAGEOFF]
Lloh4:
	adrp	x14, _supereagle_work_cb_rgb565@GOTPAGE
Lloh5:
	ldr	x14, [x14, _supereagle_work_cb_rgb565@GOTPAGEOFF]
	add	x15, x1, #8
Lloh6:
	adrp	x16, _SOFTFILTER_FMT_XRGB8888@GOTPAGE
Lloh7:
	ldr	x16, [x16, _SOFTFILTER_FMT_XRGB8888@GOTPAGEOFF]
	mov	x17, x8
Lloh8:
	adrp	x0, _supereagle_work_cb_xrgb8888@GOTPAGE
Lloh9:
	ldr	x0, [x0, _supereagle_work_cb_xrgb8888@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x1]
	str	w1, [x15]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	stur	x10, [x15, #-8]
	add	x15, x15, #16
	add	w9, w9, w6
	add	x10, x10, #4
	subs	x17, x17, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w1, w9, w8
	add	w19, w6, w9
	udiv	w19, w19, w8
	ldr	w20, [x12]
	mul	w20, w20, w1
	mul	x20, x20, x3
	add	x20, x2, x20, lsl #2
	mul	x21, x1, x7
	add	x21, x4, x21, lsl #2
	stp	x21, x20, [x10, #32]
	stp	x3, x7, [x10]
	sub	w20, w19, w1
	stp	w5, w20, [x10, #16]
	cmp	w19, w6
	cset	w19, eq
	stp	w1, w19, [x10, #24]
	ldr	x19, [x13]
	mov	x1, x14
	cmp	x11, x19
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x16]
	mov	x1, x0
	cmp	x11, x19
	b.eq	LBB0_2
	b	LBB0_3
LBB0_6:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPEREAGLE_SCALE,4,2           ; @SUPEREAGLE_SCALE
	.comm	_SOFTFILTER_FMT_RGB565,8,3      ; @SOFTFILTER_FMT_RGB565
	.comm	_supereagle_work_cb_rgb565,4,2  ; @supereagle_work_cb_rgb565
	.comm	_SOFTFILTER_FMT_XRGB8888,8,3    ; @SOFTFILTER_FMT_XRGB8888
	.comm	_supereagle_work_cb_xrgb8888,4,2 ; @supereagle_work_cb_xrgb8888
	.no_dead_strip	_supereagle_generic_packets
.subsections_via_symbols
