	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_pci_probe                ## -- Begin function enetc_pci_probe
	.p2align	4, 0x90
_enetc_pci_probe:                       ## @enetc_pci_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_pcie_flr
	movq	%r14, %rdi
	callq	_pci_enable_device_mem
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_2:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pci_request_mem_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_pci_set_master
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	movq	_ENETC_SI_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_ALIGN
	movslq	%r15d, %rcx
	addq	%rax, %rcx
	jmp	LBB0_11
LBB0_9:
	movl	$40, %ecx
LBB0_11:
	movq	_ENETC_SI_ALIGN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_PTR_ALIGN
	movq	%rax, %r15
	subl	%ebx, %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r14, 32(%r15)
	movq	_ENETC_BAR_REGS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_pci_resource_len
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ioremap
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	_ENETC_PORT_BASE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	%ecx, %ebx
	jle	LBB0_19
## %bb.18:
	addq	%rax, %rcx
	movq	%rcx, 24(%r15)
LBB0_19:
	movq	_ENETC_GLOBAL_BASE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	%ecx, %ebx
	jle	LBB0_21
## %bb.20:
	addq	%rcx, %rax
	movq	%rax, 16(%r15)
LBB0_21:
	movq	%r15, %rdi
	callq	_enetc_detect_errata
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_enetc_kfree_si
LBB0_15:
	negl	%ebx
	movq	%r14, %rdi
	callq	_pci_release_mem_regions
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device enable failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"DMA configuration failed: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"pci_request_regions failed err=%d\n"

	.comm	_ENETC_SI_ALIGN,4,2             ## @ENETC_SI_ALIGN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENETC_BAR_REGS,4,2             ## @ENETC_BAR_REGS
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"ioremap() failed\n"

	.comm	_ENETC_PORT_BASE,4,2            ## @ENETC_PORT_BASE
	.comm	_ENETC_GLOBAL_BASE,4,2          ## @ENETC_GLOBAL_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_pci_probe                ; -- Begin function enetc_pci_probe
	.p2align	2
_enetc_pci_probe:                       ; @enetc_pci_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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_pcie_flr
	mov	x0, x19
	bl	_pci_enable_device_mem
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_21
LBB0_2:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_20
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	_pci_request_mem_regions
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_20
LBB0_7:
	mov	x0, x19
	bl	_pci_set_master
Lloh6:
	adrp	x22, _ENETC_SI_ALIGN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ENETC_SI_ALIGN@GOTPAGEOFF]
	cbz	w20, LBB0_9
; %bb.8:
	ldr	w1, [x22]
	mov	w0, #40
	bl	_ALIGN
	add	x8, x0, w20, sxtw
	b	LBB0_10
LBB0_9:
	mov	w8, #40
LBB0_10:
	ldrsw	x9, [x22]
	add	x8, x9, x8
	sub	x0, x8, #1
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.11:
	mov	x21, x0
	ldr	w1, [x22]
	bl	_PTR_ALIGN
	mov	x20, x0
	sub	w8, w20, w21
	str	w8, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	str	x19, [x20, #32]
Lloh11:
	adrp	x22, _ENETC_BAR_REGS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ENETC_BAR_REGS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pci_resource_len
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_pci_resource_start
	mov	x1, x21
	bl	_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_18
; %bb.12:
Lloh13:
	adrp	x8, _ENETC_PORT_BASE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENETC_PORT_BASE@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	cmp	w21, w8
	b.le	LBB0_14
; %bb.13:
	add	x8, x0, x8
	str	x8, [x20, #24]
LBB0_14:
Lloh16:
	adrp	x8, _ENETC_GLOBAL_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENETC_GLOBAL_BASE@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	cmp	w21, w8
	b.le	LBB0_16
; %bb.15:
	add	x8, x0, x8
	str	x8, [x20, #16]
LBB0_16:
	mov	x0, x20
	bl	_enetc_detect_errata
	mov	w21, #0
	b	LBB0_21
LBB0_17:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_enetc_kfree_si
LBB0_19:
	neg	w21, w21
	mov	x0, x19
	bl	_pci_release_mem_regions
LBB0_20:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_21:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device enable failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"DMA configuration failed: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"pci_request_regions failed err=%d\n"

	.comm	_ENETC_SI_ALIGN,4,2             ; @ENETC_SI_ALIGN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENETC_BAR_REGS,4,2             ; @ENETC_BAR_REGS
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"ioremap() failed\n"

	.comm	_ENETC_PORT_BASE,4,2            ; @ENETC_PORT_BASE
	.comm	_ENETC_GLOBAL_BASE,4,2          ; @ENETC_GLOBAL_BASE
.subsections_via_symbols
