	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_pcie_ep_unmap_addr
_cdns_pcie_ep_unmap_addr:               ## @cdns_pcie_ep_unmap_addr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_epc_get_drvdata
	movq	%rax, %r14
	movl	(%rax), %ecx
	leal	-1(%rcx), %eax
	xorl	%ebx, %ebx
	cmpl	$2, %ecx
	jl	LBB0_4
## %bb.1:
	movq	8(%r14), %rcx
	movl	%eax, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rcx,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	cmpl	%eax, %ebx
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	20(%r14), %rdi
	movl	%ebx, %esi
	callq	_cdns_pcie_reset_outbound_region
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	movq	$0, (%rax,%rcx,8)
	addq	$16, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cdns_pcie_ep_unmap_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_pcie_ep_unmap_addr
_cdns_pcie_ep_unmap_addr:               ; @cdns_pcie_ep_unmap_addr
	.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	x21, x2
	bl	_epc_get_drvdata
	mov	x19, x0
	ldr	w9, [x0], #20
	sub	w8, w9, #1
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	cmp	x10, x21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	cmp	w20, w8
	b.ne	LBB0_7
LBB0_6:
	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
	ret
LBB0_7:
	mov	x1, x20
	bl	_cdns_pcie_reset_outbound_region
	ldr	x8, [x19, #8]
	str	xzr, [x8, w20, uxtw #3]
	add	x1, x19, #16
	mov	x0, x20
	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	_clear_bit
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cdns_pcie_ep_unmap_addr
.subsections_via_symbols
