	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_pcib_err_init
_fsl_pcib_err_init:                     ## @fsl_pcib_err_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
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	_PCIR_SECSTAT_1@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$2, %r9d
	callq	_fsl_pcib_cfgread
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %r8
	movl	$2, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$65535, %r9d                    ## imm = 0xFFFF
	callq	_fsl_pcib_cfgwrite
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_REG_PEX_MES_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %ecx
	callq	_bus_space_write_4
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_REG_PEX_MES_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %ecx
	callq	_bus_space_write_4
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_REG_PEX_ERR_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %ecx
	callq	_bus_space_write_4
	movq	_PCIER_DEVICE_STA@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	addq	(%rbx), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$2, %r9d
	callq	_fsl_pcib_cfgread
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %r8
	addq	(%rbx), %r8
	movl	$2, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$65535, %r9d                    ## imm = 0xFFFF
	callq	_fsl_pcib_cfgwrite
LBB0_5:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_REG_PEX_ERR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$12582656, %ecx                 ## imm = 0xBFFF00
	callq	_bus_space_write_4
	movq	_PCIER_DEVICE_CTL@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	addq	(%rbx), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$4, %r9d
	callq	_fsl_pcib_cfgread
	movq	_PCIEM_CTL_URR_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PCIEM_CTL_FER_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rcx), %r9d
	movq	_PCIEM_CTL_NFER_ENABLE@GOTPCREL(%rip), %rcx
	orl	%eax, %r9d
	orl	(%rcx), %r9d
	movq	(%r14), %r8
	addq	(%rbx), %r8
	movl	$4, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_fsl_pcib_cfgwrite
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_SECSTAT_1,8,3             ## @PCIR_SECSTAT_1
	.comm	_REG_PEX_MES_IER,4,2            ## @REG_PEX_MES_IER
	.comm	_REG_PEX_MES_DR,4,2             ## @REG_PEX_MES_DR
	.comm	_REG_PEX_ERR_DR,4,2             ## @REG_PEX_ERR_DR
	.comm	_PCIER_DEVICE_STA,8,3           ## @PCIER_DEVICE_STA
	.comm	_REG_PEX_ERR_EN,4,2             ## @REG_PEX_ERR_EN
	.comm	_PCIER_DEVICE_CTL,8,3           ## @PCIER_DEVICE_CTL
	.comm	_PCIEM_CTL_URR_ENABLE,4,2       ## @PCIEM_CTL_URR_ENABLE
	.comm	_PCIEM_CTL_FER_ENABLE,4,2       ## @PCIEM_CTL_FER_ENABLE
	.comm	_PCIEM_CTL_NFER_ENABLE,4,2      ## @PCIEM_CTL_NFER_ENABLE
	.no_dead_strip	_fsl_pcib_err_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_pcib_err_init
_fsl_pcib_err_init:                     ; @fsl_pcib_err_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x20, _PCIR_SECSTAT_1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCIR_SECSTAT_1@GOTPAGEOFF]
	ldr	x4, [x20]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #2
	bl	_fsl_pcib_cfgread
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x4, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #65535
	mov	w6, #2
	bl	_fsl_pcib_cfgwrite
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldp	w1, w0, [x19, #8]
Lloh2:
	adrp	x8, _REG_PEX_MES_IER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_PEX_MES_IER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #-1
	bl	_bus_space_write_4
	ldp	w1, w0, [x19, #8]
Lloh5:
	adrp	x8, _REG_PEX_MES_DR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_PEX_MES_DR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #-1
	bl	_bus_space_write_4
	ldp	w1, w0, [x19, #8]
Lloh8:
	adrp	x8, _REG_PEX_ERR_DR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_PEX_ERR_DR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #-1
	bl	_bus_space_write_4
	ldr	x8, [x19]
Lloh11:
	adrp	x20, _PCIER_DEVICE_STA@GOTPAGE
Lloh12:
	ldr	x20, [x20, _PCIER_DEVICE_STA@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x4, x9, x8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #2
	bl	_fsl_pcib_cfgread
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x4, x9, x8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #65535
	mov	w6, #2
	bl	_fsl_pcib_cfgwrite
LBB0_5:
	ldp	w1, w0, [x19, #8]
Lloh13:
	adrp	x8, _REG_PEX_ERR_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REG_PEX_ERR_EN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w3, #65280
	movk	w3, #191, lsl #16
	bl	_bus_space_write_4
	ldr	x8, [x19]
Lloh16:
	adrp	x20, _PCIER_DEVICE_CTL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _PCIER_DEVICE_CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x4, x9, x8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w5, #4
	bl	_fsl_pcib_cfgread
Lloh18:
	adrp	x8, _PCIEM_CTL_URR_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCIEM_CTL_URR_ENABLE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _PCIEM_CTL_FER_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PCIEM_CTL_FER_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _PCIEM_CTL_NFER_ENABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PCIEM_CTL_NFER_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w5, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x4, x9, x8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w6, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fsl_pcib_cfgwrite
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_SECSTAT_1,8,3             ; @PCIR_SECSTAT_1
	.comm	_REG_PEX_MES_IER,4,2            ; @REG_PEX_MES_IER
	.comm	_REG_PEX_MES_DR,4,2             ; @REG_PEX_MES_DR
	.comm	_REG_PEX_ERR_DR,4,2             ; @REG_PEX_ERR_DR
	.comm	_PCIER_DEVICE_STA,8,3           ; @PCIER_DEVICE_STA
	.comm	_REG_PEX_ERR_EN,4,2             ; @REG_PEX_ERR_EN
	.comm	_PCIER_DEVICE_CTL,8,3           ; @PCIER_DEVICE_CTL
	.comm	_PCIEM_CTL_URR_ENABLE,4,2       ; @PCIEM_CTL_URR_ENABLE
	.comm	_PCIEM_CTL_FER_ENABLE,4,2       ; @PCIEM_CTL_FER_ENABLE
	.comm	_PCIEM_CTL_NFER_ENABLE,4,2      ; @PCIEM_CTL_NFER_ENABLE
	.no_dead_strip	_fsl_pcib_err_init
.subsections_via_symbols
