	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_p2pdma_setup
_pci_p2pdma_setup:                      ## @pci_p2pdma_setup
	.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	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_xa_init
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_to_node
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_gen_pool_create
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_pci_p2pdma_release@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r15, 8(%r14)
	movq	_p2pmem_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	$0, 8(%r14)
	movl	(%r15), %edi
	callq	_gen_pool_destroy
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	jmp	LBB0_9
LBB0_3:
	negl	%ebx
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_kfree
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_pci_p2pdma_release,4,2         ## @pci_p2pdma_release
	.comm	_p2pmem_group,4,2               ## @p2pmem_group
	.no_dead_strip	_pci_p2pdma_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_p2pdma_setup
_pci_p2pdma_setup:                      ; @pci_p2pdma_setup
	.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, x0
Lloh0:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w22, [x21]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, x0, #4
	bl	_xa_init
Lloh5:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_dev_to_node
	mov	x1, x0
	mov	x0, x21
	bl	_gen_pool_create
	str	w0, [x20]
	cbz	w0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _pci_p2pdma_release@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pci_p2pdma_release@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	str	x20, [x19, #8]
Lloh11:
	adrp	x1, _p2pmem_group@GOTPAGE
Lloh12:
	ldr	x1, [x1, _p2pmem_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_4:
	str	xzr, [x19, #8]
	ldr	w0, [x20]
	bl	_gen_pool_destroy
	b	LBB0_7
LBB0_5:
	ldr	w8, [x21]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	neg	w21, w22
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_pci_p2pdma_release,4,2         ; @pci_p2pdma_release
	.comm	_p2pmem_group,4,2               ; @p2pmem_group
	.no_dead_strip	_pci_p2pdma_setup
.subsections_via_symbols
