	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_pxp
_bnx2x_init_pxp:                        ## @bnx2x_init_pxp
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_pcie_capability_read_word
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	-36(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	-36(%rbp), %r15d
	movq	_PCI_EXP_DEVCTL_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edx
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	(%r14), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_PCI_EXP_DEVCTL_READRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	sarl	$12, %esi
LBB0_3:
	andl	%r15d, %ebx
	sarl	$5, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bnx2x_init_pxp_arb
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read 0x%x from devctl\n"

	.comm	_PCI_EXP_DEVCTL_PAYLOAD,4,2     ## @PCI_EXP_DEVCTL_PAYLOAD
	.comm	_PCI_EXP_DEVCTL_READRQ,4,2      ## @PCI_EXP_DEVCTL_READRQ
L_.str.1:                               ## @.str.1
	.asciz	"force read order to %d\n"

	.no_dead_strip	_bnx2x_init_pxp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_pxp
_bnx2x_init_pxp:                        ; @bnx2x_init_pxp
	.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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pcie_capability_read_word
Lloh3:
	adrp	x22, _NETIF_MSG_HW@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NETIF_MSG_HW@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [sp, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w20, [sp, #12]
Lloh7:
	adrp	x8, _PCI_EXP_DEVCTL_PAYLOAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_EXP_DEVCTL_PAYLOAD@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	ldr	w2, [x19]
	cmn	w2, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w1, [x19]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _PCI_EXP_DEVCTL_READRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EXP_DEVCTL_READRQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w20
	asr	w1, w8, #12
LBB0_3:
	and	w8, w21, w20
	asr	w2, w8, #5
	mov	x0, x19
	bl	_bnx2x_init_pxp_arb
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read 0x%x from devctl\n"

	.comm	_PCI_EXP_DEVCTL_PAYLOAD,4,2     ; @PCI_EXP_DEVCTL_PAYLOAD
	.comm	_PCI_EXP_DEVCTL_READRQ,4,2      ; @PCI_EXP_DEVCTL_READRQ
l_.str.1:                               ; @.str.1
	.asciz	"force read order to %d\n"

	.no_dead_strip	_bnx2x_init_pxp
.subsections_via_symbols
