	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcv_probe
_xcv_probe:                             ## @xcv_probe
	.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	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	_xcv@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 8(%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	%rbx, %rdi
	callq	_pci_disable_device
LBB0_9:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_devm_kfree
	movq	$0, (%r15)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PCI_CFG_REG_BAR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcim_iomap
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_pci_release_regions
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_xcv,8,3                        ## @xcv
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable PCI device\n"

	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"PCI request regions failed 0x%x\n"

	.comm	_PCI_CFG_REG_BAR_NUM,4,2        ## @PCI_CFG_REG_BAR_NUM
L_.str.2:                               ## @.str.2
	.asciz	"XCV: Cannot map CSR memory space, aborting\n"

	.no_dead_strip	_xcv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcv_probe
_xcv_probe:                             ; @xcv_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
Lloh3:
	adrp	x21, _xcv@GOTPAGE
Lloh4:
	ldr	x21, [x21, _xcv@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	str	x19, [x0, #8]
	mov	x0, x19
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_7:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_devm_kfree
	str	xzr, [x21]
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh15:
	adrp	x8, _PCI_CFG_REG_BAR_NUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_CFG_REG_BAR_NUM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pcim_iomap
	ldr	x8, [x21]
	str	w0, [x8]
	cbnz	w0, LBB0_8
; %bb.10:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_pci_release_regions
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_xcv,8,3                        ; @xcv
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable PCI device\n"

	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"PCI request regions failed 0x%x\n"

	.comm	_PCI_CFG_REG_BAR_NUM,4,2        ; @PCI_CFG_REG_BAR_NUM
l_.str.2:                               ; @.str.2
	.asciz	"XCV: Cannot map CSR memory space, aborting\n"

	.no_dead_strip	_xcv_probe
.subsections_via_symbols
