	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_pcib_decode_win
_fsl_pcib_decode_win:                   ## @fsl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	68(%rsi), %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_outbound
	movl	64(%r15), %edi
	leaq	4(%r15), %rdx
	movq	%r15, %rsi
	callq	_law_pci_target
	testl	%eax, %eax
	je	LBB0_1
## %bb.17:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_16
LBB0_1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
                                        ## implicit-def: $r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$32, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	movq	_OFW_PCI_PHYS_HI_SPACEMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rdi,%r14), %esi
	leal	-128(%rsi), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$131, %esi
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$130, %esi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %r12d
	movq	_SYS_RES_IOPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rdi,%r14), %ecx
	movq	8(%rdi,%r14), %r8
	movq	24(%rdi,%r14), %r9
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_fsl_pcib_outbound
	movq	24(%r15), %rax
	movq	24(%rax,%r14), %rcx
	movq	%rcx, 56(%r15)
	movq	8(%rax,%r14), %rdx
	addl	%edx, %ecx
	decl	%ecx
	movl	%ecx, 48(%r15)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %r12d
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rdi,%r14), %ecx
	movq	8(%rdi,%r14), %r8
	movq	24(%rdi,%r14), %r9
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_fsl_pcib_outbound
	movq	24(%r15), %rax
	movq	24(%rax,%r14), %rcx
	movq	%rcx, 40(%r15)
	movq	8(%rax,%r14), %rdx
	addl	%edx, %ecx
	decl	%ecx
	movl	%ecx, 32(%r15)
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_panic
	movq	24(%r15), %rax
	movq	8(%rax,%r14), %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rax,%r14), %esi
	movl	%r12d, %edi
	callq	_law_enable
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %eax
	jmp	LBB0_11
LBB0_12:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	$3, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_outbound
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_outbound
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_inbound
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_inbound
	movq	_PIWAR_TRGT_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_Maxmem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ptoa
	movq	%r15, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_fsl_pcib_inbound
	cmpl	$2, 8(%r15)
	movq	_PIWAR_TRGT_CCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ccsrbar_pa@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ccsrbar_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	jl	LBB0_14
## %bb.13:
	movl	$8, %esi
	jmp	LBB0_15
LBB0_14:
	movl	$1, %esi
LBB0_15:
	movl	%ecx, %r9d
	callq	_fsl_pcib_inbound
	jmp	LBB0_16
LBB0_18:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not retrieve PCI LAW target info\n"

	.comm	_OFW_PCI_PHYS_HI_SPACEMASK,4,2  ## @OFW_PCI_PHYS_HI_SPACEMASK
	.comm	_SYS_RES_IOPORT,4,2             ## @SYS_RES_IOPORT
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"Unknown range type %#x\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not program LAW for range %d\n"

	.comm	_PIWAR_TRGT_LOCAL,4,2           ## @PIWAR_TRGT_LOCAL
	.comm	_Maxmem,4,2                     ## @Maxmem
	.comm	_PIWAR_TRGT_CCSR,4,2            ## @PIWAR_TRGT_CCSR
	.comm	_ccsrbar_pa,4,2                 ## @ccsrbar_pa
	.comm	_ccsrbar_size,4,2               ## @ccsrbar_size
	.no_dead_strip	_fsl_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 fsl_pcib_decode_win
_fsl_pcib_decode_win:                   ; @fsl_pcib_decode_win
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	ldr	w20, [x1, #68]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #-1
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_fsl_pcib_outbound
	ldr	w0, [x19, #64]
	add	x2, x19, #4
	mov	x1, x19
	bl	_law_pci_target
	cbz	w0, LBB0_3
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_device_printf
	b	LBB0_18
LBB0_3:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x24, #0
	mov	w25, #16
Lloh2:
	adrp	x26, _OFW_PCI_PHYS_HI_SPACEMASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OFW_PCI_PHYS_HI_SPACEMASK@GOTPAGEOFF]
Lloh4:
	adrp	x27, _SYS_RES_MEMORY@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SYS_RES_MEMORY@GOTPAGEOFF]
                                        ; implicit-def: $w22
Lloh6:
	adrp	x28, _SYS_RES_IOPORT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SYS_RES_IOPORT@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	x25, x25, #32
	cmp	x24, w8, sxtw
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x10, x9, x25
	ldur	w11, [x10, #-16]
	ldr	w12, [x26]
	and	w1, w12, w11
	sub	w11, w1, #128
	cmp	w11, #2
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w1, #131
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w1, #130
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x19, #4]
	ldr	w2, [x28]
	add	x8, x9, x25
	ldr	w3, [x8]
	ldur	x4, [x8, #-8]
	ldr	x5, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_fsl_pcib_outbound
	ldr	x8, [x19, #24]
	add	x9, x8, x25
	ldr	x10, [x9, #8]
	str	x10, [x19, #56]
	ldur	x2, [x9, #-8]
	add	w9, w2, w10
	sub	w9, w9, #1
	str	w9, [x19, #48]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x19]
	ldr	w2, [x27]
	ldr	w3, [x10]
	ldur	x4, [x10, #-8]
	ldr	x5, [x10, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_fsl_pcib_outbound
	ldr	x8, [x19, #24]
	add	x9, x8, x25
	ldr	x10, [x9, #8]
	str	x10, [x19, #40]
	ldur	x2, [x9, #-8]
	add	w9, w2, w10
	sub	w9, w9, #1
	str	w9, [x19, #32]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_panic
	ldr	x8, [x19, #24]
	add	x9, x8, x25
	ldur	x2, [x9, #-8]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x8, x25]
	mov	x0, x22
	bl	_law_enable
	cbnz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #16]
	b	LBB0_5
LBB0_14:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #-1
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_fsl_pcib_outbound
	mov	x0, x19
	mov	w1, #4
	mov	w2, #-1
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_fsl_pcib_outbound
	mov	x0, x19
	mov	w1, #1
	mov	w2, #-1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_fsl_pcib_inbound
	mov	x0, x19
	mov	w1, #2
	mov	w2, #-1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_fsl_pcib_inbound
Lloh10:
	adrp	x8, _PIWAR_TRGT_LOCAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIWAR_TRGT_LOCAL@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _Maxmem@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Maxmem@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_ptoa
	mov	x4, x0
	mov	x0, x19
	mov	w1, #3
	mov	x2, x20
	mov	w3, #0
	mov	w5, #0
	bl	_fsl_pcib_inbound
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x9, _PIWAR_TRGT_CCSR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PIWAR_TRGT_CCSR@GOTPAGEOFF]
Lloh18:
	adrp	x10, _ccsrbar_pa@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ccsrbar_pa@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
Lloh21:
	ldr	w3, [x10]
Lloh22:
	adrp	x9, _ccsrbar_size@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ccsrbar_size@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x9]
	mov	x0, x19
	cmp	w8, #1
	b.le	LBB0_16
; %bb.15:
	mov	w1, #8
	b	LBB0_17
LBB0_16:
	mov	w1, #1
LBB0_17:
	mov	x5, x3
	bl	_fsl_pcib_inbound
	mov	w23, #0
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	mov	x23, x0
	str	x24, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not retrieve PCI LAW target info\n"

	.comm	_OFW_PCI_PHYS_HI_SPACEMASK,4,2  ; @OFW_PCI_PHYS_HI_SPACEMASK
	.comm	_SYS_RES_IOPORT,4,2             ; @SYS_RES_IOPORT
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"Unknown range type %#x\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not program LAW for range %d\n"

	.comm	_PIWAR_TRGT_LOCAL,4,2           ; @PIWAR_TRGT_LOCAL
	.comm	_Maxmem,4,2                     ; @Maxmem
	.comm	_PIWAR_TRGT_CCSR,4,2            ; @PIWAR_TRGT_CCSR
	.comm	_ccsrbar_pa,4,2                 ; @ccsrbar_pa
	.comm	_ccsrbar_size,4,2               ; @ccsrbar_size
	.no_dead_strip	_fsl_pcib_decode_win
.subsections_via_symbols
