	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_repair_object          ## -- Begin function acpi_ns_repair_object
	.p2align	4, 0x90
_acpi_ns_repair_object:                 ## @acpi_ns_repair_object
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rcx), %rbx
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	cmpl	$128, (%rbx)
	jne	LBB0_15
## %bb.1:
	movq	%rcx, %r15
	movq	_ACPI_RTYPE_STRING@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_15
## %bb.2:
	movl	%edx, %r12d
	movq	(%rbx), %rax
	testq	%rax, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rcx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.7:
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rdi
	callq	_acpi_ut_create_string_object
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	movq	%r14, %rdx
	callq	_ACPI_MEMCPY
	movq	_ACPI_NOT_PACKAGE_ELEMENT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_9:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movl	4(%rbx), %eax
	movl	%eax, 4(%r13)
	movl	4(%rbx), %eax
	cmpl	$2, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_14
## %bb.13:
	decl	%eax
	movl	%eax, 4(%rbx)
LBB0_14:
	movl	%r12d, %edi
	callq	_ACPI_WARN_PREDEFINED
	movq	%rbx, %rdi
	callq	_acpi_ut_remove_reference
	movq	%r13, (%r15)
	movq	_ACPI_OBJECT_REPAIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_RTYPE_STRING,4,2          ## @ACPI_RTYPE_STRING
	.comm	_AE_AML_OPERAND_TYPE,4,2        ## @AE_AML_OPERAND_TYPE
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_ACPI_NOT_PACKAGE_ELEMENT,4,2   ## @ACPI_NOT_PACKAGE_ELEMENT
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Converted Buffer to expected String"

	.comm	_ACPI_OBJECT_REPAIRED,4,2       ## @ACPI_OBJECT_REPAIRED
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_repair_object          ; -- Begin function acpi_ns_repair_object
	.p2align	2
_acpi_ns_repair_object:                 ; @acpi_ns_repair_object
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x3]
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_RTYPE_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_RTYPE_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.2:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x24, #0
	ldr	x9, [x21, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x24, lsl #2]
	cbz	w10, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x8, x24
	b.ne	LBB0_4
; %bb.6:
	mov	x24, x8
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	mov	x24, #0
LBB0_9:
	mov	x0, x24
	bl	_acpi_ut_create_string_object
	cbz	x0, LBB0_12
; %bb.10:
	mov	x23, x0
	ldr	w0, [x0]
	ldr	x1, [x21, #8]
	mov	x2, x24
	bl	_ACPI_MEMCPY
Lloh5:
	adrp	x8, _ACPI_NOT_PACKAGE_ELEMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_NOT_PACKAGE_ELEMENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_13
; %bb.11:
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh10:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	ldr	w8, [x21, #4]
	str	w8, [x23, #4]
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.14:
	sub	w8, w8, #1
	str	w8, [x21, #4]
LBB0_15:
	mov	x0, x22
	bl	_ACPI_WARN_PREDEFINED
	mov	x0, x21
	bl	_acpi_ut_remove_reference
	str	x23, [x20]
Lloh12:
	adrp	x8, _ACPI_OBJECT_REPAIRED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_OBJECT_REPAIRED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x8, _AE_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_RTYPE_STRING,4,2          ; @ACPI_RTYPE_STRING
	.comm	_AE_AML_OPERAND_TYPE,4,2        ; @AE_AML_OPERAND_TYPE
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_NOT_PACKAGE_ELEMENT,4,2   ; @ACPI_NOT_PACKAGE_ELEMENT
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Converted Buffer to expected String"

	.comm	_ACPI_OBJECT_REPAIRED,4,2       ; @ACPI_OBJECT_REPAIRED
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
