	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_pcie_ep_outbound_atu
_dw_pcie_ep_outbound_atu:               ## @dw_pcie_ep_outbound_atu
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_dw_pcie_from_ep
	movq	%rax, %r15
	movl	16(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_find_first_zero_bit
	cmpq	(%rbx), %rax
	jae	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_PCIE_ATU_TYPE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_dw_pcie_prog_outbound_atu
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	callq	_set_bit
	movq	8(%rbx), %rax
	movl	%r14d, (%rax,%r13,4)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No free outbound window\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCIE_ATU_TYPE_MEM,4,2          ## @PCIE_ATU_TYPE_MEM
	.no_dead_strip	_dw_pcie_ep_outbound_atu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_pcie_ep_outbound_atu
_dw_pcie_ep_outbound_atu:               ; @dw_pcie_ep_outbound_atu
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_to_dw_pcie_from_ep
	mov	x24, x0
	ldr	w0, [x20, #16]
	ldr	x1, [x20]
	bl	_find_first_zero_bit
	ldr	x8, [x20]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _PCIE_ATU_TYPE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_ATU_TYPE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x3, x19
	mov	x4, x22
	mov	x5, x21
	bl	_dw_pcie_prog_outbound_atu
	ldr	w1, [x20, #16]
	mov	x0, x23
	bl	_set_bit
	mov	w0, #0
	ldr	x8, [x20, #8]
	str	w19, [x8, x23, lsl #2]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No free outbound window\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCIE_ATU_TYPE_MEM,4,2          ; @PCIE_ATU_TYPE_MEM
	.no_dead_strip	_dw_pcie_ep_outbound_atu
.subsections_via_symbols
