	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ee_insert_emcontent
__rtl92ee_insert_emcontent:             ## @_rtl92ee_insert_emcontent
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$8, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_set_earlymode_pktnum
	cmpl	$1, (%r15)
	movq	8(%r15), %rax
	movl	(%rax), %esi
	je	LBB0_2
## %bb.1:
	leal	3(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-4, %ecx
	movl	%esi, %edx
	subl	%ecx, %edx
	subl	%edx, %ebx
	testl	%edx, %edx
	movl	$4, %ecx
	cmovnel	%ebx, %ecx
	addl	4(%rax), %esi
	addl	%ecx, %esi
LBB0_2:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_earlymode_len0
	cmpl	$4, (%r15)
	movq	8(%r15), %rax
	movl	8(%rax), %esi
	jl	LBB0_4
## %bb.3:
	leal	3(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-4, %ecx
	movl	%esi, %edx
	subl	%ecx, %edx
	movl	$8, %ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	movl	$4, %edx
	cmovnel	%ecx, %edx
	addl	12(%rax), %esi
	addl	%edx, %esi
LBB0_4:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_earlymode_len1
	cmpl	$6, (%r15)
	movq	8(%r15), %rax
	movl	16(%rax), %ebx
	jl	LBB0_6
## %bb.5:
	leal	3(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	andl	$-4, %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	movl	$8, %ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	movl	$4, %edx
	cmovnel	%ecx, %edx
	addl	20(%rax), %ebx
	addl	%edx, %ebx
LBB0_6:
	movl	%ebx, %esi
	andl	$15, %esi
	movq	%r14, %rdi
	callq	_set_earlymode_len2_1
	sarl	$4, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_earlymode_len2_2
	cmpl	$8, (%r15)
	movq	8(%r15), %rax
	movl	24(%rax), %esi
	jl	LBB0_8
## %bb.7:
	leal	3(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-4, %ecx
	movl	%esi, %edx
	subl	%ecx, %edx
	movl	$8, %ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	movl	$4, %edx
	cmovnel	%ecx, %edx
	addl	28(%rax), %esi
	addl	%edx, %esi
LBB0_8:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_earlymode_len3
	cmpl	$10, (%r15)
	movq	8(%r15), %rax
	movl	32(%rax), %esi
	jl	LBB0_10
## %bb.9:
	leal	3(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-4, %ecx
	movl	%esi, %edx
	subl	%ecx, %edx
	movl	$8, %ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	movl	$4, %edx
	cmovnel	%ecx, %edx
	addl	36(%rax), %esi
	addl	%edx, %esi
LBB0_10:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_earlymode_len4             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__rtl92ee_insert_emcontent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92ee_insert_emcontent
__rtl92ee_insert_emcontent:             ; @_rtl92ee_insert_emcontent
	.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	x19, x1
	mov	x20, x0
	mov	w21, #8
	mov	x0, x1
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w1, [x20]
	mov	x0, x19
	bl	_set_earlymode_pktnum
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.1:
	negs	w9, w1
	and	w9, w9, #0x3
	and	w10, w1, #0x3
	csneg	w9, w10, w9, mi
	sub	w10, w21, w9
	mov	w11, #4
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w8, [x8, #4]
	add	w8, w8, w1
	add	w1, w8, w9
LBB0_2:
	mov	x0, x19
	bl	_set_earlymode_len0
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	cmp	w9, #4
	b.lt	LBB0_4
; %bb.3:
	negs	w9, w1
	and	w9, w9, #0x3
	and	w10, w1, #0x3
	csneg	w9, w10, w9, mi
	mov	w10, #8
	sub	w10, w10, w9
	mov	w11, #4
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w8, [x8, #12]
	add	w8, w8, w1
	add	w1, w8, w9
LBB0_4:
	mov	x0, x19
	bl	_set_earlymode_len1
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w21, [x8, #16]
	cmp	w9, #6
	b.lt	LBB0_6
; %bb.5:
	negs	w9, w21
	and	w9, w9, #0x3
	and	w10, w21, #0x3
	csneg	w9, w10, w9, mi
	mov	w10, #8
	sub	w10, w10, w9
	mov	w11, #4
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w8, [x8, #20]
	add	w8, w8, w21
	add	w21, w8, w9
LBB0_6:
	and	w1, w21, #0xf
	mov	x0, x19
	bl	_set_earlymode_len2_1
	asr	w1, w21, #4
	mov	x0, x19
	bl	_set_earlymode_len2_2
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #24]
	cmp	w9, #8
	b.lt	LBB0_8
; %bb.7:
	negs	w9, w1
	and	w9, w9, #0x3
	and	w10, w1, #0x3
	csneg	w9, w10, w9, mi
	mov	w10, #8
	sub	w10, w10, w9
	mov	w11, #4
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w8, [x8, #28]
	add	w8, w8, w1
	add	w1, w8, w9
LBB0_8:
	mov	x0, x19
	bl	_set_earlymode_len3
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #32]
	cmp	w9, #10
	b.lt	LBB0_10
; %bb.9:
	negs	w9, w1
	and	w9, w9, #0x3
	and	w10, w1, #0x3
	csneg	w9, w10, w9, mi
	mov	w10, #8
	sub	w10, w10, w9
	mov	w11, #4
	cmp	w9, #0
	csel	w9, w11, w10, eq
	ldr	w8, [x8, #36]
	add	w8, w8, w1
	add	w1, w8, w9
LBB0_10:
	mov	x0, x19
	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	_set_earlymode_len4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__rtl92ee_insert_emcontent
.subsections_via_symbols
