	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_create_buffer_field    ## -- Begin function acpi_ds_create_buffer_field
	.p2align	4, 0x90
_acpi_ds_create_buffer_field:           ## @acpi_ds_create_buffer_field
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ds_create_buffer_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%r14), %rax
	movq	_AML_CREATE_FIELD_OP@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	orl	$2, %esi
	movq	%r14, %rdi
	callq	_acpi_ps_get_arg
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_AE_AML_NO_OPERAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, -32(%rbp)
	jmp	LBB0_11
LBB0_4:
	movq	_ACPI_PARSE_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_AE_AML_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movq	_ACPI_NS_NO_UPSEARCH@GOTPCREL(%rip), %rax
	movq	_ACPI_NS_DONT_OPEN_SCOPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_ACPI_NS_ERROR_IF_FOUND@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.7:
	movq	_ACPI_PARSE_MODULE_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_ACPI_NS_TEMPORARY@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
LBB0_9:
	movl	4(%rbx), %edi
	movl	16(%r15), %esi
	movq	_ACPI_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ACPI_IMODE_LOAD_PASS1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %r9
	callq	_acpi_ns_lookup
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	16(%r15), %edi
	movl	%ebx, %esi
	callq	_ACPI_ERROR_NAMESPACE
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_11:
	movq	-32(%rbp), %rdi
	movq	%rdi, 8(%r14)
	callq	_acpi_ns_get_attached_object
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_13:
	movq	_ACPI_TYPE_BUFFER_FIELD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_acpi_ut_create_internal_object
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	(%rbx), %rax
	movl	4(%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r14), %ecx
	movl	%ecx, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
	movq	-32(%rbp), %rdi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_acpi_ns_attach_object
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	jmp	LBB0_16
LBB0_14:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_16:
	movq	%rbx, %rdi
	callq	_acpi_ut_remove_reference
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_create_buffer_field,4,2     ## @ds_create_buffer_field
	.comm	_AML_CREATE_FIELD_OP,8,3        ## @AML_CREATE_FIELD_OP
	.comm	_AE_AML_NO_OPERAND,4,2          ## @AE_AML_NO_OPERAND
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_PARSE_EXECUTE,4,2         ## @ACPI_PARSE_EXECUTE
	.comm	_AE_AML_INTERNAL,4,2            ## @AE_AML_INTERNAL
	.comm	_ACPI_NS_NO_UPSEARCH,4,2        ## @ACPI_NS_NO_UPSEARCH
	.comm	_ACPI_NS_DONT_OPEN_SCOPE,4,2    ## @ACPI_NS_DONT_OPEN_SCOPE
	.comm	_ACPI_NS_ERROR_IF_FOUND,4,2     ## @ACPI_NS_ERROR_IF_FOUND
	.comm	_ACPI_PARSE_MODULE_LEVEL,4,2    ## @ACPI_PARSE_MODULE_LEVEL
	.comm	_ACPI_NS_TEMPORARY,4,2          ## @ACPI_NS_TEMPORARY
	.comm	_ACPI_TYPE_ANY,4,2              ## @ACPI_TYPE_ANY
	.comm	_ACPI_IMODE_LOAD_PASS1,4,2      ## @ACPI_IMODE_LOAD_PASS1
	.comm	_ACPI_TYPE_BUFFER_FIELD,4,2     ## @ACPI_TYPE_BUFFER_FIELD
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_create_buffer_field    ; -- Begin function acpi_ds_create_buffer_field
	.p2align	2
_acpi_ds_create_buffer_field:           ; @acpi_ds_create_buffer_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ds_create_buffer_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_create_buffer_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _AML_CREATE_FIELD_OP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AML_CREATE_FIELD_OP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #2
	cinc	w1, w8, eq
	mov	x0, x19
	bl	_acpi_ps_get_arg
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
LBB0_2:
	str	x8, [sp, #8]
	b	LBB0_11
LBB0_3:
Lloh6:
	adrp	x8, _AE_AML_NO_OPERAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_AML_NO_OPERAND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
LBB0_4:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _ACPI_PARSE_EXECUTE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACPI_PARSE_EXECUTE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _AE_AML_INTERNAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_AML_INTERNAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_6:
Lloh15:
	adrp	x8, _ACPI_NS_NO_UPSEARCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_NS_NO_UPSEARCH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ACPI_NS_DONT_OPEN_SCOPE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ACPI_NS_DONT_OPEN_SCOPE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _ACPI_NS_ERROR_IF_FOUND@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ACPI_NS_ERROR_IF_FOUND@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _ACPI_PARSE_MODULE_LEVEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ACPI_PARSE_MODULE_LEVEL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _ACPI_NS_TEMPORARY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ACPI_NS_TEMPORARY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w4, w8, w4
LBB0_9:
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #16]
Lloh30:
	adrp	x8, _ACPI_TYPE_ANY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ACPI_TYPE_ANY@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _ACPI_IMODE_LOAD_PASS1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ACPI_IMODE_LOAD_PASS1@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	add	x6, sp, #8
	mov	x5, x20
	bl	_acpi_ns_lookup
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x21, #16]
	mov	x1, x20
	bl	_ACPI_ERROR_NAMESPACE
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_11:
	ldr	x0, [sp, #8]
	str	x0, [x19, #8]
	bl	_acpi_ns_get_attached_object
	cbz	x0, LBB0_13
; %bb.12:
Lloh36:
	adrp	x8, _AE_OK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_13:
Lloh39:
	adrp	x21, _ACPI_TYPE_BUFFER_FIELD@GOTPAGE
Lloh40:
	ldr	x21, [x21, _ACPI_TYPE_BUFFER_FIELD@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_acpi_ut_create_internal_object
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x20]
	ldr	w9, [x19, #4]
	str	w9, [x8, #4]
	ldr	w9, [x19]
	str	w9, [x8]
	ldr	x8, [sp, #8]
	str	x8, [x20]
	ldr	x0, [sp, #8]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_acpi_ns_attach_object
	mov	x19, x0
	bl	_ACPI_FAILURE
	b	LBB0_16
LBB0_15:
Lloh41:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh43:
	ldr	w19, [x8]
LBB0_16:
	mov	x0, x20
	bl	_acpi_ut_remove_reference
	mov	x0, x19
	bl	_return_ACPI_STATUS
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_create_buffer_field,4,2     ; @ds_create_buffer_field
	.comm	_AML_CREATE_FIELD_OP,8,3        ; @AML_CREATE_FIELD_OP
	.comm	_AE_AML_NO_OPERAND,4,2          ; @AE_AML_NO_OPERAND
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_PARSE_EXECUTE,4,2         ; @ACPI_PARSE_EXECUTE
	.comm	_AE_AML_INTERNAL,4,2            ; @AE_AML_INTERNAL
	.comm	_ACPI_NS_NO_UPSEARCH,4,2        ; @ACPI_NS_NO_UPSEARCH
	.comm	_ACPI_NS_DONT_OPEN_SCOPE,4,2    ; @ACPI_NS_DONT_OPEN_SCOPE
	.comm	_ACPI_NS_ERROR_IF_FOUND,4,2     ; @ACPI_NS_ERROR_IF_FOUND
	.comm	_ACPI_PARSE_MODULE_LEVEL,4,2    ; @ACPI_PARSE_MODULE_LEVEL
	.comm	_ACPI_NS_TEMPORARY,4,2          ; @ACPI_NS_TEMPORARY
	.comm	_ACPI_TYPE_ANY,4,2              ; @ACPI_TYPE_ANY
	.comm	_ACPI_IMODE_LOAD_PASS1,4,2      ; @ACPI_IMODE_LOAD_PASS1
	.comm	_ACPI_TYPE_BUFFER_FIELD,4,2     ; @ACPI_TYPE_BUFFER_FIELD
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
.subsections_via_symbols
