	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_attach
_macio_attach:                          ## @macio_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_ofw_bus_get_node
	movq	%rax, %r12
	movq	%rax, (%r15)
	leaq	L_.str(%rip), %rsi
	leaq	-83(%rbp), %rdx
	movq	%rax, %rdi
	movl	$3, %ecx
	callq	_OF_getprop
	cmpq	$2, %rax
	jg	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_31
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movl	$32, %ecx
	callq	_OF_getprop
	movb	-81(%rbp), %al
	movb	%al, 8(%r15)
	movq	_MACIO_REG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	xorl	%edi, %edi
	callq	_PCIR_BAR
	leaq	48(%r15), %rdx
	movl	%eax, 48(%r15)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_bus_alloc_resource_any
	movq	%rax, 16(%r15)
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rbx
	addq	$32, %rbx
	movl	%eax, 40(%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	callq	_rman_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movl	24(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rman_manage_region
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
LBB0_4:
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_device_printf
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_30
## %bb.8:
	movq	%rax, %r14
	movq	_M_MACIO@GOTPCREL(%rip), %rbx
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %edx
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_device_printf
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_resource_list_free
	movq	%r13, %rdi
	callq	_ofw_bus_gen_destroy_devinfo
	movq	_M_MACIO@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_OF_peer
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_30
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movl	(%rbx), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ofw_bus_gen_setup_devinfo
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %edi
	callq	_macio_get_quirks
	movl	%eax, %r12d
	movq	_MACIO_QUIRK_IGNORE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_ofw_bus_gen_destroy_devinfo
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_free
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	jmp	LBB0_29
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	addq	$4, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_resource_list_init
	movq	$0, 8(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_macio_add_intr
	movq	%r14, %rdi
	movq	_MACIO_QUIRK_USE_CHILD_REG@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_OF_child
	movq	%rax, %rdi
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rsi
	callq	_macio_add_reg
	movq	_MACIO_QUIRK_CHILD_HAS_INTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_OF_child
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_macio_add_intr
	movq	%rbx, %rdi
	callq	_OF_peer
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_device_add_child
	testq	%rax, %rax
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rdi
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_device_set_ivars
	cmpq	$0, 16(%r15)
	movq	_M_MACIO@GOTPCREL(%rip), %rbx
	je	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_ofw_bus_get_name
	movq	%rax, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_ofw_bus_get_compat
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_ofw_bus_get_compat
	movq	%rax, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r15), %rdi
	movq	_HEATHROW_FCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_bus_read_4
	movq	_FCR_ENET_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	notl	%r12d
	movq	_FCR_ENET_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	orl	%eax, %r12d
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_bus_write_4
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_DELAY
	orl	(%rbx), %r12d
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_bus_write_4
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_DELAY
	movl	(%rbx), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_bus_write_4
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_DELAY
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	_M_MACIO@GOTPCREL(%rip), %rbx
	callq	_bus_write_4
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_ofw_bus_get_name
	movq	%rax, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-80(%rbp), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r15), %rdi
	movq	_KEYLARGO_FCR1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_bus_read_4
	movq	_FCR1_I2S0_CLK_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FCR1_I2S0_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	16(%r15), %rdi
	movl	(%r13), %esi
	movl	%eax, %edx
	callq	_bus_write_4
	jmp	LBB0_29
LBB0_30:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_bus_generic_attach
	movl	%eax, %r14d
	jmp	LBB0_31
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"assigned-addresses"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"compatible"

	.comm	_MACIO_REG_SIZE,4,2             ## @MACIO_REG_SIZE
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.comm	_RMAN_ARRAY,4,2                 ## @RMAN_ARRAY
L_.str.2:                               ## @.str.2
	.asciz	"MacIO Device Memory"

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

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

	.comm	_M_MACIO,4,2                    ## @M_MACIO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_MACIO_QUIRK_IGNORE,4,2         ## @MACIO_QUIRK_IGNORE
	.comm	_MACIO_QUIRK_USE_CHILD_REG,4,2  ## @MACIO_QUIRK_USE_CHILD_REG
	.comm	_MACIO_QUIRK_CHILD_HAS_INTR,4,2 ## @MACIO_QUIRK_CHILD_HAS_INTR
L_.str.5:                               ## @.str.5
	.asciz	"<%s>: device_add_child failed\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"bmac+"

	.comm	_HEATHROW_FCR,4,2               ## @HEATHROW_FCR
	.comm	_FCR_ENET_ENABLE,4,2            ## @FCR_ENET_ENABLE
	.comm	_FCR_ENET_RESET,4,2             ## @FCR_ENET_RESET
L_.str.8:                               ## @.str.8
	.asciz	"i2s"

L_.str.9:                               ## @.str.9
	.asciz	"K2-Keylargo"

	.comm	_KEYLARGO_FCR1,4,2              ## @KEYLARGO_FCR1
	.comm	_FCR1_I2S0_CLK_ENABLE,4,2       ## @FCR1_I2S0_CLK_ENABLE
	.comm	_FCR1_I2S0_ENABLE,4,2           ## @FCR1_I2S0_ENABLE
	.no_dead_strip	_macio_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_attach
_macio_attach:                          ; @macio_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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]
	str	x8, [sp, #40]
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x21, x0
	str	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #5
	mov	w3, #3
	bl	_OF_getprop
	cmp	x0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #32
	bl	_OF_getprop
	ldrb	w8, [sp, #7]
	strb	w8, [x20, #8]
Lloh10:
	adrp	x8, _MACIO_REG_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MACIO_REG_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	w0, #0
	bl	_PCIR_BAR
	mov	x2, x20
	str	w0, [x2, #48]!
Lloh13:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_bus_alloc_resource_any
Lloh19:
	adrp	x8, l_.str.2@PAGE
Lloh20:
	add	x8, x8, l_.str.2@PAGEOFF
	mov	x23, x20
	str	x8, [x23, #32]!
	stur	x0, [x23, #-16]
Lloh21:
	adrp	x8, _RMAN_ARRAY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RMAN_ARRAY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	mov	x0, x23
	bl	_rman_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w2, [x20, #24]
	mov	x0, x23
	mov	w1, #0
	bl	_rman_manage_region
	cbz	w0, LBB0_9
; %bb.5:
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x22
	bl	_device_printf
LBB0_7:
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.8:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	mov	x0, x21
	bl	_OF_child
	cbz	x0, LBB0_32
; %bb.10:
	mov	x21, x0
Lloh31:
	adrp	x26, _M_MACIO@GOTPAGE
Lloh32:
	ldr	x26, [x26, _M_MACIO@GOTPAGEOFF]
Lloh33:
	adrp	x22, _M_WAITOK@GOTPAGE
Lloh34:
	ldr	x22, [x22, _M_WAITOK@GOTPAGEOFF]
Lloh35:
	adrp	x23, _M_ZERO@GOTPAGE
Lloh36:
	ldr	x23, [x23, _M_ZERO@GOTPAGEOFF]
Lloh37:
	adrp	x24, _MACIO_QUIRK_IGNORE@GOTPAGE
Lloh38:
	ldr	x24, [x24, _MACIO_QUIRK_IGNORE@GOTPAGEOFF]
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	w1, [x26]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	w0, #16
	bl	_malloc
	mov	x27, x0
	mov	x1, x21
	bl	_ofw_bus_gen_setup_devinfo
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x27]
	bl	_macio_get_quirks
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x27
	bl	_ofw_bus_gen_destroy_devinfo
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x26]
	mov	x0, x27
	bl	_free
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_OF_peer
	mov	x21, x0
	cbnz	x0, LBB0_11
	b	LBB0_32
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x0
	add	x25, x27, #4
	mov	x0, x25
	bl	_resource_list_init
	str	xzr, [x27, #8]
	mov	x0, x21
	mov	x1, x27
	bl	_macio_add_intr
Lloh39:
	adrp	x8, _MACIO_QUIRK_USE_CHILD_REG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MACIO_QUIRK_USE_CHILD_REG@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	mov	x0, x21
	tst	w8, w28
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_OF_child
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x27
	bl	_macio_add_reg
Lloh42:
	adrp	x8, _MACIO_QUIRK_CHILD_HAS_INTR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MACIO_QUIRK_CHILD_HAS_INTR@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_OF_child
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x0
LBB0_21:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	x1, x27
	bl	_macio_add_intr
	mov	x0, x28
	bl	_OF_peer
	mov	x28, x0
	cbnz	x0, LBB0_21
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, #0
	mov	w2, #-1
	bl	_device_add_child
	cbz	x0, LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x0
	mov	x1, x27
	bl	_device_set_ivars
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_15
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_ofw_bus_get_name
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_ofw_bus_get_compat
	cbz	x0, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_ofw_bus_get_compat
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x20, #16]
Lloh49:
	adrp	x27, _HEATHROW_FCR@GOTPAGE
Lloh50:
	ldr	x27, [x27, _HEATHROW_FCR@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_bus_read_4
Lloh51:
	adrp	x8, _FCR_ENET_ENABLE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _FCR_ENET_ENABLE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x24, _FCR_ENET_RESET@GOTPAGE
Lloh55:
	ldr	x24, [x24, _FCR_ENET_RESET@GOTPAGEOFF]
	ldr	w9, [x24]
	bic	w8, w8, w9
	orr	w25, w8, w0
	ldr	x0, [x20, #16]
	ldr	w1, [x27]
	mov	x2, x25
	bl	_bus_write_4
	mov	w0, #50000
	bl	_DELAY
	ldr	w8, [x24]
	orr	w25, w8, w25
	ldr	x0, [x20, #16]
	ldr	w1, [x27]
	mov	x2, x25
	bl	_bus_write_4
	mov	w0, #50000
	bl	_DELAY
	ldr	w8, [x24]
Lloh56:
	adrp	x24, _MACIO_QUIRK_IGNORE@GOTPAGE
Lloh57:
	ldr	x24, [x24, _MACIO_QUIRK_IGNORE@GOTPAGEOFF]
	bic	w25, w25, w8
	ldr	x0, [x20, #16]
	ldr	w1, [x27]
	mov	x2, x25
	bl	_bus_write_4
	mov	w0, #50000
	bl	_DELAY
	ldr	x0, [x20, #16]
	ldr	w1, [x27]
	mov	x2, x25
	bl	_bus_write_4
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
	bl	_ofw_bus_get_name
Lloh58:
	adrp	x1, l_.str.8@PAGE
Lloh59:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
Lloh60:
	adrp	x1, l_.str.9@PAGE
Lloh61:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_15
; %bb.30:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x20, #16]
Lloh62:
	adrp	x25, _KEYLARGO_FCR1@GOTPAGE
Lloh63:
	ldr	x25, [x25, _KEYLARGO_FCR1@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_bus_read_4
Lloh64:
	adrp	x8, _FCR1_I2S0_CLK_ENABLE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _FCR1_I2S0_CLK_ENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x9, _FCR1_I2S0_ENABLE@GOTPAGE
Lloh68:
	ldr	x9, [x9, _FCR1_I2S0_ENABLE@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	x0, [x20, #16]
	ldr	w1, [x25]
	bl	_bus_write_4
	b	LBB0_15
LBB0_31:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x27]
	mov	x0, x19
Lloh70:
	adrp	x1, l_.str.5@PAGE
Lloh71:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_device_printf
	mov	x0, x25
	bl	_resource_list_free
	b	LBB0_13
LBB0_32:
	mov	x0, x19
	bl	_bus_generic_attach
	mov	x22, x0
	b	LBB0_7
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"assigned-addresses"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"compatible"

	.comm	_MACIO_REG_SIZE,4,2             ; @MACIO_REG_SIZE
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.comm	_RMAN_ARRAY,4,2                 ; @RMAN_ARRAY
l_.str.2:                               ; @.str.2
	.asciz	"MacIO Device Memory"

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

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

	.comm	_M_MACIO,4,2                    ; @M_MACIO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_MACIO_QUIRK_IGNORE,4,2         ; @MACIO_QUIRK_IGNORE
	.comm	_MACIO_QUIRK_USE_CHILD_REG,4,2  ; @MACIO_QUIRK_USE_CHILD_REG
	.comm	_MACIO_QUIRK_CHILD_HAS_INTR,4,2 ; @MACIO_QUIRK_CHILD_HAS_INTR
l_.str.5:                               ; @.str.5
	.asciz	"<%s>: device_add_child failed\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"bmac+"

	.comm	_HEATHROW_FCR,4,2               ; @HEATHROW_FCR
	.comm	_FCR_ENET_ENABLE,4,2            ; @FCR_ENET_ENABLE
	.comm	_FCR_ENET_RESET,4,2             ; @FCR_ENET_RESET
l_.str.8:                               ; @.str.8
	.asciz	"i2s"

l_.str.9:                               ; @.str.9
	.asciz	"K2-Keylargo"

	.comm	_KEYLARGO_FCR1,4,2              ; @KEYLARGO_FCR1
	.comm	_FCR1_I2S0_CLK_ENABLE,4,2       ; @FCR1_I2S0_CLK_ENABLE
	.comm	_FCR1_I2S0_ENABLE,4,2           ; @FCR1_I2S0_ENABLE
	.no_dead_strip	_macio_attach
.subsections_via_symbols
