	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_p2pdma_enable_store        ## -- Begin function pci_p2pdma_enable_store
	.p2align	4, 0x90
_pci_p2pdma_enable_store:               ## @pci_p2pdma_enable_store
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_pci_bus_type@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_bus_find_device_by_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$1, (%r12)
	movq	%rax, %rdi
	callq	_to_pci_dev
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_pci_has_p2pmem
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_pci_err
	movq	(%r15), %rdi
	callq	_pci_dev_put
	jmp	LBB0_7
LBB0_3:
	movb	(%r14), %al
	andb	$-2, %al
	cmpb	$48, %al
	jne	LBB0_5
## %bb.4:
	movsbl	1(%r14), %edi
	callq	_iscntrl
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strtobool
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pr_err
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_bus_type,4,2               ## @pci_bus_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI device has no peer-to-peer memory: %s\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"No such PCI device: %.*s\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_p2pdma_enable_store        ; -- Begin function pci_p2pdma_enable_store
	.p2align	2
_pci_p2pdma_enable_store:               ; @pci_p2pdma_enable_store
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _pci_bus_type@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pci_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x19
	bl	_bus_find_device_by_name
	cbz	x0, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
	bl	_to_pci_dev
	str	x0, [x20]
	bl	_pci_has_p2pmem
	cbz	w0, LBB0_7
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	ldrb	w8, [x19]
	and	w8, w8, #0xfe
	cmp	w8, #48
	b.ne	LBB0_5
; %bb.4:
	ldrsb	w0, [x19, #1]
	bl	_iscntrl
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_strtobool
	cbz	w0, LBB0_9
LBB0_6:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcspn
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	bl	_pr_err
	b	LBB0_8
LBB0_7:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pci_err
	ldr	x0, [x20]
	bl	_pci_dev_put
LBB0_8:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_bus_type,4,2               ; @pci_bus_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI device has no peer-to-peer memory: %s\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"No such PCI device: %.*s\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

.subsections_via_symbols
