	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_probe
_nic_probe:                             ## @nic_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
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	%r14, 24(%r15)
	movq	%r14, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_6:
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_8:
	movl	$48, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	movl	$48, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_21:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_22:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_PCI_CFG_REG_BAR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pcim_iomap
	movl	%eax, 20(%r15)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_nic_get_node_id
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_nic_get_hw_info
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	8(%r15), %rax
	movq	_MAX_LMAC_PER_BGX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kmalloc_array
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movq	%r15, %rdi
	callq	_nic_init_hw
	movq	%r15, %rdi
	callq	_nic_set_lmac_vf_mapping
	movq	%r15, %rdi
	callq	_nic_register_interrupts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nic_sriov_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nic_unregister_interrupts
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to get usable DMA configuration\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to get 48-bit DMA for consistent allocations\n"

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

	.comm	_MAX_LMAC_PER_BGX,4,2           ## @MAX_LMAC_PER_BGX
	.no_dead_strip	_nic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_probe
_nic_probe:                             ; @nic_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
	mov	w0, #0
	bl	_BUILD_BUG_ON
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	str	x19, [x20, #24]
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_5:
Lloh7:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_7:
	mov	w0, #48
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w0, #48
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_16
; %bb.10:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_13:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_14:
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
LBB0_15:
	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
LBB0_16:
Lloh16:
	adrp	x8, _PCI_CFG_REG_BAR_NUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_CFG_REG_BAR_NUM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pcim_iomap
	str	w0, [x20, #20]
	cbz	w0, LBB0_21
; %bb.17:
	mov	x0, x19
	bl	_nic_get_node_id
	str	w0, [x20, #16]
	mov	x0, x20
	bl	_nic_get_hw_info
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MAX_LMAC_PER_BGX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAX_LMAC_PER_BGX@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kmalloc_array
	str	w0, [x20]
	cbz	w0, LBB0_22
; %bb.18:
	mov	x0, x20
	bl	_nic_init_hw
	mov	x0, x20
	bl	_nic_set_lmac_vf_mapping
	mov	x0, x20
	bl	_nic_register_interrupts
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.19:
	mov	x0, x19
	mov	x1, x20
	bl	_nic_sriov_init
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.20:
	mov	x0, x20
	bl	_nic_unregister_interrupts
	b	LBB0_12
LBB0_21:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_22:
	neg	w21, w21
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to get usable DMA configuration\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to get 48-bit DMA for consistent allocations\n"

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

	.comm	_MAX_LMAC_PER_BGX,4,2           ; @MAX_LMAC_PER_BGX
	.no_dead_strip	_nic_probe
.subsections_via_symbols
