	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_mem_rman@GOTPCREL(%rip), %rdi
	movq	$0, 16(%rdi)
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, 12(%rdi)
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	callq	_rman_init
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %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:
	movl	%ebx, %edi
	callq	_bus_generic_probe
	movl	%ebx, %edi
	callq	_bus_generic_attach
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem_rman,24,3                  ## @mem_rman
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_RMAN_ARRAY,4,2                 ## @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O memory addresses"

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

	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _mem_rman@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mem_rman@GOTPAGEOFF]
	str	xzr, [x0, #16]
Lloh2:
	adrp	x20, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _RMAN_ARRAY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RMAN_ARRAY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	bl	_rman_init
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x20]
Lloh9:
	adrp	x0, _mem_rman@GOTPAGE
Lloh10:
	ldr	x0, [x0, _mem_rman@GOTPAGEOFF]
	mov	w1, #0
	bl	_rman_manage_region
	cbz	x0, LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_3:
	mov	x0, x19
	bl	_bus_generic_probe
	mov	x0, x19
	bl	_bus_generic_attach
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mem_rman,24,3                  ; @mem_rman
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_RMAN_ARRAY,4,2                 ; @RMAN_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O memory addresses"

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

	.no_dead_strip	_nexus_attach
.subsections_via_symbols
