	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_insert_into_field      ## -- Begin function acpi_ex_insert_into_field
	.p2align	4, 0x90
_acpi_ex_insert_into_field:             ## @acpi_ex_insert_into_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movb	$0, -41(%rbp)
	movq	_ex_insert_into_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%r14), %rdi
	callq	_ACPI_ROUND_BITS_UP_TO_BYTES
	cmpq	%r12, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ACPI_MEMCPY
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
LBB0_5:
	movq	8(%r14), %rdi
	movq	_ACPI_INTEGER_BIT_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.6:
	movq	_ACPI_INTEGER_MAX@GOTPCREL(%rip), %rax
	movb	(%rax), %r12b
	jmp	LBB0_8
LBB0_7:
	callq	_ACPI_MASK_BITS_ABOVE
	movl	%eax, %r12d
LBB0_8:
	movq	16(%r14), %rdi
	callq	_ACPI_MASK_BITS_BELOW
	andb	%r12b, %al
	movb	%al, -64(%rbp)                  ## 1-byte Spill
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_ACPI_ROUND_UP_TO
	movq	%rax, %rbx
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	addq	(%r14), %rdi
	callq	_ACPI_ROUND_UP_TO
	movq	%rax, %r13
	movq	24(%r14), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ACPI_MIN
	leaq	-41(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ACPI_MEMCPY
	movq	%r15, %rdx
	movzbl	-41(%rbp), %r15d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	%eax, %ecx
	shll	%cl, %r15d
	cmpq	$2, %r13
	jl	LBB0_9
## %bb.10:
	movq	%r13, %rcx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movb	%r12b, -42(%rbp)                ## 1-byte Spill
	movl	$1, %r13d
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movb	-64(%rbp), %bl                  ## 1-byte Reload
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	andb	%bl, %r15b
	movsbl	%r15b, %edx
	movsbl	%bl, %esi
	movq	%r12, %rdi
	movq	%r8, %rcx
	movq	%r8, %rbx
	callq	_acpi_ex_write_with_update_rule
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rsi
	movq	16(%r12), %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	movsbl	-41(%rbp), %r15d
	sarl	%cl, %r15d
	movq	24(%r12), %rdi
	addq	%rdi, %rbx
	movq	_ACPI_INTEGER_BIT_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$0, %ecx
	cmovgel	%ecx, %r15d
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	movq	%rbx, %r8
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%rdi, %r14
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	subq	%r14, %rsi
	movq	%r8, %rbx
	callq	_ACPI_MIN
	leaq	-41(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_ACPI_MEMCPY
	movq	%rbx, %r8
	movsbl	-41(%rbp), %edx
	movq	16(%r12), %rax
	movl	%eax, %ecx
	shll	%cl, %edx
	movzbl	%r15b, %r15d
	orl	%edx, %r15d
	incq	%r13
	movzbl	-42(%rbp), %ebx                 ## 1-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r13, %rcx
	jne	LBB0_11
	jmp	LBB0_16
LBB0_9:
	xorl	%r8d, %r8d
	movb	-64(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, -42(%rbp)                  ## 1-byte Spill
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rsi
	jmp	LBB0_17
LBB0_12:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_25
	jmp	LBB0_26
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_17:
	addq	(%r12), %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_18
## %bb.19:
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	LBB0_21
LBB0_22:
	movq	%rdx, %rdi
	movq	%r8, %rbx
	callq	_ACPI_MASK_BITS_ABOVE
	movq	%rbx, %r8
	movb	-42(%rbp), %cl                  ## 1-byte Reload
	andb	%al, %cl
	jmp	LBB0_23
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_22
LBB0_21:
	movb	-42(%rbp), %cl                  ## 1-byte Reload
LBB0_23:
	andb	%cl, %r15b
	movsbl	%r15b, %edx
	movsbl	%cl, %esi
	movq	%r12, %rdi
	movq	%r8, %rcx
	callq	_acpi_ex_write_with_update_rule
	movl	%eax, %r15d
	testq	%r14, %r14
	je	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	callq	_ACPI_FREE
LBB0_26:
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_insert_into_field,4,2       ## @ex_insert_into_field
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_ACPI_INTEGER_BIT_SIZE,8,3      ## @ACPI_INTEGER_BIT_SIZE
	.comm	_ACPI_INTEGER_MAX,1,0           ## @ACPI_INTEGER_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_insert_into_field      ; -- Begin function acpi_ex_insert_into_field
	.p2align	2
_acpi_ex_insert_into_field:             ; @acpi_ex_insert_into_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	strb	wzr, [sp, #15]
Lloh0:
	adrp	x8, _ex_insert_into_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_insert_into_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x0, [x19]
	bl	_ACPI_ROUND_BITS_UP_TO_BYTES
	cmp	x0, x21
	b.le	LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x27, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_3:
	mov	x0, x27
	mov	x1, x24
	mov	x2, x21
	bl	_ACPI_MEMCPY
	mov	x20, x27
	b	LBB0_5
LBB0_4:
	mov	x20, #0
	mov	x22, x21
	mov	x27, x24
LBB0_5:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _ACPI_INTEGER_BIT_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_INTEGER_BIT_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _ACPI_INTEGER_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_INTEGER_MAX@GOTPAGEOFF]
	ldrb	w23, [x8]
	b	LBB0_8
LBB0_7:
	bl	_ACPI_MASK_BITS_ABOVE
	mov	x23, x0
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_ACPI_MASK_BITS_BELOW
	and	w21, w0, w23
	ldp	x0, x1, [x19]
	bl	_ACPI_ROUND_UP_TO
	mov	x25, x0
	ldp	x1, x8, [x19, #8]
	ldr	x9, [x19]
	add	x0, x8, x9
	bl	_ACPI_ROUND_UP_TO
	mov	x26, x0
	ldr	x0, [x19, #24]
	mov	x1, x22
	bl	_ACPI_MIN
	mov	x2, x0
	add	x0, sp, #15
	mov	x1, x27
	bl	_ACPI_MEMCPY
	ldrb	w9, [sp, #15]
	ldr	x8, [x19, #16]
	lsl	w28, w9, w8
	cmp	x26, #2
	b.lt	LBB0_14
; %bb.9:
	str	w23, [sp, #8]                   ; 4-byte Folded Spill
	mov	x23, x22
	mov	x22, x27
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	x20, #0
	mov	x24, #0
	sub	x27, x25, #1
	sub	x26, x26, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w21, w28
	sxtb	w2, w8
	sxtb	w1, w21
	mov	x0, x19
	mov	x3, x24
	bl	_acpi_ex_write_with_update_rule
	mov	x25, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x0, [x19, #16]
	add	x24, x0, x24
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _ACPI_INTEGER_BIT_SIZE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ACPI_INTEGER_BIT_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldrsb	w11, [sp, #15]
	sub	x12, x9, x8
	cmp	x12, x10
	asr	w10, w11, w12
	csel	w28, w10, wzr, lt
	cbz	x27, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x0, x20
	add	x25, x22, x20
	sub	x1, x23, x20
	bl	_ACPI_MIN
	mov	x2, x0
	add	x0, sp, #15
	mov	x1, x25
	bl	_ACPI_MEMCPY
	ldrsb	w9, [sp, #15]
	ldr	x8, [x19, #16]
	lsl	w9, w9, w8
	and	w10, w28, #0xff
	orr	w28, w9, w10
	sub	x27, x27, #1
	ldr	w21, [sp, #8]                   ; 4-byte Folded Reload
	subs	x26, x26, #1
	b.ne	LBB0_10
; %bb.13:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	ldr	w21, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_15
LBB0_14:
	mov	x24, #0
LBB0_15:
	ldr	x9, [x19, #8]
	b	LBB0_18
LBB0_16:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cbnz	x20, LBB0_21
	b	LBB0_22
LBB0_17:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	ldr	w21, [sp, #8]                   ; 4-byte Folded Reload
LBB0_18:
	ldr	x10, [x19]
	add	x8, x8, x10
	sdiv	x10, x8, x9
	msub	x0, x10, x9, x8
	cbz	x0, LBB0_20
; %bb.19:
	bl	_ACPI_MASK_BITS_ABOVE
	and	w21, w0, w21
LBB0_20:
	and	w8, w21, w28
	sxtb	w2, w8
	sxtb	w1, w21
	mov	x0, x19
	mov	x3, x24
	bl	_acpi_ex_write_with_update_rule
	mov	x25, x0
	cbz	x20, LBB0_22
LBB0_21:
	mov	x0, x20
	bl	_ACPI_FREE
LBB0_22:
	mov	x0, x25
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_insert_into_field,4,2       ; @ex_insert_into_field
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_ACPI_INTEGER_BIT_SIZE,8,3      ; @ACPI_INTEGER_BIT_SIZE
	.comm	_ACPI_INTEGER_MAX,1,0           ; @ACPI_INTEGER_MAX
.subsections_via_symbols
