	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_init_iface
_slic_init_iface:                       ## @slic_init_iface
	.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, %rbx
	movl	$0, 28(%rdi)
	callq	_slic_init_shmem
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_20
LBB0_2:
	movq	%rbx, %rdi
	callq	_slic_load_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_slic_load_rcvseq_firmware
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_9:
	movq	%rbx, %rdi
	callq	_slic_free_shmem
	movq	%rbx, %rdi
	callq	_slic_card_reset
LBB0_20:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SLIC_REG_ICR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SLIC_ICR_INT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_slic_flush_write
	movl	$1, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	callq	_slic_init_rx_queue
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_slic_init_tx_queue
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_slic_init_stat_queue
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_15
LBB0_16:
	movq	_SLIC_REG_ISP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	32(%rbx), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_napi_enable
	movq	_SLIC_REG_INTAGG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_slic_write
	movq	_SLIC_REG_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_slic_flush_write
	movq	%rbx, %rdi
	callq	_slic_set_mac_address
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_slic_set_link_autoneg
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_slic_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_slic_free_stat_queue
	movl	%r15d, %r14d
LBB0_15:
	movq	%rbx, %rdi
	callq	_slic_free_tx_queue
LBB0_12:
	movq	%rbx, %rdi
	callq	_slic_free_rx_queue
	jmp	LBB0_9
LBB0_18:
	movl	(%r12), %esi
	movq	_SLIC_ICR_INT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_slic_flush_write
	movq	%rbx, %rdi
	callq	_slic_handle_link_change
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	4(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_warn
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init shared memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to load firmware\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to load firmware for receive sequencer\n"

	.comm	_SLIC_REG_ICR,4,2               ## @SLIC_REG_ICR
	.comm	_SLIC_ICR_INT_OFF,4,2           ## @SLIC_ICR_INT_OFF
L_.str.3:                               ## @.str.3
	.asciz	"failed to init rx queue: %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to init tx queue: %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to init status queue: %u\n"

	.comm	_SLIC_REG_ISP,4,2               ## @SLIC_REG_ISP
	.comm	_SLIC_REG_INTAGG,4,2            ## @SLIC_REG_INTAGG
	.comm	_SLIC_REG_ISR,4,2               ## @SLIC_REG_ISR
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_slic_irq,4,2                   ## @slic_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.6:                               ## @.str.6
	.asciz	"failed to request irq: %u\n"

	.comm	_SLIC_ICR_INT_ON,4,2            ## @SLIC_ICR_INT_ON
L_.str.7:                               ## @.str.7
	.asciz	"failed to set initial link state: %u\n"

	.no_dead_strip	_slic_init_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_init_iface
_slic_init_iface:                       ; @slic_init_iface
	.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
	str	wzr, [x0, #28]
	bl	_slic_init_shmem
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_slic_load_firmware
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_slic_load_rcvseq_firmware
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x21, _SLIC_REG_ICR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SLIC_REG_ICR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _SLIC_ICR_INT_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SLIC_ICR_INT_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	bl	_slic_init_rx_queue
	cbz	w0, LBB0_11
; %bb.7:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	bl	_netdev_err
LBB0_9:
	mov	x0, x19
	bl	_slic_free_shmem
	mov	x0, x19
	bl	_slic_card_reset
LBB0_10:
	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_11:
	mov	x0, x19
	bl	_slic_init_tx_queue
	cbz	w0, LBB0_13
; %bb.12:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_18
LBB0_13:
	mov	x0, x19
	bl	_slic_init_stat_queue
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_err
	b	LBB0_17
LBB0_15:
Lloh17:
	adrp	x8, _SLIC_REG_ISP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SLIC_REG_ISP@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	w0, [x19, #32]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_slic_write
	mov	x0, x19
	bl	_napi_enable
Lloh20:
	adrp	x8, _SLIC_REG_INTAGG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SLIC_REG_INTAGG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_slic_write
Lloh23:
	adrp	x8, _SLIC_REG_ISR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SLIC_REG_ISR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	mov	x0, x19
	bl	_slic_set_mac_address
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_bh
Lloh26:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_slic_set_link_autoneg
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _slic_irq@GOTPAGE
Lloh33:
	ldr	x8, [x8, _slic_irq@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_19
; %bb.16:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_napi_disable
	mov	x0, x19
	bl	_slic_free_stat_queue
LBB0_17:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	mov	x0, x19
	bl	_slic_free_tx_queue
LBB0_18:
	mov	x0, x19
	bl	_slic_free_rx_queue
	b	LBB0_9
LBB0_19:
	ldr	w1, [x21]
Lloh43:
	adrp	x8, _SLIC_ICR_INT_ON@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SLIC_ICR_INT_ON@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	mov	x0, x19
	bl	_slic_handle_link_change
	cbz	w0, LBB0_21
; %bb.20:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_netdev_warn
LBB0_21:
	mov	w20, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init shared memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to load firmware\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to load firmware for receive sequencer\n"

	.comm	_SLIC_REG_ICR,4,2               ; @SLIC_REG_ICR
	.comm	_SLIC_ICR_INT_OFF,4,2           ; @SLIC_ICR_INT_OFF
l_.str.3:                               ; @.str.3
	.asciz	"failed to init rx queue: %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to init tx queue: %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to init status queue: %u\n"

	.comm	_SLIC_REG_ISP,4,2               ; @SLIC_REG_ISP
	.comm	_SLIC_REG_INTAGG,4,2            ; @SLIC_REG_INTAGG
	.comm	_SLIC_REG_ISR,4,2               ; @SLIC_REG_ISR
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_slic_irq,4,2                   ; @slic_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.6:                               ; @.str.6
	.asciz	"failed to request irq: %u\n"

	.comm	_SLIC_ICR_INT_ON,4,2            ; @SLIC_ICR_INT_ON
l_.str.7:                               ; @.str.7
	.asciz	"failed to set initial link state: %u\n"

	.no_dead_strip	_slic_init_iface
.subsections_via_symbols
