	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pcib_ctrl_alloc_resource
_mv_pcib_ctrl_alloc_resource:           ## @mv_pcib_ctrl_alloc_resource
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	%r8, %rdi
	movq	%r9, %rsi
	callq	_RMAN_IS_DEFAULT_RANGE
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_device_get_ivars
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_18
## %bb.4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_resource_list_find
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rax), %r14
	movq	8(%rax), %r12
	movq	16(%rax), %rax
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %rax
LBB0_6:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_device_get_softc
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_20
## %bb.7:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.9:
	movq	8(%rax), %rdx
	addq	$16, %rdx
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rax
	addq	$24, %rdx
	cmpq	%rax, %rcx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rdx), %rdi
	movq	%r14, %rsi
	subq	%rdi, %rsi
	jl	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-8(%rdx), %rbx
	addq	%rdi, %rbx
	cmpq	%rbx, %r12
	jge	LBB0_13
## %bb.12:
	movq	(%rdx), %rdx
	addq	%rdx, %rsi
	subq	%rdi, %r12
	addq	%rdx, %r12
	movq	%rsi, %r14
	cmpl	%ecx, %eax
	je	LBB0_16
	jmp	LBB0_20
LBB0_14:
	movl	%ecx, %eax
	cmpl	%ecx, %eax
	je	LBB0_16
	jmp	LBB0_20
LBB0_8:
	xorl	%eax, %eax
	cmpl	%ecx, %eax
	jne	LBB0_20
LBB0_16:
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_device_printf
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	jmp	LBB0_19
LBB0_20:
	movl	24(%rbp), %eax
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	movq	%r12, %r9
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_bus_generic_alloc_resource
	addq	$40, %rsp
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not map resource %#llx-%#llx\n"

	.no_dead_strip	_mv_pcib_ctrl_alloc_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pcib_ctrl_alloc_resource
_mv_pcib_ctrl_alloc_resource:           ; @mv_pcib_ctrl_alloc_resource
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x7
	mov	x26, x6
	mov	x24, x5
	mov	x25, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x4
	mov	x1, x5
	bl	_RMAN_IS_DEFAULT_RANGE
Lloh0:
	adrp	x27, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SYS_RES_MEMORY@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x23
	bl	_device_get_ivars
	cbz	x0, LBB0_16
; %bb.2:
	ldr	w8, [x27]
	cmp	w8, w21
	b.ne	LBB0_16
; %bb.3:
	ldr	w2, [x20]
	mov	x1, x21
	bl	_resource_list_find
	cbz	x0, LBB0_16
; %bb.4:
	ldp	x25, x24, [x0]
	ldr	x26, [x0, #16]
LBB0_5:
	mov	x0, x22
	bl	_device_get_softc
	ldr	w8, [x27]
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.6:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x9, #0
	ldr	x10, [x0, #8]
	add	x10, x10, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-16]
	subs	x12, x25, x11
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x13, [x10, #-8]
	add	x13, x13, x11
	cmp	x24, x13
	b.ge	LBB0_8
; %bb.11:
	ldr	x10, [x10]
	add	x25, x12, x10
	sub	x11, x24, x11
	add	x24, x11, x10
	cmp	w9, w8
	b.eq	LBB0_14
	b	LBB0_17
LBB0_12:
	mov	x9, x8
	cmp	w9, w8
	b.eq	LBB0_14
	b	LBB0_17
LBB0_13:
	mov	w9, #0
	cmp	w9, w8
	b.ne	LBB0_17
LBB0_14:
	cbz	w8, LBB0_17
; %bb.15:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	mov	x3, x24
	bl	_device_printf
LBB0_16:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	mov	x5, x24
	mov	x6, x26
	mov	x7, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bus_generic_alloc_resource
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not map resource %#llx-%#llx\n"

	.no_dead_strip	_mv_pcib_ctrl_alloc_resource
.subsections_via_symbols
