	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function acpi_ps_get_next_package_length
LCPI0_0:
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	4294967294                      ## 0xfffffffe
	.long	4294967293                      ## 0xfffffffd
LCPI0_1:
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
	.long	4294967292                      ## 0xfffffffc
LCPI0_2:
	.long	4294967260                      ## 0xffffffdc
	.long	4294967260                      ## 0xffffffdc
	.long	4294967260                      ## 0xffffffdc
	.long	4294967260                      ## 0xffffffdc
LCPI0_3:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_4:
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_acpi_ps_get_next_package_length:       ## @acpi_ps_get_next_package_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_ps_get_next_package_length@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	(%r14), %eax
	movl	%eax, %ecx
	sarl	$6, %ecx
	movslq	%ecx, %rcx
	movq	(%rbx), %rdx
	leaq	(%rdx,%rcx,4), %rdx
	addq	$4, %rdx
	movq	%rdx, (%rbx)
	cmpl	$64, %eax
	jae	LBB0_2
## %bb.1:
	movl	$63, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$512, %eax                      ## imm = 0x200
	jae	LBB0_4
## %bb.3:
	movq	%rcx, %rdx
	jmp	LBB0_7
LBB0_4:
	movq	%rcx, %r8
	andq	$-8, %r8
	movd	%ecx, %xmm0
	movl	%ecx, %edx
	andl	$7, %edx
	pshufd	$0, %xmm0, %xmm4                ## xmm4 = xmm0[0,0,0,0]
	paddd	LCPI0_0(%rip), %xmm4
	movq	%r8, %rdi
	negq	%rdi
	leaq	(%r14,%rcx,4), %rbx
	addq	$-12, %rbx
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4294967292,4294967292,4294967292,4294967292]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [4294967260,4294967260,4294967260,4294967260]
	movdqa	LCPI0_3(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [4294967288,4294967288,4294967288,4294967288]
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rbx,%rsi,4), %xmm7
	movdqu	(%rbx,%rsi,4), %xmm2
	pshufd	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	pshufd	$27, %xmm7, %xmm7               ## xmm7 = xmm7[3,2,1,0]
	movdqa	%xmm4, %xmm0
	pslld	$3, %xmm0
	movdqa	%xmm0, %xmm6
	paddd	%xmm8, %xmm6
	paddd	%xmm9, %xmm0
	pslld	$23, %xmm6
	paddd	%xmm5, %xmm6
	cvttps2dq	%xmm6, %xmm6
	pmulld	%xmm2, %xmm6
	por	%xmm6, %xmm1
	pslld	$23, %xmm0
	paddd	%xmm5, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	%xmm7, %xmm0
	por	%xmm0, %xmm3
	paddd	%xmm10, %xmm4
	addq	$-8, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_5
## %bb.6:
	por	%xmm1, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %ebx
	movl	$15, %edi
	cmpq	%rcx, %r8
	je	LBB0_10
LBB0_7:
	leal	-4(,%rdx,8), %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rdx,4), %esi
	shll	%cl, %esi
	orl	%esi, %ebx
	addl	$-8, %ecx
	decq	%rdx
	jne	LBB0_8
## %bb.9:
	movl	$15, %edi
LBB0_10:
	andl	%eax, %edi
	orl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_return_UINT32                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ps_get_next_package_length,4,2 ## @ps_get_next_package_length
	.no_dead_strip	_acpi_ps_get_next_package_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function acpi_ps_get_next_package_length
lCPI0_0:
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_acpi_ps_get_next_package_length:       ; @acpi_ps_get_next_package_length
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _ps_get_next_package_length@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ps_get_next_package_length@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	w8, [x20]
	asr	w9, w8, #6
	add	w10, w9, #1
	ldr	x11, [x19]
	add	x10, x11, w10, sxtw #2
	str	x10, [x19]
	cmp	w8, #64
	b.hs	LBB0_2
; %bb.1:
	mov	w12, #0
	mov	w9, #63
	b	LBB0_10
LBB0_2:
	sxtw	x10, w9
	cmp	w8, #1024
	b.hs	LBB0_4
; %bb.3:
	mov	w12, #0
	mov	x9, x10
	b	LBB0_7
LBB0_4:
	dup.4s	v0, w9
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	and	x11, x10, #0xfffffffffffffff0
	and	x9, x10, #0xf
	movi.2d	v1, #0000000000000000
	mvni.4s	v2, #3
	mvni.4s	v3, #35
	add	x12, x20, x10, lsl #2
	sub	x12, x12, #28
	mvni.4s	v4, #67
	mvni.4s	v5, #99
	mvni.4s	v6, #15
	mov	x13, x11
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q19, q18, [x12]
	rev64.4s	v18, v18
	ext.16b	v18, v18, v18, #8
	rev64.4s	v19, v19
	ext.16b	v19, v19, v19, #8
	ldp	q21, q20, [x12, #-32]
	rev64.4s	v20, v20
	ext.16b	v20, v20, v20, #8
	rev64.4s	v21, v21
	ext.16b	v21, v21, v21, #8
	shl.4s	v22, v0, #3
	add.4s	v23, v22, v2
	add.4s	v24, v22, v3
	add.4s	v25, v22, v4
	add.4s	v22, v22, v5
	ushl.4s	v18, v18, v23
	ushl.4s	v19, v19, v24
	ushl.4s	v20, v20, v25
	ushl.4s	v21, v21, v22
	orr.16b	v1, v18, v1
	orr.16b	v7, v19, v7
	orr.16b	v16, v20, v16
	orr.16b	v17, v21, v17
	add.4s	v0, v0, v6
	sub	x12, x12, #64
	sub	x13, x13, #16
	cbnz	x13, LBB0_5
; %bb.6:
	orr.16b	v0, v7, v1
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w12, w12, w13
	cmp	x11, x10
	b.eq	LBB0_9
LBB0_7:
	lsl	w10, w9, #3
	sub	w10, w10, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20, x9, lsl #2]
	lsl	w11, w11, w10
	orr	w12, w11, w12
	sub	w10, w10, #8
	sub	x9, x9, #1
	cbnz	x9, LBB0_8
LBB0_9:
	mov	w9, #15
LBB0_10:
	and	w8, w9, w8
	orr	w0, w8, w12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_UINT32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ps_get_next_package_length,4,2 ; @ps_get_next_package_length
	.no_dead_strip	_acpi_ps_get_next_package_length
.subsections_via_symbols
