	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_write_data_to_field    ## -- Begin function acpi_ex_write_data_to_field
	.p2align	4, 0x90
_acpi_ex_write_data_to_field:           ## @acpi_ex_write_data_to_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_ex_write_data_to_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	jne	LBB0_3
LBB0_2:
	movq	_AE_AML_NO_OPERAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_3:
	movl	(%r12), %eax
	movq	_ACPI_TYPE_BUFFER_FIELD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.4:
	movq	_AOPOBJ_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_acpi_ds_get_buffer_field_arguments
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
                                        ## implicit-def: $r15
                                        ## implicit-def: $r13
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_7:
	movq	_ACPI_TYPE_LOCAL_REGION_FIELD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.8:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_ACPI_ADR_SPACE_SMBUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.9:
	movq	_ACPI_ADR_SPACE_IPMI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
LBB0_5:
                                        ## implicit-def: $r15
                                        ## implicit-def: $r13
	jmp	LBB0_21
LBB0_10:
	cmpl	$130, (%r14)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_acpi_ut_get_object_type_name
	movl	%eax, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
LBB0_12:
	movq	_ACPI_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	cmpq	%rcx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.14:
	movl	(%r12), %eax
	shll	$16, %eax
	orl	%eax, %r13d
	movq	_ACPI_SMBUS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_ACPI_IPMI_BUFFER_SIZE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %r15
	movq	(%r14), %rdi
	cmpq	%r15, %rdi
	jge	LBB0_17
## %bb.16:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_BUFFER_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_17:
	movslq	%r13d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_acpi_ut_create_buffer_object
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_19:
	movq	8(%rbx), %r13
	movq	8(%r14), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_ACPI_MEMCPY
	movl	(%r12), %edi
	callq	_acpi_ex_acquire_global_lock
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_acpi_ex_access_region
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_acpi_ex_release_global_lock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_20:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_21:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_25
## %bb.22:
	cmpl	$130, %eax
	je	LBB0_25
## %bb.23:
	cmpl	$129, %eax
	jne	LBB0_26
## %bb.24:
	movl	$4, %r15d
	movl	$129, %edi
	movq	%r14, %r13
	jmp	LBB0_27
LBB0_25:
	movq	(%r14), %rdi
	movq	8(%r14), %r13
	movq	%rdi, %r15
	jmp	LBB0_27
LBB0_26:
	movq	_AE_AML_OPERAND_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movl	(%r14), %edi
LBB0_27:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_acpi_ut_get_type_name
	movl	%r15d, %edi
	callq	_ACPI_DEBUG_PRINT
	movl	(%r12), %edi
	callq	_acpi_ut_get_type_name
	movl	4(%r12), %edi
	callq	_ACPI_DEBUG_PRINT
	movl	(%r12), %edi
	callq	_acpi_ex_acquire_global_lock
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_acpi_ex_insert_into_field
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_acpi_ex_release_global_lock
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_write_data_to_field,4,2     ## @ex_write_data_to_field
	.comm	_AE_AML_NO_OPERAND,4,2          ## @AE_AML_NO_OPERAND
	.comm	_ACPI_TYPE_BUFFER_FIELD,4,2     ## @ACPI_TYPE_BUFFER_FIELD
	.comm	_AOPOBJ_DATA_VALID,4,2          ## @AOPOBJ_DATA_VALID
	.comm	_ACPI_TYPE_LOCAL_REGION_FIELD,4,2 ## @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	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_AML_OPERAND_TYPE,4,2        ## @AE_AML_OPERAND_TYPE
	.comm	_ACPI_SMBUS_BUFFER_SIZE,8,3     ## @ACPI_SMBUS_BUFFER_SIZE
	.comm	_ACPI_WRITE,4,2                 ## @ACPI_WRITE
	.comm	_ACPI_IPMI_BUFFER_SIZE,8,3      ## @ACPI_IPMI_BUFFER_SIZE
	.comm	_AE_AML_BUFFER_LIMIT,4,2        ## @AE_AML_BUFFER_LIMIT
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.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_write_data_to_field    ; -- Begin function acpi_ex_write_data_to_field
	.p2align	2
_acpi_ex_write_data_to_field:           ; @acpi_ex_write_data_to_field
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ex_write_data_to_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_write_data_to_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbz	x20, LBB0_2
; %bb.1:
	cbnz	x19, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _AE_AML_NO_OPERAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_AML_NO_OPERAND@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _ACPI_TYPE_BUFFER_FIELD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_BUFFER_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
Lloh9:
	adrp	x9, _AOPOBJ_DATA_VALID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AOPOBJ_DATA_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_acpi_ds_get_buffer_field_arguments
	mov	x24, x0
	bl	_ACPI_FAILURE
                                        ; implicit-def: $x22
                                        ; implicit-def: $x23
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_6:
Lloh12:
	adrp	x9, _ACPI_TYPE_LOCAL_REGION_FIELD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ACPI_TYPE_LOCAL_REGION_FIELD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh15:
	adrp	x22, _ACPI_ADR_SPACE_SMBUS@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ACPI_ADR_SPACE_SMBUS@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh17:
	adrp	x10, _ACPI_ADR_SPACE_IPMI@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ACPI_ADR_SPACE_IPMI@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.8:
	ldr	w10, [x20]
	cmp	w10, #130
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_acpi_ut_get_object_type_name
	bl	_ACPI_ERROR
Lloh20:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x22]
LBB0_10:
Lloh23:
	adrp	x10, _ACPI_WRITE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ACPI_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x19]
	orr	w10, w10, w8, lsl #16
Lloh26:
	adrp	x8, _ACPI_SMBUS_BUFFER_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACPI_SMBUS_BUFFER_SIZE@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
                                        ; implicit-def: $x22
                                        ; implicit-def: $x23
	b	LBB0_20
LBB0_13:
Lloh28:
	adrp	x8, _ACPI_IPMI_BUFFER_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACPI_IPMI_BUFFER_SIZE@GOTPAGEOFF]
LBB0_14:
	sxtw	x24, w10
	ldr	x22, [x8]
	ldr	x0, [x20]
	cmp	x0, x22
	b.ge	LBB0_16
; %bb.15:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh30:
	adrp	x8, _AE_AML_BUFFER_LIMIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AE_AML_BUFFER_LIMIT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_16:
	mov	x0, x22
	bl	_acpi_ut_create_buffer_object
	mov	x25, x0
	cbnz	x0, LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_18:
	ldr	x23, [x25, #8]
	ldr	x1, [x20, #8]
	mov	x0, x23
	mov	x2, x22
	bl	_ACPI_MEMCPY
	ldr	w0, [x19]
	bl	_acpi_ex_acquire_global_lock
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_acpi_ex_access_region
	mov	x24, x0
	ldr	w0, [x19]
	bl	_acpi_ex_release_global_lock
	str	x25, [x21]
LBB0_19:
	mov	x0, x24
	bl	_return_ACPI_STATUS
LBB0_20:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.21:
	cmp	w8, #130
	b.eq	LBB0_25
; %bb.22:
	cmp	w8, #129
	b.ne	LBB0_26
; %bb.23:
	mov	w0, #129
	mov	w22, #4
	mov	x23, x20
	b	LBB0_27
LBB0_24:
	ldp	x22, x23, [x20]
	mov	x0, x22
	b	LBB0_27
LBB0_25:
	ldp	x0, x23, [x20]
	mov	x22, x0
	b	LBB0_27
LBB0_26:
Lloh36:
	adrp	x8, _AE_AML_OPERAND_TYPE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AE_AML_OPERAND_TYPE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	w0, [x20]
LBB0_27:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_acpi_ut_get_type_name
	mov	x0, x22
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x19]
	bl	_acpi_ut_get_type_name
	ldr	w0, [x19, #4]
	bl	_ACPI_DEBUG_PRINT
	ldr	w0, [x19]
	bl	_acpi_ex_acquire_global_lock
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_acpi_ex_insert_into_field
	mov	x20, x0
	ldr	w0, [x19]
	bl	_acpi_ex_release_global_lock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_write_data_to_field,4,2     ; @ex_write_data_to_field
	.comm	_AE_AML_NO_OPERAND,4,2          ; @AE_AML_NO_OPERAND
	.comm	_ACPI_TYPE_BUFFER_FIELD,4,2     ; @ACPI_TYPE_BUFFER_FIELD
	.comm	_AOPOBJ_DATA_VALID,4,2          ; @AOPOBJ_DATA_VALID
	.comm	_ACPI_TYPE_LOCAL_REGION_FIELD,4,2 ; @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	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_AML_OPERAND_TYPE,4,2        ; @AE_AML_OPERAND_TYPE
	.comm	_ACPI_SMBUS_BUFFER_SIZE,8,3     ; @ACPI_SMBUS_BUFFER_SIZE
	.comm	_ACPI_WRITE,4,2                 ; @ACPI_WRITE
	.comm	_ACPI_IPMI_BUFFER_SIZE,8,3      ; @ACPI_IPMI_BUFFER_SIZE
	.comm	_AE_AML_BUFFER_LIMIT,4,2        ; @AE_AML_BUFFER_LIMIT
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_DB_BFIELD,4,2             ; @ACPI_DB_BFIELD
.subsections_via_symbols
