	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_update_ref_count
_acpi_ut_update_ref_count:              ## @acpi_ut_update_ref_count
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_ut_update_ref_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movl	(%r15), %r14d
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.4:
	leal	1(%r14), %edi
	movl	%edi, (%r15)
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_11
LBB0_9:
	movl	%r14d, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	$0, (%r15)
	jmp	LBB0_8
LBB0_5:
	leal	-1(%r14), %edi
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	cmovgl	%edi, %ebx
	cmovlel	%r14d, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	4(%r15), %eax
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
LBB0_7:
	movl	%ebx, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_acpi_ut_delete_internal_obj
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %edi
	callq	_ACPI_ERROR
LBB0_11:
	movq	_ACPI_MAX_REFERENCE_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_12
## %bb.13:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ACPI_WARNING                   ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_update_ref_count,4,2        ## @ut_update_ref_count
	.comm	_ACPI_DB_ALLOCATIONS,4,2        ## @ACPI_DB_ALLOCATIONS
	.comm	_ACPI_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_ACPI_MAX_REFERENCE_COUNT,4,2   ## @ACPI_MAX_REFERENCE_COUNT
	.no_dead_strip	_acpi_ut_update_ref_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ut_update_ref_count
_acpi_ut_update_ref_count:              ; @acpi_ut_update_ref_count
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ut_update_ref_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_update_ref_count@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	cbz	x19, LBB0_13
; %bb.1:
	ldr	w20, [x19]
	cmp	w21, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #128
	b.ne	LBB0_10
; %bb.4:
	add	w0, w20, #1
	str	w0, [x19]
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
	str	wzr, [x19]
	b	LBB0_9
LBB0_6:
	subs	w8, w20, #1
	csel	w0, w20, w8, lt
	csel	w21, wzr, w8, lt
	bl	_ACPI_DEBUG_PRINT
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _ACPI_TYPE_METHOD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
LBB0_8:
	str	w21, [x19]
	cbnz	w21, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_acpi_ut_delete_internal_obj
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_ACPI_ERROR
LBB0_11:
Lloh6:
	adrp	x8, _ACPI_MAX_REFERENCE_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_MAX_REFERENCE_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_13
; %bb.12:
	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	_ACPI_WARNING
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_update_ref_count,4,2        ; @ut_update_ref_count
	.comm	_ACPI_DB_ALLOCATIONS,4,2        ; @ACPI_DB_ALLOCATIONS
	.comm	_ACPI_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_ACPI_MAX_REFERENCE_COUNT,4,2   ; @ACPI_MAX_REFERENCE_COUNT
	.no_dead_strip	_acpi_ut_update_ref_count
.subsections_via_symbols
