	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nexus_attach
_nexus_attach:                          ## @nexus_attach
	.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
	movl	%edi, %ebx
	movq	_mem_rman@GOTPCREL(%rip), %rdi
	movq	$0, 24(%rdi)
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, 16(%rdi)
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 8(%rdi)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	callq	_rman_init
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	movq	_mem_rman@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_rman_manage_region
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_3:
	movq	_irq_rman@GOTPCREL(%rip), %rdi
	movq	$0, 24(%rdi)
	movl	$-1, 16(%rdi)
	movq	(%r14), %rax
	movq	%rax, 8(%rdi)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rdi)
	callq	_rman_init
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_irq_rman@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_rman_manage_region
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_panic
LBB0_6:
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %edi
	movl	$8, %esi
	xorl	%ecx, %ecx
	callq	_nexus_add_child
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %edi
	movl	$9, %esi
	xorl	%ecx, %ecx
	callq	_nexus_add_child
	leaq	L_.str.6(%rip), %rdx
	movl	%ebx, %edi
	movl	$10, %esi
	xorl	%ecx, %ecx
	callq	_nexus_add_child
	movl	%ebx, %edi
	callq	_bus_generic_probe
	movl	%ebx, %edi
	callq	_bus_generic_attach
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem_rman,32,3                  ## @mem_rman
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_RMAN_ARRAY,8,3                 ## @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O memory addresses"

L_.str.1:                               ## @.str.1
	.asciz	"nexus_attach mem_rman"

	.comm	_irq_rman,32,3                  ## @irq_rman
L_.str.2:                               ## @.str.2
	.asciz	"Interrupts"

L_.str.3:                               ## @.str.3
	.asciz	"nexus_attach irq_rman"

L_.str.4:                               ## @.str.4
	.asciz	"timer"

L_.str.5:                               ## @.str.5
	.asciz	"rcons"

L_.str.6:                               ## @.str.6
	.asciz	"ofwbus"

	.no_dead_strip	_nexus_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nexus_attach
_nexus_attach:                          ; @nexus_attach
	.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, x0
Lloh0:
	adrp	x0, _mem_rman@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mem_rman@GOTPAGEOFF]
	str	xzr, [x0, #24]
Lloh2:
	adrp	x21, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x20, _RMAN_ARRAY@GOTPAGE
Lloh5:
	ldr	x20, [x20, _RMAN_ARRAY@GOTPAGEOFF]
	str	w8, [x0, #16]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [x0]
	bl	_rman_init
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh8:
	adrp	x0, _mem_rman@GOTPAGE
Lloh9:
	ldr	x0, [x0, _mem_rman@GOTPAGEOFF]
	mov	w1, #0
	bl	_rman_manage_region
	cbz	x0, LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_3:
Lloh12:
	adrp	x0, _irq_rman@GOTPAGE
Lloh13:
	ldr	x0, [x0, _irq_rman@GOTPAGEOFF]
	str	xzr, [x0, #24]
	mov	w8, #-1
	str	w8, [x0, #16]
	ldr	x8, [x20]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x9, x8, [x0]
	bl	_rman_init
	cbnz	x0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x0, _irq_rman@GOTPAGE
Lloh17:
	ldr	x0, [x0, _irq_rman@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #-1
	bl	_rman_manage_region
	cbz	x0, LBB0_6
LBB0_5:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_panic
LBB0_6:
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #8
	mov	w3, #0
	bl	_nexus_add_child
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #9
	mov	w3, #0
	bl	_nexus_add_child
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #10
	mov	w3, #0
	bl	_nexus_add_child
	mov	x0, x19
	bl	_bus_generic_probe
	mov	x0, x19
	bl	_bus_generic_attach
	mov	w0, #0
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_mem_rman,32,3                  ; @mem_rman
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_RMAN_ARRAY,8,3                 ; @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O memory addresses"

l_.str.1:                               ; @.str.1
	.asciz	"nexus_attach mem_rman"

	.comm	_irq_rman,32,3                  ; @irq_rman
l_.str.2:                               ; @.str.2
	.asciz	"Interrupts"

l_.str.3:                               ; @.str.3
	.asciz	"nexus_attach irq_rman"

l_.str.4:                               ; @.str.4
	.asciz	"timer"

l_.str.5:                               ; @.str.5
	.asciz	"rcons"

l_.str.6:                               ; @.str.6
	.asciz	"ofwbus"

	.no_dead_strip	_nexus_attach
.subsections_via_symbols
