	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_create_thread_state    ## -- Begin function acpi_ut_create_thread_state
	.p2align	4, 0x90
_acpi_ut_create_thread_state:           ## @acpi_ut_create_thread_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ut_create_thread_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	xorl	%eax, %eax
	callq	_acpi_ut_create_generic_state
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_return_PTR
LBB0_2:
	movq	_ACPI_DESC_TYPE_STATE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_acpi_os_get_thread_id
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	$1, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_return_PTR                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_create_thread_state,4,2     ## @ut_create_thread_state
	.comm	_ACPI_DESC_TYPE_STATE_THREAD,4,2 ## @ACPI_DESC_TYPE_STATE_THREAD
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid zero ID from AcpiOsGetThreadId"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_create_thread_state    ; -- Begin function acpi_ut_create_thread_state
	.p2align	2
_acpi_ut_create_thread_state:           ; @acpi_ut_create_thread_state
	.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
Lloh0:
	adrp	x8, _ut_create_thread_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_create_thread_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	bl	_acpi_ut_create_generic_state
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_return_PTR
LBB0_2:
Lloh3:
	adrp	x8, _ACPI_DESC_TYPE_STATE_THREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_DESC_TYPE_STATE_THREAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_acpi_os_get_thread_id
	str	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
	mov	w8, #1
	str	x8, [x19]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_create_thread_state,4,2     ; @ut_create_thread_state
	.comm	_ACPI_DESC_TYPE_STATE_THREAD,4,2 ; @ACPI_DESC_TYPE_STATE_THREAD
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid zero ID from AcpiOsGetThreadId"

.subsections_via_symbols
