	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_probe
_slic_probe:                            ## @slic_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_2:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	callq	_pci_try_set_mwi
	movq	%r15, %rdi
	callq	_slic_configure_pci
	leaq	8(%r15), %r14
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$32, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	movl	16(%r15), %eax
	movl	%eax, 24(%r12)
	movq	_slic_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	orl	%eax, 12(%r12)
	movq	_slic_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	_PCI_DEVICE_ID_ALACRITECH_OASIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_SLIC_MODEL_OASIS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_10:
	movq	_SLIC_MODEL_MOJAVE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movl	12(%r15), %edi
	callq	_slic_is_fiber
	movl	%eax, 24(%r13)
	movq	%r15, 16(%r13)
	movq	%r12, 8(%r13)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%r13d, %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ioremap_nocache
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	callq	_slic_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_13:
	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_16:
	movq	%r13, %rsi
	addq	$4, %rsi
	movq	_slic_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SLIC_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_netif_napi_add
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movl	(%r13), %edi
	callq	_iounmap
LBB0_20:
	movq	%r12, %rdi
	callq	_free_netdev
LBB0_21:
	movq	%r15, %rdi
	callq	_pci_release_regions
	jmp	LBB0_22
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable PCI device\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to setup DMA\n"

	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.2:                               ## @.str.2
	.asciz	"failed to obtain PCI regions\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to alloc ethernet device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_slic_netdev_ops,4,2            ## @slic_netdev_ops
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_slic_ethtool_ops,4,2           ## @slic_ethtool_ops
	.comm	_PCI_DEVICE_ID_ALACRITECH_OASIS,8,3 ## @PCI_DEVICE_ID_ALACRITECH_OASIS
	.comm	_SLIC_MODEL_OASIS,4,2           ## @SLIC_MODEL_OASIS
	.comm	_SLIC_MODEL_MOJAVE,4,2          ## @SLIC_MODEL_MOJAVE
L_.str.4:                               ## @.str.4
	.asciz	"failed to map registers\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize driver\n"

	.comm	_slic_poll,4,2                  ## @slic_poll
	.comm	_SLIC_NAPI_WEIGHT,4,2           ## @SLIC_NAPI_WEIGHT
L_.str.6:                               ## @.str.6
	.asciz	"failed to register net device: %i\n"

	.no_dead_strip	_slic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_probe
_slic_probe:                            ; @slic_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	add	x0, x19, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	bl	_pci_try_set_mwi
	mov	x0, x19
	bl	_slic_configure_pci
	add	x20, x19, #8
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_coherent_mask
Lloh4:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_9
; %bb.5:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	mov	w0, #32
	bl	_alloc_etherdev
	cbz	x0, LBB0_13
; %bb.10:
	mov	x21, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _slic_netdev_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _slic_netdev_ops@GOTPAGEOFF]
	str	w8, [x21, #24]
	str	x9, [x21, #16]
Lloh11:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	orr	w9, w9, w8
	stp	w8, w9, [x21, #8]
Lloh14:
	adrp	x8, _slic_ethtool_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _slic_ethtool_ops@GOTPAGEOFF]
	str	x8, [x21]
	mov	x0, x21
	bl	_netdev_priv
	mov	x23, x0
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _PCI_DEVICE_ID_ALACRITECH_OASIS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PCI_DEVICE_ID_ALACRITECH_OASIS@GOTPAGEOFF]
Lloh18:
	adrp	x10, _SLIC_MODEL_OASIS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SLIC_MODEL_OASIS@GOTPAGEOFF]
Lloh20:
	adrp	x11, _SLIC_MODEL_MOJAVE@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SLIC_MODEL_MOJAVE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x0, #28]
	ldr	w0, [x19, #12]
	bl	_slic_is_fiber
	str	w0, [x23, #24]
	stp	x21, x19, [x23, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap_nocache
	str	w0, [x23]
	cbz	w0, LBB0_14
; %bb.11:
	mov	x0, x23
	bl	_slic_init
	cbz	w0, LBB0_15
; %bb.12:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_13:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_14:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_15:
	add	x1, x23, #4
Lloh35:
	adrp	x8, _slic_poll@GOTPAGE
Lloh36:
	ldr	x8, [x8, _slic_poll@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _SLIC_NAPI_WEIGHT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SLIC_NAPI_WEIGHT@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_netif_napi_add
	mov	x0, x21
	bl	_netif_carrier_off
	mov	x0, x21
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.16:
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x23]
	bl	_iounmap
LBB0_18:
	mov	x0, x21
	bl	_free_netdev
LBB0_19:
	mov	x0, x19
	bl	_pci_release_regions
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh22
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable PCI device\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to setup DMA\n"

	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.2:                               ; @.str.2
	.asciz	"failed to obtain PCI regions\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to alloc ethernet device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_slic_netdev_ops,4,2            ; @slic_netdev_ops
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_slic_ethtool_ops,4,2           ; @slic_ethtool_ops
	.comm	_PCI_DEVICE_ID_ALACRITECH_OASIS,8,3 ; @PCI_DEVICE_ID_ALACRITECH_OASIS
	.comm	_SLIC_MODEL_OASIS,4,2           ; @SLIC_MODEL_OASIS
	.comm	_SLIC_MODEL_MOJAVE,4,2          ; @SLIC_MODEL_MOJAVE
l_.str.4:                               ; @.str.4
	.asciz	"failed to map registers\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize driver\n"

	.comm	_slic_poll,4,2                  ; @slic_poll
	.comm	_SLIC_NAPI_WEIGHT,4,2           ; @SLIC_NAPI_WEIGHT
l_.str.6:                               ; @.str.6
	.asciz	"failed to register net device: %i\n"

	.no_dead_strip	_slic_probe
.subsections_via_symbols
