	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebus_pci_attach
_ebus_pci_attach:                       ## @ebus_pci_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	callq	_device_get_softc
	movq	%rax, %r14
	movq	_EBUS_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	movq	_PCIR_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$2, %edx
	callq	_pci_read_config
	movq	_PCIM_CMD_SERRESPEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PCIM_CMD_PERRESPEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PCIM_CMD_BUSMASTEREN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PCIM_CMD_MEMEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$2, %ecx
	callq	_pci_write_config
	movq	_PCIR_CACHELNSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movl	$16, %edx
	movl	$1, %ecx
	callq	_pci_write_config
	movq	_PCIR_LATTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movl	$64, %edx
	movl	$1, %ecx
	callq	_pci_write_config
	movl	%r13d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %ebx
	leaq	8(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_OF_getprop_alloc_multi
	movl	%eax, (%r14)
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	shll	$5, %eax
	movq	_M_DEVBUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	movq	_M_ZERO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, 16(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_27
## %bb.3:
	movq	%rax, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	$-16, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r13
	movq	%r13, %rdi
	callq	_ofw_isa_range_restype
	movl	%eax, 24(%r15,%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_PCIR_BAR
	movl	%eax, -72(%rbp)
	movl	24(%r15,%r12), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	-72(%rbp), %rdx
	callq	_bus_alloc_resource_any
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_rman_get_start
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ISA_RANGE_PHYS
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_rman_get_size
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx,%rcx,8), %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, 16(%r15,%r12)
	movq	_RMAN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%r12), %rdi
	addq	$32, %rdi
	movl	%eax, 40(%r15,%r12)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 32(%r15,%r12)
	movq	%r14, %rsi
	callq	_rman_init_from_resource
	testq	%rax, %rax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_12
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rax
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %r15
	addq	$32, %r12
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_24
LBB0_27:
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_ebus_attach
	jmp	LBB0_28
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_13
LBB0_7:
	movq	%r14, %rdi
	callq	_rman_get_start
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ISA_RANGE_PHYS
	leaq	L_.str.3(%rip), %rsi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	movq	%rax, %r8
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_rman_get_size
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rbx,%rdx,8), %r8
	leaq	L_.str.4(%rip), %rsi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rax, %rcx
LBB0_10:
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
LBB0_13:
	movl	%r13d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_14:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rbx
	cmpq	$0, 16(%rbx,%r12)
	je	LBB0_16
## %bb.15:
	movl	24(%rbx,%r12), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_PCIR_BAR
	movq	16(%rbx,%r12), %rcx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_bus_release_resource
LBB0_16:
	cmpq	$-16, %r12
	jne	LBB0_17
LBB0_23:
	movq	16(%r14), %rdi
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	8(%r14), %rdi
	callq	_OF_prop_free
LBB0_24:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	1(%rax), %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$-32, %r12
	cmpq	$1, %r15
	jbe	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	decq	%r15
	movq	16(%r14), %rbx
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	(%rbx,%r12), %rdi
	callq	_rman_fini
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, -16(%rbx,%r12)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	-8(%rbx,%r12), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_PCIR_BAR
	movq	-16(%rbx,%r12), %rcx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_bus_release_resource
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUS_PCI,4,2                   ## @EBUS_PCI
	.comm	_PCIR_COMMAND,4,2               ## @PCIR_COMMAND
	.comm	_PCIM_CMD_SERRESPEN,4,2         ## @PCIM_CMD_SERRESPEN
	.comm	_PCIM_CMD_PERRESPEN,4,2         ## @PCIM_CMD_PERRESPEN
	.comm	_PCIM_CMD_BUSMASTEREN,4,2       ## @PCIM_CMD_BUSMASTEREN
	.comm	_PCIM_CMD_MEMEN,4,2             ## @PCIM_CMD_MEMEN
	.comm	_PCIR_CACHELNSZ,4,2             ## @PCIR_CACHELNSZ
	.comm	_PCIR_LATTIMER,4,2              ## @PCIR_LATTIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ranges"

L_.str.1:                               ## @.str.1
	.asciz	"could not get ranges property\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"could not allocate range resource %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"mismatch in start of range %d (0x%lx/0x%lx)\n"

L_.str.4:                               ## @.str.4
	.asciz	"mismatch in size of range %d (0x%lx/0x%x)\n"

	.comm	_RMAN_ARRAY,4,2                 ## @RMAN_ARRAY
L_.str.5:                               ## @.str.5
	.asciz	"EBus range"

L_.str.6:                               ## @.str.6
	.asciz	"could not initialize rman for range %d"

	.no_dead_strip	_ebus_pci_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebus_pci_attach
_ebus_pci_attach:                       ; @ebus_pci_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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x8, _EBUS_PCI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUS_PCI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	orr	w8, w9, w8
	str	w8, [x0, #24]
Lloh3:
	adrp	x8, _PCIR_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIR_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_pci_read_config
Lloh6:
	adrp	x8, _PCIM_CMD_SERRESPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIM_CMD_SERRESPEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh9:
	adrp	x9, _PCIM_CMD_PERRESPEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCIM_CMD_PERRESPEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _PCIM_CMD_BUSMASTEREN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCIM_CMD_BUSMASTEREN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _PCIM_CMD_MEMEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCIM_CMD_MEMEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	w3, #2
	bl	_pci_write_config
Lloh18:
	adrp	x8, _PCIR_CACHELNSZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCIR_CACHELNSZ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16
	mov	w3, #1
	bl	_pci_write_config
Lloh21:
	adrp	x8, _PCIR_LATTIMER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCIR_LATTIMER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #64
	mov	w3, #1
	bl	_pci_write_config
	mov	x0, x20
	bl	_ofw_bus_get_node
	mov	x21, x0
	add	x3, x19, #8
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	str	x3, [sp, #32]                   ; 8-byte Folded Spill
	bl	_OF_getprop_alloc_multi
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	lsl	w0, w0, #5
Lloh26:
	adrp	x9, _M_DEVBUF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _M_DEVBUF@GOTPAGEOFF]
Lloh28:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x19, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x24, x0
	mov	x22, #0
	mov	x28, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x23, [x8]
	add	x26, x23, x22
	mov	x0, x26
	bl	_ofw_isa_range_restype
	add	x25, x24, x28
	str	w0, [x25, #8]
	mov	x0, x21
	bl	_PCIR_BAR
	str	w0, [sp, #44]
	ldr	w1, [x25, #8]
Lloh35:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	add	x2, sp, #44
	mov	x0, x20
	bl	_bus_alloc_resource_any
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	bl	_rman_get_start
	mov	x27, x0
	mov	x0, x26
	bl	_ISA_RANGE_PHYS
	cmp	x27, x0
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_rman_get_size
	ldr	x8, [x23, x21, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x24, x28
	str	x25, [x0]
Lloh38:
	adrp	x8, _RMAN_ARRAY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RMAN_ARRAY@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh41:
	adrp	x8, l_.str.5@PAGE
Lloh42:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x0, #16]!
	mov	x1, x25
	bl	_rman_init_from_resource
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x19, #16]
	add	x28, x28, #32
	add	x22, x22, #8
	b	LBB0_3
LBB0_9:
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	b	LBB0_25
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_ebus_attach
	b	LBB0_26
LBB0_11:
	str	x21, [sp]
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x0, x25
	bl	_rman_get_start
	mov	x24, x0
	add	x0, x23, x22
	bl	_ISA_RANGE_PHYS
	stp	x24, x0, [sp, #8]
	str	x21, [sp]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x25
	bl	_rman_get_size
	ldr	x8, [x23, x21, lsl #3]
	stp	x0, x8, [sp, #8]
	str	x21, [sp]
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
	str	x21, [sp]
Lloh51:
	adrp	x1, l_.str.6@PAGE
Lloh52:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_device_printf
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x28]
	cbz	x9, LBB0_17
; %bb.16:
	add	x23, x8, x28
	ldr	w22, [x23, #8]
	mov	x0, x21
	bl	_PCIR_BAR
	mov	x2, x0
	ldr	x3, [x23]
	mov	x0, x20
	mov	x1, x22
	bl	_bus_release_resource
LBB0_17:
	cbz	x28, LBB0_24
; %bb.18:
	add	x23, x21, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	x28, x28, #32
	cmp	x23, #1
	b.ls	LBB0_24
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	x23, x23, #1
	ldr	x22, [x19, #16]
	cmp	x23, x21
	b.gt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x22, x28
	sub	x0, x8, #16
	bl	_rman_fini
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x22, x28
	ldur	x8, [x24, #-32]
	cbz	x8, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldur	w22, [x24, #-24]
	mov	x0, x21
	bl	_PCIR_BAR
	mov	x2, x0
	ldur	x3, [x24, #-32]
	mov	x0, x20
	mov	x1, x22
	bl	_bus_release_resource
	b	LBB0_19
LBB0_24:
	ldr	x0, [x19, #16]
Lloh53:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_free
	ldr	x0, [x19, #8]
	bl	_OF_prop_free
LBB0_25:
Lloh56:
	adrp	x8, _ENXIO@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
LBB0_26:
	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
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUS_PCI,4,2                   ; @EBUS_PCI
	.comm	_PCIR_COMMAND,4,2               ; @PCIR_COMMAND
	.comm	_PCIM_CMD_SERRESPEN,4,2         ; @PCIM_CMD_SERRESPEN
	.comm	_PCIM_CMD_PERRESPEN,4,2         ; @PCIM_CMD_PERRESPEN
	.comm	_PCIM_CMD_BUSMASTEREN,4,2       ; @PCIM_CMD_BUSMASTEREN
	.comm	_PCIM_CMD_MEMEN,4,2             ; @PCIM_CMD_MEMEN
	.comm	_PCIR_CACHELNSZ,4,2             ; @PCIR_CACHELNSZ
	.comm	_PCIR_LATTIMER,4,2              ; @PCIR_LATTIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ranges"

l_.str.1:                               ; @.str.1
	.asciz	"could not get ranges property\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"could not allocate range resource %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"mismatch in start of range %d (0x%lx/0x%lx)\n"

l_.str.4:                               ; @.str.4
	.asciz	"mismatch in size of range %d (0x%lx/0x%x)\n"

	.comm	_RMAN_ARRAY,4,2                 ; @RMAN_ARRAY
l_.str.5:                               ; @.str.5
	.asciz	"EBus range"

l_.str.6:                               ; @.str.6
	.asciz	"could not initialize rman for range %d"

	.no_dead_strip	_ebus_pci_attach
.subsections_via_symbols
