	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_remove_null_elements   ## -- Begin function acpi_ns_remove_null_elements
	.p2align	4, 0x90
_acpi_ns_remove_null_elements:          ## @acpi_ns_remove_null_elements
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	_ns_remove_null_elements@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_18
## %bb.1:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jle	LBB0_18
## %bb.2:
	movq	8(%r14), %rax
	cmpq	$1, %rdi
	jne	LBB0_4
## %bb.3:
	movq	%rdi, %r15
	movq	%rax, %rbx
LBB0_12:
	testb	$1, %dil
	je	LBB0_16
## %bb.13:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, (%rbx)
	addq	$8, %rbx
LBB0_16:
	cmpq	%r15, %rdi
	jle	LBB0_18
LBB0_17:
	subl	%r15d, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movq	$0, (%rbx)
	movq	%r15, (%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %rcx
	andq	$-2, %rcx
	movq	%rdi, %r15
	movq	%rax, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	decq	%r15
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rax
	addq	$-2, %rcx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, (%rbx)
	addq	$8, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%r15
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, (%rbx)
	addq	$8, %rbx
	jmp	LBB0_11
LBB0_15:
	decq	%r15
	cmpq	%r15, %rdi
	jg	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ns_remove_null_elements,4,2    ## @ns_remove_null_elements
	.comm	_ACPI_DB_REPAIR,4,2             ## @ACPI_DB_REPAIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_remove_null_elements   ; -- Begin function acpi_ns_remove_null_elements
	.p2align	2
_acpi_ns_remove_null_elements:          ; @acpi_ns_remove_null_elements
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _ns_remove_null_elements@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ns_remove_null_elements@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	sub	w8, w20, #128
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #8]
	mov	x20, x8
	mov	x21, x10
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x11, [x21], #8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbnz	x11, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x20, x20, #1
	b	LBB0_4
LBB0_7:
	cmp	x8, x20
	b.le	LBB0_9
; %bb.8:
	sub	w0, w8, w20
	bl	_ACPI_DEBUG_PRINT
	str	xzr, [x21]
	str	x20, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ns_remove_null_elements,4,2    ; @ns_remove_null_elements
	.comm	_ACPI_DB_REPAIR,4,2             ; @ACPI_DB_REPAIR
.subsections_via_symbols
