	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_gic_add_children
_arm_gic_add_children:                  ## @arm_gic_add_children
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %r14
	movq	_ACPI_SIG_MADT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_acpi_find_table
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_acpi_map_table
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	movslq	(%rax), %rsi
	addq	%rax, %rsi
	movq	_madt_gicv2m_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_acpi_walk_subtables
	movq	%rbx, %rdi
	callq	_acpi_unmap_table
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_device_printf
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_MADT,4,2              ## @ACPI_SIG_MADT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gic: Unable to map the MADT\n"

	.comm	_madt_gicv2m_handler,4,2        ## @madt_gicv2m_handler
	.no_dead_strip	_arm_gic_add_children
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_gic_add_children
_arm_gic_add_children:                  ; @arm_gic_add_children
	.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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x21, _ACPI_SIG_MADT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ACPI_SIG_MADT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_acpi_find_table
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x21]
	bl	_acpi_map_table
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldrsw	x8, [x0], #4
	add	x1, x21, x8
Lloh2:
	adrp	x8, _madt_gicv2m_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _madt_gicv2m_handler@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_acpi_walk_subtables
	mov	x0, x21
	bl	_acpi_unmap_table
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	mov	w0, #0
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_MADT,4,2              ; @ACPI_SIG_MADT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gic: Unable to map the MADT\n"

	.comm	_madt_gicv2m_handler,4,2        ; @madt_gicv2m_handler
	.no_dead_strip	_arm_gic_add_children
.subsections_via_symbols
