	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_hw_pci_read_cfg4            ## -- Begin function t4_hw_pci_read_cfg4
	.p2align	4, 0x90
_t4_hw_pci_read_cfg4:                   ## @t4_hw_pci_read_cfg4
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_FUNCTION_V
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_REGISTER_V
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %edi
	callq	_CHELSIO_CHIP_VERSION
	movq	_CHELSIO_T5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.2:
	movq	_T6_ENABLE_F@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ENABLE_F@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movl	(%r15), %edi
	callq	_is_t4
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_LOCALCFG_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	orl	%ecx, %ebx
	movq	_PCIE_CFG_SPACE_REQ_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_t4_write_reg
	movq	_PCIE_CFG_SPACE_DATA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, (%r14)
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_write_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHELSIO_T5,8,3                 ## @CHELSIO_T5
	.comm	_ENABLE_F,4,2                   ## @ENABLE_F
	.comm	_T6_ENABLE_F,4,2                ## @T6_ENABLE_F
	.comm	_LOCALCFG_F,4,2                 ## @LOCALCFG_F
	.comm	_PCIE_CFG_SPACE_REQ_A,4,2       ## @PCIE_CFG_SPACE_REQ_A
	.comm	_PCIE_CFG_SPACE_DATA_A,4,2      ## @PCIE_CFG_SPACE_DATA_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_hw_pci_read_cfg4            ; -- Begin function t4_hw_pci_read_cfg4
	.p2align	2
_t4_hw_pci_read_cfg4:                   ; @t4_hw_pci_read_cfg4
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_FUNCTION_V
	mov	x22, x0
	mov	x0, x20
	bl	_REGISTER_V
	orr	w20, w0, w22
	ldr	w0, [x21]
	bl	_CHELSIO_CHIP_VERSION
Lloh0:
	adrp	x8, _CHELSIO_T5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHELSIO_T5@GOTPAGEOFF]
Lloh2:
	adrp	x9, _T6_ENABLE_F@GOTPAGE
Lloh3:
	ldr	x9, [x9, _T6_ENABLE_F@GOTPAGEOFF]
Lloh4:
	adrp	x10, _ENABLE_F@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ENABLE_F@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x8, x9, x10, gt
	ldr	w8, [x8]
	orr	w20, w20, w8
	ldr	w0, [x21]
	bl	_is_t4
Lloh7:
	adrp	x8, _LOCALCFG_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOCALCFG_F@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w2, w20, w8
Lloh10:
	adrp	x20, _PCIE_CFG_SPACE_REQ_A@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PCIE_CFG_SPACE_REQ_A@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_t4_write_reg
Lloh12:
	adrp	x8, _PCIE_CFG_SPACE_DATA_A@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIE_CFG_SPACE_DATA_A@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_t4_read_reg
	str	w0, [x19]
	ldr	w1, [x20]
	mov	x0, x21
	mov	w2, #0
	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
	b	_t4_write_reg
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CHELSIO_T5,8,3                 ; @CHELSIO_T5
	.comm	_ENABLE_F,4,2                   ; @ENABLE_F
	.comm	_T6_ENABLE_F,4,2                ; @T6_ENABLE_F
	.comm	_LOCALCFG_F,4,2                 ; @LOCALCFG_F
	.comm	_PCIE_CFG_SPACE_REQ_A,4,2       ; @PCIE_CFG_SPACE_REQ_A
	.comm	_PCIE_CFG_SPACE_DATA_A,4,2      ; @PCIE_CFG_SPACE_DATA_A
.subsections_via_symbols
