	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_extract_from_field     ## -- Begin function acpi_ex_extract_from_field
	.p2align	4, 0x90
_acpi_ex_extract_from_field:            ## @acpi_ex_extract_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
	subq	$40, %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, %rbx
	movq	_ex_extract_from_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%rbx), %rdi
	callq	_ACPI_ROUND_BITS_UP_TO_BYTES
	cmpq	%r12, %rax
	jle	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_ACPI_ERROR
	movq	_AE_BUFFER_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_ACPI_MEMSET
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_ACPI_ROUND_UP_TO
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rdi
	addq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_ACPI_ROUND_UP_TO
	movq	%rax, %r13
	movq	_ACPI_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_acpi_ex_field_datum_io
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movl	-48(%rbp), %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movb	16(%rdi), %cl
	sarl	%cl, %eax
	movl	%eax, -44(%rbp)
	cmpq	$2, %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_5
## %bb.6:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movl	$1, %r12d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movq	%r14, %rcx
	movq	%rax, %r14
	addq	%rcx, %r14
	movq	_ACPI_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_acpi_ex_field_datum_io
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movslq	8(%rdi), %rcx
	subq	16(%rdi), %rcx
	movq	_ACPI_INTEGER_BIT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, -44(%rbp)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	movq	%rbx, %r15
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r15,%r13), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%r13, %rsi
	callq	_ACPI_MIN
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	movl	%eax, %edx
	callq	_ACPI_MEMCPY
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rax
	movl	-48(%rbp), %edx
	movzbl	16(%rdi), %ecx
	sarl	%cl, %edx
	addq	%rax, %r13
	movl	%edx, -44(%rbp)
	incq	%r12
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
	jmp	LBB0_13
LBB0_5:
	xorl	%r13d, %r13d
LBB0_13:
	movq	(%rdi), %rax
	movslq	8(%rdi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	cqto
	idivq	%rcx
	jmp	LBB0_16
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_16:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movq	%rdx, %rdi
	callq	_ACPI_MASK_BITS_ABOVE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	andl	%eax, -44(%rbp)
LBB0_18:
	addq	%r13, %r15
	movq	24(%rdi), %rdi
	subq	%r13, %rbx
	movq	%rbx, %rsi
	callq	_ACPI_MIN
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ACPI_MEMCPY
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_extract_from_field,4,2      ## @ex_extract_from_field
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_BUFFER_OVERFLOW,4,2         ## @AE_BUFFER_OVERFLOW
	.comm	_ACPI_READ,4,2                  ## @ACPI_READ
	.comm	_ACPI_INTEGER_BIT_SIZE,4,2      ## @ACPI_INTEGER_BIT_SIZE
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_extract_from_field     ; -- Begin function acpi_ex_extract_from_field
	.p2align	2
_acpi_ex_extract_from_field:            ; @acpi_ex_extract_from_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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ex_extract_from_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_extract_from_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x0, [x20]
	bl	_ACPI_ROUND_BITS_UP_TO_BYTES
	cmp	x0, x19
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ACPI_ERROR
Lloh3:
	adrp	x8, _AE_BUFFER_OVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BUFFER_OVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	bl	_ACPI_MEMSET
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	bl	_ACPI_ROUND_UP_TO
	mov	x23, x0
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x0, x9, x8
	ldr	w1, [x20, #8]
	bl	_ACPI_ROUND_UP_TO
	mov	x24, x0
Lloh6:
	adrp	x25, _ACPI_READ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ACPI_READ@GOTPAGEOFF]
	ldr	w3, [x25]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, #0
	bl	_acpi_ex_field_datum_io
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #16]
	asr	w8, w8, w9
	str	w8, [sp, #8]
	cmp	x24, #2
	b.lt	LBB0_12
; %bb.5:
	mov	x22, #0
	mov	x26, #0
	ldr	x8, [x20, #24]
	sub	x27, x23, #1
	sub	x24, x24, #1
Lloh8:
	adrp	x28, _ACPI_INTEGER_BIT_SIZE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ACPI_INTEGER_BIT_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x8, x22
	ldr	w3, [x25]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_acpi_ex_field_datum_io
	mov	x23, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_return_ACPI_STATUS
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x20, #8]
	ldr	x9, [x20, #16]
	ldrsw	x10, [x28]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #12]
	lsl	w8, w9, w8
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x27, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x21, x26
	ldr	x0, [x20, #24]
	sub	x1, x19, x26
	bl	_ACPI_MIN
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x23
	bl	_ACPI_MEMCPY
	ldr	x8, [x20, #24]
	add	x26, x8, x26
	ldr	w9, [sp, #12]
	ldr	w10, [x20, #16]
	asr	w9, w9, w10
	str	w9, [sp, #8]
	sub	x27, x27, #1
	subs	x24, x24, #1
	b.ne	LBB0_6
	b	LBB0_13
LBB0_12:
	mov	x26, #0
LBB0_13:
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	sdiv	x10, x8, x9
	msub	x0, x10, x9, x8
	cbz	x0, LBB0_15
; %bb.14:
	bl	_ACPI_MASK_BITS_ABOVE
	ldr	w8, [sp, #8]
	and	w8, w8, w0
	str	w8, [sp, #8]
LBB0_15:
	add	x21, x21, x26
	ldr	x0, [x20, #24]
	sub	x1, x19, x26
	bl	_ACPI_MIN
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_ACPI_MEMCPY
Lloh10:
	adrp	x8, _AE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_extract_from_field,4,2      ; @ex_extract_from_field
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_BUFFER_OVERFLOW,4,2         ; @AE_BUFFER_OVERFLOW
	.comm	_ACPI_READ,4,2                  ; @ACPI_READ
	.comm	_ACPI_INTEGER_BIT_SIZE,4,2      ; @ACPI_INTEGER_BIT_SIZE
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
