	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_resource_length    ## -- Begin function acpi_ut_get_resource_length
	.p2align	4, 0x90
_acpi_ut_get_resource_length:           ## @acpi_ut_get_resource_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	movq	%rbx, %rdi
	callq	_ACPI_GET8
	movq	_ACPI_RESOURCE_NAME_LARGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_ACPI_ADD_PTR
	leaq	-16(%rbp), %rdi
	movl	%eax, %esi
	callq	_ACPI_MOVE_16_TO_16
	movq	-16(%rbp), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ACPI_GET8
	movq	_ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cltq
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_RESOURCE_NAME_LARGE,4,2   ## @ACPI_RESOURCE_NAME_LARGE
	.comm	_u8,4,2                         ## @u8
	.comm	_ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK,4,2 ## @ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_resource_length    ; -- Begin function acpi_ut_get_resource_length
	.p2align	2
_acpi_ut_get_resource_length:           ; @acpi_ut_get_resource_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ACPI_FUNCTION_ENTRY
	mov	x0, x19
	bl	_ACPI_GET8
Lloh0:
	adrp	x8, _ACPI_RESOURCE_NAME_LARGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_RESOURCE_NAME_LARGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _u8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #1
	bl	_ACPI_ADD_PTR
	mov	x1, x0
	add	x0, sp, #8
	bl	_ACPI_MOVE_16_TO_16
	ldr	x0, [sp, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ACPI_GET8
Lloh6:
	adrp	x8, _ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	sxtw	x0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_RESOURCE_NAME_LARGE,4,2   ; @ACPI_RESOURCE_NAME_LARGE
	.comm	_u8,4,2                         ; @u8
	.comm	_ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK,4,2 ; @ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK
.subsections_via_symbols
