	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unin_chip_attach
_unin_chip_attach:                      ## @unin_chip_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ofw_bus_get_node
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-119(%rbp), %rbx
	movl	$3, %ecx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	cmpl	$7, %eax
	jg	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_35
LBB0_2:
	movl	$1, -132(%rbp)
	movl	$1, -116(%rbp)
	movq	%r15, %rdi
	callq	_OF_parent
	leaq	L_.str.1(%rip), %rsi
	leaq	-116(%rbp), %rdx
	movl	$4, %ecx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_OF_getprop
	movq	%r15, %rdi
	callq	_OF_parent
	leaq	L_.str.2(%rip), %rsi
	leaq	-132(%rbp), %rdx
	movl	$4, %ecx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_OF_getprop
	movb	-119(%rbp), %al
	movb	%al, (%r13)
	xorl	%eax, %eax
	cmpl	$2, -116(%rbp)
	sete	%al
	movb	1(%rax,%rbx), %al
	movb	%al, 1(%r13)
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rbx
	addq	$16, %rbx
	movl	%eax, 24(%r13)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_rman_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movsbl	(%r13), %esi
	movsbl	1(%r13), %eax
	leal	(%rsi,%rax), %edx
	decl	%edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rman_manage_region
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	movq	_unin_chip@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r12, (%rax)
LBB0_9:
	movq	%r15, -160(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_OF_child
	testq	%rax, %rax
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	je	LBB0_25
## %bb.10:
	movq	%rax, %rbx
	movq	_M_UNIN@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r13), %edx
	movq	%r12, %rdi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	%r15, %rdi
	callq	_resource_list_free
	movq	%r14, %rdi
	callq	_ofw_bus_gen_destroy_devinfo
	movq	_M_UNIN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_OF_peer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_25
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %r13
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ofw_bus_gen_setup_devinfo
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %r15
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_resource_list_init
	movq	$0, (%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_unin_chip_add_intr
	movl	$32, %ecx
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-112(%rbp), %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	testl	%eax, %eax
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_21
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	cmpq	$0, (%r13)
	jne	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-112(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-112(%rbp), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$8, %ecx
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	leaq	-144(%rbp), %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	testl	%eax, %eax
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.11(%rip), %rdi
	callq	_OF_finddevice
	movq	%rax, -144(%rbp)
	movq	%r12, %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-144(%rbp), %rdi
	xorl	%esi, %esi
	callq	_MAP_IRQ
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r13), %rdx
	movsbl	%al, %r12d
	movq	%r15, %rdi
	movl	%r12d, %ecx
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	_resource_list_add
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movb	%r12b, (%rcx,%rax)
	movq	-128(%rbp), %r12                ## 8-byte Reload
	incq	(%r13)
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_unin_chip_add_reg
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_device_add_child
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_device_set_ivars
	movq	_M_UNIN@GOTPCREL(%rip), %r15
	jmp	LBB0_24
LBB0_25:
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movsbl	(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pmap_mapdev
	movq	%rax, 8(%rbx)
	movsbl	(%rax), %edx
	movb	%dl, 2(%rbx)
	leaq	L_.str.14(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	movq	%rax, %rbx
	leaq	-80(%rbp), %r14
	leaq	L_.str.15(%rip), %r15
	leaq	L_.str.16(%rip), %r12
	leaq	L_.str.17(%rip), %r13
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rdi
	callq	_OF_peer
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_32
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$32, %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_unin_enable_gmac
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_unin_enable_mpic
	jmp	LBB0_31
LBB0_32:
	leaq	L_.str.18(%rip), %rdi
	callq	_OF_finddevice
	movq	%rax, %rbx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	L_.str.15(%rip), %rsi
	movl	$32, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_OF_getprop
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_34
## %bb.33:
	movq	%rbx, %rdi
	callq	_unin_enable_gmac
LBB0_34:
	movq	%rbx, %rdi
	callq	_bus_generic_attach
	movl	%eax, %r14d
	jmp	LBB0_35
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"#address-cells"

L_.str.2:                               ## @.str.2
	.asciz	"#size-cells"

	.comm	_RMAN_ARRAY,4,2                 ## @RMAN_ARRAY
L_.str.3:                               ## @.str.3
	.asciz	"UniNorth Device Memory"

L_.str.4:                               ## @.str.4
	.asciz	"rman_init() failed. error = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"rman_manage_region() failed. error = %d\n"

	.comm	_unin_chip,8,3                  ## @unin_chip
	.comm	_M_UNIN,4,2                     ## @M_UNIN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.6:                               ## @.str.6
	.asciz	"name"

L_.str.7:                               ## @.str.7
	.asciz	"device has no name!\n"

L_.str.8:                               ## @.str.8
	.asciz	"i2c-bus"

L_.str.9:                               ## @.str.9
	.asciz	"i2c"

L_.str.10:                              ## @.str.10
	.asciz	"interrupt-parent"

L_.str.11:                              ## @.str.11
	.asciz	"/u3/mpic"

L_.str.12:                              ## @.str.12
	.asciz	"Set /u3/mpic as iparent!\n"

	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
L_.str.13:                              ## @.str.13
	.asciz	"<%s>: device_add_child failed\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.14:                              ## @.str.14
	.asciz	"Version %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"compatible"

L_.str.16:                              ## @.str.16
	.asciz	"gmac"

L_.str.17:                              ## @.str.17
	.asciz	"chrp,open-pic"

L_.str.18:                              ## @.str.18
	.asciz	"enet"

	.no_dead_strip	_unin_chip_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unin_chip_attach
_unin_chip_attach:                      ; @unin_chip_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_device_get_softc
	mov	x21, x0
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x20, x0
	mov	w8, #3
	add	x22, sp, #21
	stp	x22, x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_OF_getprop
	cmp	w0, #7
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_34
LBB0_2:
	mov	w23, #1
	stp	w23, w23, [sp, #24]
	mov	x0, x20
	bl	_OF_parent
	mov	w24, #4
	add	x8, sp, #28
	stp	x8, x24, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_OF_getprop
	mov	x0, x20
	bl	_OF_parent
	add	x8, sp, #24
	stp	x8, x24, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_OF_getprop
	ldrb	w8, [sp, #21]
	strb	w8, [x21]
	ldr	w8, [sp, #28]
	cmp	w8, #2
	cinc	x8, x23, eq
	ldrb	w8, [x22, x8]
	strb	w8, [x21, #1]
Lloh12:
	adrp	x8, _RMAN_ARRAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RMAN_ARRAY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	mov	x23, x21
	str	x9, [x23, #16]!
	str	w8, [x21, #24]
	mov	x0, x23
	bl	_rman_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_34
LBB0_4:
	ldrsb	w1, [x21]
	ldrsb	w8, [x21, #1]
	add	w8, w1, w8
	sub	w2, w8, #1
	mov	x0, x23
	bl	_rman_manage_region
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_printf
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_34
LBB0_6:
Lloh21:
	adrp	x8, _unin_chip@GOTPAGE
Lloh22:
	ldr	x8, [x8, _unin_chip@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
; %bb.7:
	str	x19, [x8]
LBB0_8:
	mov	x0, x20
	bl	_OF_child
	cbz	x0, LBB0_24
; %bb.9:
	mov	x22, x0
Lloh23:
	adrp	x28, _M_UNIN@GOTPAGE
Lloh24:
	ldr	x28, [x28, _M_UNIN@GOTPAGEOFF]
Lloh25:
	adrp	x25, _M_WAITOK@GOTPAGE
Lloh26:
	ldr	x25, [x25, _M_WAITOK@GOTPAGEOFF]
Lloh27:
	adrp	x23, _M_ZERO@GOTPAGE
Lloh28:
	ldr	x23, [x23, _M_ZERO@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x26, #16]
	str	x8, [sp]
	mov	x0, x19
Lloh29:
	adrp	x1, l_.str.13@PAGE
Lloh30:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_device_printf
	mov	x0, x24
	bl	_resource_list_free
	mov	x0, x27
	bl	_ofw_bus_gen_destroy_devinfo
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x28]
	mov	x0, x26
	bl	_free
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	bl	_OF_peer
	mov	x22, x0
	cbz	x0, LBB0_24
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	w0, #24
	bl	_malloc
	mov	x26, x0
	add	x27, x0, #16
	mov	x0, x27
	mov	x1, x22
	bl	_ofw_bus_gen_setup_devinfo
	cbnz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x26, #20
	mov	x0, x24
	bl	_resource_list_init
	str	xzr, [x26]
	mov	x0, x22
	mov	x1, x26
	bl	_unin_chip_add_intr
	mov	w9, #32
	add	x8, sp, #40
	stp	x8, x9, [sp]
	mov	x0, x22
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_OF_getprop
	cmp	w0, #0
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x26]
	cbnz	x8, LBB0_22
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_device_printf
	ldr	x8, [x26]
	cbnz	x8, LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #40
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #40
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w9, #8
	add	x8, sp, #32
	stp	x8, x9, [sp]
	mov	x0, x22
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_OF_getprop
	cmp	w0, #0
	b.gt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh41:
	adrp	x0, l_.str.11@PAGE
Lloh42:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_OF_finddevice
	str	x0, [sp, #32]
	mov	x0, x19
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_device_printf
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_MAP_IRQ
	mov	x25, x0
Lloh45:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	x2, [x26]
	mov	x0, x24
	mov	x3, x25
	mov	x4, x25
	mov	w5, #1
	bl	_resource_list_add
	ldp	x9, x8, [x26]
	strb	w25, [x8, x9]
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x26]
Lloh48:
	adrp	x25, _M_WAITOK@GOTPAGE
Lloh49:
	ldr	x25, [x25, _M_WAITOK@GOTPAGEOFF]
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_unin_chip_add_reg
	mov	x0, x19
	mov	x1, #0
	mov	w2, #-1
	bl	_device_add_child
	cbz	x0, LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x26
	bl	_device_set_ivars
	b	LBB0_12
LBB0_24:
	ldrsb	w0, [x21]
Lloh50:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_pmap_mapdev
	str	x0, [x21, #8]
	ldrsb	x8, [x0]
	strb	w8, [x21, #2]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.14@PAGE
Lloh54:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	x0, x20
	bl	_OF_child
	cbz	x0, LBB0_31
; %bb.25:
	mov	x20, x0
	add	x24, sp, #72
	mov	w25, #32
Lloh55:
	adrp	x21, l_.str.15@PAGE
Lloh56:
	add	x21, x21, l_.str.15@PAGEOFF
Lloh57:
	adrp	x22, l_.str.16@PAGE
Lloh58:
	add	x22, x22, l_.str.16@PAGEOFF
Lloh59:
	adrp	x23, l_.str.17@PAGE
Lloh60:
	add	x23, x23, l_.str.17@PAGEOFF
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x20
	bl	_OF_peer
	mov	x20, x0
	cbz	x0, LBB0_31
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	x24, x25, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_OF_getprop
	add	x0, sp, #72
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x19
	bl	_unin_enable_gmac
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x0, sp, #72
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x19
	bl	_unin_enable_mpic
	b	LBB0_26
LBB0_31:
Lloh61:
	adrp	x0, l_.str.18@PAGE
Lloh62:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_OF_finddevice
	mov	x20, x0
	add	x21, sp, #72
	mov	w22, #32
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	x21, x22, [sp]
Lloh63:
	adrp	x1, l_.str.15@PAGE
Lloh64:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_OF_getprop
Lloh65:
	adrp	x1, l_.str.16@PAGE
Lloh66:
	add	x1, x1, l_.str.16@PAGEOFF
	add	x0, sp, #72
	bl	_strcmp
	cbnz	x0, LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_unin_enable_gmac
LBB0_33:
	mov	x0, x19
	bl	_bus_generic_attach
	mov	x22, x0
LBB0_34:
	ldur	x8, [x29, #-88]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	mov	x0, x22
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"#address-cells"

l_.str.2:                               ; @.str.2
	.asciz	"#size-cells"

	.comm	_RMAN_ARRAY,4,2                 ; @RMAN_ARRAY
l_.str.3:                               ; @.str.3
	.asciz	"UniNorth Device Memory"

l_.str.4:                               ; @.str.4
	.asciz	"rman_init() failed. error = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"rman_manage_region() failed. error = %d\n"

	.comm	_unin_chip,8,3                  ; @unin_chip
	.comm	_M_UNIN,4,2                     ; @M_UNIN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.6:                               ; @.str.6
	.asciz	"name"

l_.str.7:                               ; @.str.7
	.asciz	"device has no name!\n"

l_.str.8:                               ; @.str.8
	.asciz	"i2c-bus"

l_.str.9:                               ; @.str.9
	.asciz	"i2c"

l_.str.10:                              ; @.str.10
	.asciz	"interrupt-parent"

l_.str.11:                              ; @.str.11
	.asciz	"/u3/mpic"

l_.str.12:                              ; @.str.12
	.asciz	"Set /u3/mpic as iparent!\n"

	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
l_.str.13:                              ; @.str.13
	.asciz	"<%s>: device_add_child failed\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.14:                              ; @.str.14
	.asciz	"Version %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"compatible"

l_.str.16:                              ; @.str.16
	.asciz	"gmac"

l_.str.17:                              ; @.str.17
	.asciz	"chrp,open-pic"

l_.str.18:                              ; @.str.18
	.asciz	"enet"

	.no_dead_strip	_unin_chip_attach
.subsections_via_symbols
