	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_package
_extract_package:                       ## @extract_package
	.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	%rdx, %r14
	movq	(%rsi), %rax
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_13
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:
	movq	%rsi, %r12
	movl	%ecx, %ecx
	decq	%rcx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi,%r15), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	$-1, %edx
	cmovnel	%edx, %eax
	movl	%eax, (%rbx)
	cmpq	%r13, %rcx
	je	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$16, %r15
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	cmpq	$0, 8(%r14,%r15)
	movslq	(%r14,%r15), %rax
	leaq	(%rdi,%rax,8), %rbx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi,%r15), %rax
	movq	_ACPI_TYPE_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_strncpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	$0, 32(%rbx)
	cmpq	%r13, %rcx
	jne	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$32, %edx
	callq	_strncpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%r13, %rcx
	jne	LBB0_12
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rbx)
	cmpq	%r13, %rcx
	jne	LBB0_12
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ACPI_TYPE_STRING,8,3           ## @ACPI_TYPE_STRING
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.no_dead_strip	_extract_package
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_package
_extract_package:                       ; @extract_package
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	cmp	w3, #1
	b.lt	LBB0_12
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	mov	x24, #0
	mov	w8, w3
	sub	x25, x8, #1
Lloh3:
	adrp	x26, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh5:
	adrp	x27, _ACPI_TYPE_STRING@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ACPI_TYPE_STRING@GOTPAGEOFF]
Lloh7:
	adrp	x28, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh8:
	ldr	x28, [x28, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, x23]
	ldr	x9, [x26]
	cmp	x8, x9
	csinv	w8, w8, wzr, eq
	str	w8, [x22]
	cmp	x25, x24
	b.eq	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x9, x19, x23
	ldr	x10, [x9, #8]
	ldrsw	x9, [x9]
	add	x22, x21, x9, lsl #3
	cbz	x10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x8, x23
	ldr	x8, [x1]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x8
	mov	w2, #32
	bl	_strncpy
	cmp	x25, x24
	b.ne	LBB0_5
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	w2, #4
	bl	_strncpy
	str	xzr, [x22, #32]
	cmp	x25, x24
	b.ne	LBB0_5
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x22]
	cmp	x25, x24
	b.ne	LBB0_5
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ACPI_TYPE_STRING,8,3           ; @ACPI_TYPE_STRING
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.no_dead_strip	_extract_package
.subsections_via_symbols
