	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx6_pcie_configure_type
_imx6_pcie_configure_type:              ## @imx6_pcie_configure_type
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_IMX8MQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$1, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	_IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_IMX6Q_GPR12_DEVICE_TYPE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	_PCI_EXP_TYPE_ROOT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FIELD_PREP
	movl	4(%r14), %edi
	movq	_IOMUXC_GPR12@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX8MQ,8,3                     ## @IMX8MQ
	.comm	_IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE,4,2 ## @IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE
	.comm	_PCI_EXP_TYPE_ROOT_PORT,4,2     ## @PCI_EXP_TYPE_ROOT_PORT
	.comm	_IMX6Q_GPR12_DEVICE_TYPE,4,2    ## @IMX6Q_GPR12_DEVICE_TYPE
	.comm	_IOMUXC_GPR12,4,2               ## @IOMUXC_GPR12
	.no_dead_strip	_imx6_pcie_configure_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx6_pcie_configure_type
_imx6_pcie_configure_type:              ; @imx6_pcie_configure_type
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IMX8MQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMX8MQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _IMX6Q_GPR12_DEVICE_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMX6Q_GPR12_DEVICE_TYPE@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_FIELD_PREP
	mov	x3, x0
Lloh10:
	adrp	x8, _IOMUXC_GPR12@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IOMUXC_GPR12@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX8MQ,8,3                     ; @IMX8MQ
	.comm	_IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE,4,2 ; @IMX8MQ_GPR12_PCIE2_CTRL_DEVICE_TYPE
	.comm	_PCI_EXP_TYPE_ROOT_PORT,4,2     ; @PCI_EXP_TYPE_ROOT_PORT
	.comm	_IMX6Q_GPR12_DEVICE_TYPE,4,2    ; @IMX6Q_GPR12_DEVICE_TYPE
	.comm	_IOMUXC_GPR12,4,2               ; @IOMUXC_GPR12
	.no_dead_strip	_imx6_pcie_configure_type
.subsections_via_symbols
