	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3_integrator_init
_v3_integrator_init:                    ## @v3_integrator_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_syscon_regmap_lookup_by_compatible
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movl	16(%rbx), %edi
	movq	_INTEGRATOR_SC_PCI_OFFSET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movq	_INTEGRATOR_SC_PCI_ENABLE@GOTPCREL(%rip), %r14
	movq	_INTEGRATOR_SC_PCI_INTCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	callq	_regmap_write
	movl	(%r14), %eax
	testl	%eax, -20(%rbp)
	jne	LBB0_6
## %bb.3:
	movl	$230, %edi
	callq	_msleep
	movq	_V3_LB_IO_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$25088, %edi                    ## imm = 0x6200
	callq	_writel
	movq	_V3_MAIL_DATA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	$170, %edi
	callq	_writeb
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$4, %rsi
	movl	$85, %edi
	callq	_writeb
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readb
	cmpl	$170, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readb
	cmpl	$85, %eax
	jne	LBB0_4
LBB0_6:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arm,integrator-ap-syscon"

L_.str.1:                               ## @.str.1
	.asciz	"no syscon\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_INTEGRATOR_SC_PCI_OFFSET,4,2   ## @INTEGRATOR_SC_PCI_OFFSET
	.comm	_INTEGRATOR_SC_PCI_ENABLE,4,2   ## @INTEGRATOR_SC_PCI_ENABLE
	.comm	_INTEGRATOR_SC_PCI_INTCLR,4,2   ## @INTEGRATOR_SC_PCI_INTCLR
	.comm	_V3_LB_IO_BASE,8,3              ## @V3_LB_IO_BASE
	.comm	_V3_MAIL_DATA,8,3               ## @V3_MAIL_DATA
L_.str.2:                               ## @.str.2
	.asciz	"initialized PCI V3 Integrator/AP integration\n"

	.no_dead_strip	_v3_integrator_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3_integrator_init
_v3_integrator_init:                    ; @v3_integrator_init
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_compatible
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x20, _INTEGRATOR_SC_PCI_OFFSET@GOTPAGE
Lloh8:
	ldr	x20, [x20, _INTEGRATOR_SC_PCI_OFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x21, _INTEGRATOR_SC_PCI_ENABLE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _INTEGRATOR_SC_PCI_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _INTEGRATOR_SC_PCI_INTCLR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INTEGRATOR_SC_PCI_INTCLR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #230
	bl	_msleep
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _V3_LB_IO_BASE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V3_LB_IO_BASE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #25088
	bl	_writel
Lloh17:
	adrp	x20, _V3_MAIL_DATA@GOTPAGE
Lloh18:
	ldr	x20, [x20, _V3_MAIL_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #170
	bl	_writeb
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x1, x8, #4
	mov	w0, #85
	bl	_writeb
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
	cmp	w0, #170
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
	cmp	w0, #85
	b.ne	LBB0_4
LBB0_6:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arm,integrator-ap-syscon"

l_.str.1:                               ; @.str.1
	.asciz	"no syscon\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_INTEGRATOR_SC_PCI_OFFSET,4,2   ; @INTEGRATOR_SC_PCI_OFFSET
	.comm	_INTEGRATOR_SC_PCI_ENABLE,4,2   ; @INTEGRATOR_SC_PCI_ENABLE
	.comm	_INTEGRATOR_SC_PCI_INTCLR,4,2   ; @INTEGRATOR_SC_PCI_INTCLR
	.comm	_V3_LB_IO_BASE,8,3              ; @V3_LB_IO_BASE
	.comm	_V3_MAIL_DATA,8,3               ; @V3_MAIL_DATA
l_.str.2:                               ; @.str.2
	.asciz	"initialized PCI V3 Integrator/AP integration\n"

	.no_dead_strip	_v3_integrator_init
.subsections_via_symbols
