	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function iproc_pcie_rev_init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_iproc_pcie_rev_init:                   ## @iproc_pcie_rev_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	72(%rdi), %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_iproc_pcie_reg_paxc_v2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movdqu	%xmm0, 8(%r15)
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_iproc_pcie_reg_paxc@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r15)
	movl	$1, 8(%r15)
	jmp	LBB0_11
LBB0_4:
	movq	_iproc_pcie_reg_paxb_v2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r15)
	cmpl	$0, 64(%r15)
	je	LBB0_6
## %bb.5:
	movq	_paxb_v2_ob_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, 48(%r15)
LBB0_6:
	movq	_paxb_v2_ib_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, 40(%r15)
	movq	(%r12), %rax
	movq	%rax, 32(%r15)
	movl	$1, 12(%r15)
	movq	_CFG_RETRY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_11
LBB0_10:
	movq	_iproc_pcie_reg_paxb_bcma@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_11
LBB0_2:
	movq	_iproc_pcie_reg_paxb@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$1, 4(%r15)
	cmpl	$0, 64(%r15)
	je	LBB0_11
## %bb.3:
	movq	_paxb_ob_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 56(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, 48(%r15)
LBB0_11:
	movq	_IPROC_PCIE_MAX_NUM_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	cmpl	$128, (%r15)
	movq	%rbx, %rcx
	jne	LBB0_16
## %bb.15:
	movq	_IPROC_PCIE_REG_INVALID@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movl	(%r12), %edx
	cmpq	$2, %rdx
	jb	LBB0_34
## %bb.17:
	leaq	-1(%rdx), %r8
	movl	$1, %esi
	cmpq	$4, %r8
	jb	LBB0_23
## %bb.18:
	leaq	8(%rax), %r10
	leaq	(%rax,%rdx,8), %rdi
	leaq	8(%rbx), %r9
	leaq	(%rbx,%rdx,8), %rcx
	cmpq	%rcx, %r10
	setb	%r10b
	cmpq	%rdi, %r9
	setb	%r11b
	movq	_IPROC_PCIE_REG_INVALID@GOTPCREL(%rip), %r9
	cmpq	%r9, %rax
	setb	%cl
	cmpq	%r9, %rdi
	seta	%dil
	testb	%r11b, %r10b
	jne	LBB0_23
## %bb.19:
	andb	%dil, %cl
	jne	LBB0_23
## %bb.20:
	movq	%r8, %rdi
	andq	$-4, %rdi
	leaq	1(%rdi), %rsi
	movq	(%r9), %xmm0                    ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm2               ## xmm2 = xmm0[0,1,0,1]
	xorl	%ecx, %ecx
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	8(%rbx,%rcx,8), %xmm4
	movdqu	24(%rbx,%rcx,8), %xmm5
	movdqa	%xmm4, %xmm0
	pcmpeqq	%xmm3, %xmm0
	movdqa	%xmm5, %xmm1
	pcmpeqq	%xmm3, %xmm1
	blendvpd	%xmm0, %xmm2, %xmm4
	movdqa	%xmm1, %xmm0
	blendvpd	%xmm0, %xmm2, %xmm5
	movupd	%xmm4, 8(%rax,%rcx,8)
	movupd	%xmm5, 24(%rax,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_21
## %bb.22:
	xorl	%ecx, %ecx
	cmpq	%rdi, %r8
	je	LBB0_35
LBB0_23:
	movq	%rsi, %rcx
	notq	%rcx
	testb	$1, %dl
	jne	LBB0_27
## %bb.24:
	movq	(%rbx,%rsi,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_26
## %bb.25:
	movq	_IPROC_PCIE_REG_INVALID@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
LBB0_26:
	movq	%rdi, (%rax,%rsi,8)
	incq	%rsi
LBB0_27:
	addq	%rdx, %rcx
	jne	LBB0_28
LBB0_34:
	xorl	%ecx, %ecx
	jmp	LBB0_35
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_35:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_IPROC_PCIE_REG_INVALID@GOTPCREL(%rip), %rcx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rdi, 8(%rax,%rsi,8)
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_34
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rsi,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rcx), %rdi
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%rdi, (%rax,%rsi,8)
	movq	8(%rbx,%rsi,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rcx), %rdi
	jmp	LBB0_33
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_iproc_pcie_reg_paxb_bcma,8,3   ## @iproc_pcie_reg_paxb_bcma
	.comm	_iproc_pcie_reg_paxb,8,3        ## @iproc_pcie_reg_paxb
	.comm	_paxb_ob_map,8,3                ## @paxb_ob_map
	.comm	_iproc_pcie_reg_paxb_v2,8,3     ## @iproc_pcie_reg_paxb_v2
	.comm	_paxb_v2_ob_map,8,3             ## @paxb_v2_ob_map
	.comm	_paxb_v2_ib_map,8,3             ## @paxb_v2_ib_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reads of config registers that contain %#x return incorrect data\n"

	.comm	_CFG_RETRY_STATUS,4,2           ## @CFG_RETRY_STATUS
	.comm	_iproc_pcie_reg_paxc,8,3        ## @iproc_pcie_reg_paxc
	.comm	_iproc_pcie_reg_paxc_v2,8,3     ## @iproc_pcie_reg_paxc_v2
L_.str.1:                               ## @.str.1
	.asciz	"incompatible iProc PCIe interface\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPROC_PCIE_MAX_NUM_REG,4,2     ## @IPROC_PCIE_MAX_NUM_REG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPROC_PCIE_REG_INVALID,8,3     ## @IPROC_PCIE_REG_INVALID
	.no_dead_strip	_iproc_pcie_rev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_rev_init
_iproc_pcie_rev_init:                   ; @iproc_pcie_rev_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0, #72]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _iproc_pcie_reg_paxc_v2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iproc_pcie_reg_paxc_v2@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	movi.4s	v0, #1
	stur	q0, [x19, #8]
	b	LBB0_11
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
Lloh9:
	adrp	x8, _iproc_pcie_reg_paxc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iproc_pcie_reg_paxc@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	mov	w8, #1
	str	w8, [x19, #8]
	movi.2s	v0, #1
	str	d0, [x19, #16]
	b	LBB0_11
LBB0_5:
Lloh12:
	adrp	x8, _iproc_pcie_reg_paxb_v2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iproc_pcie_reg_paxb_v2@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _paxb_v2_ob_map@GOTPAGE
Lloh16:
	ldr	x8, [x8, _paxb_v2_ob_map@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	str	x0, [x19, #48]
LBB0_7:
Lloh18:
	adrp	x22, _paxb_v2_ib_map@GOTPAGE
Lloh19:
	ldr	x22, [x22, _paxb_v2_ib_map@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	ldr	x8, [x22]
	stp	x8, x0, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #12]
Lloh20:
	adrp	x8, _CFG_RETRY_STATUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CFG_RETRY_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_11
LBB0_8:
Lloh25:
	adrp	x8, _iproc_pcie_reg_paxb_bcma@GOTPAGE
Lloh26:
	ldr	x8, [x8, _iproc_pcie_reg_paxb_bcma@GOTPAGEOFF]
Lloh27:
	ldr	x21, [x8]
	b	LBB0_11
LBB0_9:
Lloh28:
	adrp	x8, _iproc_pcie_reg_paxb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _iproc_pcie_reg_paxb@GOTPAGEOFF]
Lloh30:
	ldr	x21, [x8]
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_11
; %bb.10:
Lloh31:
	adrp	x8, _paxb_ob_map@GOTPAGE
Lloh32:
	ldr	x8, [x8, _paxb_ob_map@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	str	x0, [x19, #56]
	bl	_ARRAY_SIZE
	str	x0, [x19, #48]
LBB0_11:
Lloh34:
	adrp	x22, _IPROC_PCIE_MAX_NUM_REG@GOTPAGE
Lloh35:
	ldr	x22, [x22, _IPROC_PCIE_MAX_NUM_REG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh36:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w9, [x19]
Lloh39:
	adrp	x8, _IPROC_PCIE_REG_INVALID@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IPROC_PCIE_REG_INVALID@GOTPAGEOFF]
	cmp	w9, #128
	csel	x9, x8, x21, eq
	ldr	x9, [x9]
	str	x9, [x0]
	ldr	w9, [x22]
	cmp	w9, #2
	b.lo	LBB0_24
; %bb.13:
	sub	x10, x9, #1
	cmp	x10, #8
	b.hs	LBB0_17
; %bb.14:
	mov	w11, #1
	b	LBB0_22
LBB0_15:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_17:
	add	x11, x0, #8
	lsl	x12, x9, #3
	add	x13, x21, #8
	add	x14, x21, x12
	cmp	x0, x8
	add	x15, x0, x12
	ccmp	x15, x8, #0, lo
	cset	w12, hi
	cmp	x13, x15
	ccmp	x11, x14, #2, lo
	mov	w11, #1
	b.lo	LBB0_22
; %bb.18:
	tbnz	w12, #0, LBB0_22
; %bb.19:
	and	x12, x10, #0xfffffffffffffff8
	orr	x11, x12, #0x1
	ld1r.2d	{ v0 }, [x8]
	add	x13, x0, #40
	add	x14, x21, #40
	mov	x15, x12
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x14, #-32]
	ldp	q3, q4, [x14], #64
	cmeq.2d	v5, v1, #0
	cmeq.2d	v6, v2, #0
	cmeq.2d	v7, v3, #0
	ldr	d16, [x8]
	dup.2d	v16, v16[0]
	cmeq.2d	v17, v4, #0
	bit.16b	v1, v0, v5
	bit.16b	v2, v0, v6
	bit.16b	v3, v0, v7
	bit.16b	v4, v16, v17
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x15, x15, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x12
	b.eq	LBB0_24
LBB0_22:
	lsl	x12, x11, #3
	add	x10, x21, x12
	add	x12, x0, x12
	sub	x9, x9, x11
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x13, [x8]
	cmp	x11, #0
	csel	x11, x13, x11, eq
	str	x11, [x12], #8
	subs	x9, x9, #1
	b.ne	LBB0_23
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_iproc_pcie_reg_paxb_bcma,8,3   ; @iproc_pcie_reg_paxb_bcma
	.comm	_iproc_pcie_reg_paxb,8,3        ; @iproc_pcie_reg_paxb
	.comm	_paxb_ob_map,8,3                ; @paxb_ob_map
	.comm	_iproc_pcie_reg_paxb_v2,8,3     ; @iproc_pcie_reg_paxb_v2
	.comm	_paxb_v2_ob_map,8,3             ; @paxb_v2_ob_map
	.comm	_paxb_v2_ib_map,8,3             ; @paxb_v2_ib_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reads of config registers that contain %#x return incorrect data\n"

	.comm	_CFG_RETRY_STATUS,4,2           ; @CFG_RETRY_STATUS
	.comm	_iproc_pcie_reg_paxc,8,3        ; @iproc_pcie_reg_paxc
	.comm	_iproc_pcie_reg_paxc_v2,8,3     ; @iproc_pcie_reg_paxc_v2
l_.str.1:                               ; @.str.1
	.asciz	"incompatible iProc PCIe interface\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPROC_PCIE_MAX_NUM_REG,4,2     ; @IPROC_PCIE_MAX_NUM_REG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPROC_PCIE_REG_INVALID,8,3     ; @IPROC_PCIE_REG_INVALID
	.no_dead_strip	_iproc_pcie_rev_init
.subsections_via_symbols
