	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _altera_pcie_cfg_write
__altera_pcie_cfg_write:                ## @_altera_pcie_cfg_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r10d
	cmpq	%rsi, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movl	%r10d, %edx
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movl	%r10d, %eax
	andl	$3, %eax
	leal	(,%rax,8), %ecx
	cmpl	$2, %r8d
	je	LBB0_5
## %bb.3:
	movl	$15, %r11d
	cmpl	$1, %r8d
	jne	LBB0_7
## %bb.4:
	movzbl	%r9b, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	movl	$1, %r11d
	jmp	LBB0_6
LBB0_5:
	movzwl	%r9w, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	movl	$3, %r11d
LBB0_6:
	movl	%eax, %ecx
	shll	%cl, %r11d
LBB0_7:
	movl	%r11d, %r8d
	movq	_DWORD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%r10d, %ecx
	popq	%rbp
	jmp	_tlp_cfg_dword_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DWORD_MASK,4,2                 ## @DWORD_MASK
	.no_dead_strip	__altera_pcie_cfg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _altera_pcie_cfg_write
__altera_pcie_cfg_write:                ; @_altera_pcie_cfg_write
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x6, [x8]
	cbz	x6, LBB0_3
; %bb.2:
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	br	x6
LBB0_3:
	and	w8, w3, #0x3
	lsl	w9, w8, #3
	mov	w10, #15
	and	w11, w5, #0xffff
	lsl	w11, w11, w9
	mov	w12, #3
	lsl	w12, w12, w8
	and	w13, w5, #0xff
	lsl	w9, w13, w9
	mov	w13, #1
	lsl	w8, w13, w8
	cmp	w4, #1
	csel	w9, w5, w9, ne
	csel	w8, w10, w8, ne
	cmp	w4, #2
	csel	w5, w11, w9, eq
	csel	w4, w12, w8, eq
Lloh0:
	adrp	x8, _DWORD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DWORD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w3, w3, w8
	b	_tlp_cfg_dword_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DWORD_MASK,4,2                 ; @DWORD_MASK
	.no_dead_strip	__altera_pcie_cfg_write
.subsections_via_symbols
