	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_read_data_from_field   ## -- Begin function acpi_ex_read_data_from_field
	.p2align	4, 0x90
_acpi_ex_read_data_from_field:          ## @acpi_ex_read_data_from_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	%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	%rdx, %r14
	movq	%rsi, %r12
	movq	_ex_read_data_from_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
LBB0_4:
	movq	(%r12), %rax
	movq	_ACPI_TYPE_BUFFER_FIELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movq	_AOPOBJ_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_acpi_ds_get_buffer_field_arguments
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_8
LBB0_12:
	movq	_ACPI_TYPE_LOCAL_REGION_FIELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.13:
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movq	_ACPI_ADR_SPACE_SMBUS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_15
## %bb.14:
	movq	_ACPI_ADR_SPACE_IPMI@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_15
LBB0_8:
	movl	4(%r12), %edi
	callq	_ACPI_ROUND_BITS_UP_TO_BYTES
	movq	_acpi_gbl_integer_byte_width@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jle	LBB0_18
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_acpi_ut_create_buffer_object
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_11:
	movq	(%r15), %r13
	jmp	LBB0_21
LBB0_18:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_create_internal_object
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_20:
	movq	(%r13), %rbx
	movq	$0, (%r15)
	movq	%r15, %r13
LBB0_21:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	4(%r12), %edi
	callq	_ACPI_DEBUG_PRINT
	movl	(%r12), %edi
	callq	_acpi_ex_acquire_global_lock
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_acpi_ex_extract_from_field
LBB0_22:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_acpi_ex_release_global_lock
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_acpi_ut_remove_reference
	jmp	LBB0_25
LBB0_1:
	movq	_AE_AML_NO_OPERAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	testq	%r14, %r14
	jne	LBB0_4
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_4
LBB0_24:
	movq	%r15, (%r14)
LBB0_25:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
LBB0_15:
	shll	$16, %eax
	xorl	%ebx, %ebx
	cmpq	%rdx, %rcx
	cmovel	%eax, %ebx
	movq	_ACPI_IPMI_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmoveq	_ACPI_SMBUS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	_ACPI_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	(%rax), %rdi
	callq	_acpi_ut_create_buffer_object
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_17:
	movl	(%r12), %edi
	callq	_acpi_ex_acquire_global_lock
	movq	_acpi_integer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_ACPI_CAST_PTR
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_acpi_ex_access_region
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_read_data_from_field,4,2    ## @ex_read_data_from_field
	.comm	_AE_AML_NO_OPERAND,4,2          ## @AE_AML_NO_OPERAND
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_BUFFER_FIELD,8,3     ## @ACPI_TYPE_BUFFER_FIELD
	.comm	_AOPOBJ_DATA_VALID,4,2          ## @AOPOBJ_DATA_VALID
	.comm	_ACPI_TYPE_LOCAL_REGION_FIELD,8,3 ## @ACPI_TYPE_LOCAL_REGION_FIELD
	.comm	_ACPI_ADR_SPACE_SMBUS,8,3       ## @ACPI_ADR_SPACE_SMBUS
	.comm	_ACPI_ADR_SPACE_IPMI,8,3        ## @ACPI_ADR_SPACE_IPMI
	.comm	_ACPI_SMBUS_BUFFER_SIZE,8,3     ## @ACPI_SMBUS_BUFFER_SIZE
	.comm	_ACPI_READ,4,2                  ## @ACPI_READ
	.comm	_ACPI_IPMI_BUFFER_SIZE,8,3      ## @ACPI_IPMI_BUFFER_SIZE
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_acpi_integer,4,2               ## @acpi_integer
	.comm	_acpi_gbl_integer_byte_width,8,3 ## @acpi_gbl_integer_byte_width
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_DB_BFIELD,4,2             ## @ACPI_DB_BFIELD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_read_data_from_field   ; -- Begin function acpi_ex_read_data_from_field
	.p2align	2
_acpi_ex_read_data_from_field:          ; @acpi_ex_read_data_from_field
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ex_read_data_from_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_read_data_from_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbz	x20, LBB0_21
; %bb.1:
	cbz	x19, LBB0_22
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _ACPI_TYPE_BUFFER_FIELD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_TYPE_BUFFER_FIELD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _AOPOBJ_DATA_VALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AOPOBJ_DATA_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_acpi_ds_get_buffer_field_arguments
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
; %bb.5:
	mov	x0, x21
	bl	_return_ACPI_STATUS
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x9, _ACPI_TYPE_LOCAL_REGION_FIELD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACPI_TYPE_LOCAL_REGION_FIELD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _ACPI_ADR_SPACE_SMBUS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ACPI_ADR_SPACE_SMBUS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _ACPI_ADR_SPACE_IPMI@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ACPI_ADR_SPACE_IPMI@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_11
; %bb.8:
Lloh18:
	adrp	x11, _ACPI_READ@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ACPI_READ@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _ACPI_SMBUS_BUFFER_SIZE@GOTPAGE
Lloh22:
	ldr	x12, [x12, _ACPI_SMBUS_BUFFER_SIZE@GOTPAGEOFF]
Lloh23:
	adrp	x13, _ACPI_IPMI_BUFFER_SIZE@GOTPAGE
Lloh24:
	ldr	x13, [x13, _ACPI_IPMI_BUFFER_SIZE@GOTPAGEOFF]
	lsl	w8, w8, #16
	cmp	x9, x10
	csel	x9, x12, x13, eq
	csel	w8, w8, wzr, eq
	orr	w22, w11, w8
	ldr	x0, [x9]
	bl	_acpi_ut_create_buffer_object
	mov	x21, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh25:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_10:
	ldr	w0, [x20]
	bl	_acpi_ex_acquire_global_lock
Lloh28:
	adrp	x8, _acpi_integer@GOTPAGE
Lloh29:
	ldr	x8, [x8, _acpi_integer@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_ACPI_CAST_PTR
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	mov	x3, x22
	bl	_acpi_ex_access_region
	b	LBB0_19
LBB0_11:
	ldr	w0, [x20, #4]
	bl	_ACPI_ROUND_BITS_UP_TO_BYTES
Lloh31:
	adrp	x23, _acpi_gbl_integer_byte_width@GOTPAGE
Lloh32:
	ldr	x23, [x23, _acpi_gbl_integer_byte_width@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.le	LBB0_15
; %bb.12:
	mov	x22, x0
	bl	_acpi_ut_create_buffer_object
	mov	x21, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_14:
	ldr	x23, [x21]
	b	LBB0_18
LBB0_15:
Lloh36:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_acpi_ut_create_internal_object
	mov	x21, x0
	cbnz	x0, LBB0_17
; %bb.16:
Lloh39:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_17:
	ldr	x22, [x23]
	str	xzr, [x21]
	mov	x23, x21
LBB0_18:
	mov	x0, x22
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x20, #4]
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x20]
	bl	_acpi_ex_acquire_global_lock
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_acpi_ex_extract_from_field
LBB0_19:
	mov	x22, x0
	ldr	w0, [x20]
	bl	_acpi_ex_release_global_lock
	mov	x0, x22
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_23
; %bb.20:
	mov	x0, x21
	bl	_acpi_ut_remove_reference
	b	LBB0_24
LBB0_21:
Lloh42:
	adrp	x8, _AE_AML_NO_OPERAND@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AE_AML_NO_OPERAND@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	cbnz	x19, LBB0_2
LBB0_22:
Lloh45:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	b	LBB0_2
LBB0_23:
	str	x21, [x19]
LBB0_24:
	mov	x0, x22
	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
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_read_data_from_field,4,2    ; @ex_read_data_from_field
	.comm	_AE_AML_NO_OPERAND,4,2          ; @AE_AML_NO_OPERAND
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_BUFFER_FIELD,8,3     ; @ACPI_TYPE_BUFFER_FIELD
	.comm	_AOPOBJ_DATA_VALID,4,2          ; @AOPOBJ_DATA_VALID
	.comm	_ACPI_TYPE_LOCAL_REGION_FIELD,8,3 ; @ACPI_TYPE_LOCAL_REGION_FIELD
	.comm	_ACPI_ADR_SPACE_SMBUS,8,3       ; @ACPI_ADR_SPACE_SMBUS
	.comm	_ACPI_ADR_SPACE_IPMI,8,3        ; @ACPI_ADR_SPACE_IPMI
	.comm	_ACPI_SMBUS_BUFFER_SIZE,8,3     ; @ACPI_SMBUS_BUFFER_SIZE
	.comm	_ACPI_READ,4,2                  ; @ACPI_READ
	.comm	_ACPI_IPMI_BUFFER_SIZE,8,3      ; @ACPI_IPMI_BUFFER_SIZE
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_acpi_integer,4,2               ; @acpi_integer
	.comm	_acpi_gbl_integer_byte_width,8,3 ; @acpi_gbl_integer_byte_width
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_DB_BFIELD,4,2             ; @ACPI_DB_BFIELD
.subsections_via_symbols
