	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_pcicore_polarity_workaround
_bcma_pcicore_polarity_workaround:      ## @bcma_pcicore_polarity_workaround
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BCMA_CORE_PCI_PLP_STATUSREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bcma_pcie_read
	movq	_BCMA_CORE_PCI_PLP_POLARITYINV_STAT@GOTPCREL(%rip), %rdx
	movq	_BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE@GOTPCREL(%rip), %rcx
	andl	(%rdx), %eax
	je	LBB0_2
## %bb.1:
	movq	_BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CORE_PCI_PLP_STATUSREG,4,2 ## @BCMA_CORE_PCI_PLP_STATUSREG
	.comm	_BCMA_CORE_PCI_PLP_POLARITYINV_STAT,4,2 ## @BCMA_CORE_PCI_PLP_POLARITYINV_STAT
	.comm	_BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE,4,2 ## @BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE
	.comm	_BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY,4,2 ## @BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY
	.no_dead_strip	_bcma_pcicore_polarity_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_pcicore_polarity_workaround
_bcma_pcicore_polarity_workaround:      ; @bcma_pcicore_polarity_workaround
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _BCMA_CORE_PCI_PLP_STATUSREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CORE_PCI_PLP_STATUSREG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bcma_pcie_read
Lloh3:
	adrp	x8, _BCMA_CORE_PCI_PLP_POLARITYINV_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CORE_PCI_PLP_POLARITYINV_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	tst	w8, w0
	csel	w8, wzr, w10, eq
	orr	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CORE_PCI_PLP_STATUSREG,4,2 ; @BCMA_CORE_PCI_PLP_STATUSREG
	.comm	_BCMA_CORE_PCI_PLP_POLARITYINV_STAT,4,2 ; @BCMA_CORE_PCI_PLP_POLARITYINV_STAT
	.comm	_BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE,4,2 ; @BCMA_CORE_PCI_SERDES_RX_CTRL_FORCE
	.comm	_BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY,4,2 ; @BCMA_CORE_PCI_SERDES_RX_CTRL_POLARITY
	.no_dead_strip	_bcma_pcicore_polarity_workaround
.subsections_via_symbols
