	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pcib_decode_win
_mv_pcib_decode_win:                    ## @mv_pcib_decode_win
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	28(%rsi), %r14d
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_mv_pci_ranges
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
	jmp	LBB0_8
LBB0_2:
	movl	20(%r15), %edi
	movl	24(%r15), %esi
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %edx
	movl	$-1, %r8d
	callq	_decode_win_cpu_set
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %edx
	movl	%edx, %r8d
	callq	_decode_win_cpu_set
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	%r14d, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not retrieve 'ranges' data\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not set up CPU decode window for PCI IO\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"could not set up CPU decode windows for PCI MEM\n"

	.no_dead_strip	_mv_pcib_decode_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pcib_decode_win
_mv_pcib_decode_win:                    ; @mv_pcib_decode_win
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	ldr	w19, [x1, #28]
	add	x1, sp, #8
	mov	x2, sp
	bl	_mv_pci_ranges
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_8
LBB0_2:
	ldp	w0, w1, [x20, #20]
	ldp	w3, w2, [sp, #8]
	mov	w4, #-1
	bl	_decode_win_cpu_set
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldp	w1, w0, [x20, #16]
	ldp	w3, w2, [sp]
	mov	x4, x2
	bl	_decode_win_cpu_set
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w21, #0
	ldp	d1, d0, [sp]
	mov.d	v1[1], v0[0]
	str	q1, [x20]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_device_printf
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not retrieve 'ranges' data\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not set up CPU decode window for PCI IO\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"could not set up CPU decode windows for PCI MEM\n"

	.no_dead_strip	_mv_pcib_decode_win
.subsections_via_symbols
