	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_devinit
_skge_devinit:                          ## @skge_devinit
	.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, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$72, %edi
	callq	_alloc_etherdev
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_SET_NETDEV_DEV
	movq	_skge_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movq	_skge_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_TX_WATCHDOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	16(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_ETH_JUMBO_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_NETIF_F_HIGHDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_3:
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	64(%rax), %rsi
	movq	_skge_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_netif_napi_add
	movq	%r12, 56(%rbx)
	movq	%r14, 48(%rbx)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_default_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 40(%rbx)
	movq	_DEFAULT_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_DEFAULT_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_FLOW_MODE_SYM_OR_REM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$-1, (%rbx)
	movq	%r14, %rdi
	callq	_skge_supported_modes
	movl	%eax, 20(%rbx)
	movq	16(%r14), %rdi
	callq	_device_can_wakeup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_wol_supported
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movq	16(%r14), %rdi
	movl	%eax, %esi
	callq	_device_set_wakeup_enable
LBB0_5:
	movq	8(%r14), %rax
	movslq	%r15d, %rcx
	movq	%r12, (%rax,%rcx,8)
	movl	%ecx, 12(%rbx)
	movq	%r14, %rdi
	callq	_is_genesis
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	addq	$16, %rbx
	movq	_xm_link_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	jmp	LBB0_8
LBB0_7:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%r12)
	orl	%ecx, (%r12)
LBB0_8:
	movl	8(%r12), %edi
	movq	_B2_MAC_1@GOTPCREL(%rip), %rax
	shll	$3, %r15d
	movslq	%r15d, %rsi
	addq	(%r14), %rsi
	addq	(%rax), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy_fromio
LBB0_9:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_skge_netdev_ops,4,2            ## @skge_netdev_ops
	.comm	_skge_ethtool_ops,4,2           ## @skge_ethtool_ops
	.comm	_TX_WATCHDOG,4,2                ## @TX_WATCHDOG
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_ETH_JUMBO_MTU,4,2              ## @ETH_JUMBO_MTU
	.comm	_NETIF_F_HIGHDMA,4,2            ## @NETIF_F_HIGHDMA
	.comm	_skge_poll,4,2                  ## @skge_poll
	.comm	_NAPI_WEIGHT,4,2                ## @NAPI_WEIGHT
	.comm	_debug,4,2                      ## @debug
	.comm	_default_msg,4,2                ## @default_msg
	.comm	_DEFAULT_TX_RING_SIZE,4,2       ## @DEFAULT_TX_RING_SIZE
	.comm	_DEFAULT_RX_RING_SIZE,4,2       ## @DEFAULT_RX_RING_SIZE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_FLOW_MODE_SYM_OR_REM,4,2       ## @FLOW_MODE_SYM_OR_REM
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_xm_link_timer,4,2              ## @xm_link_timer
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_B2_MAC_1,8,3                   ## @B2_MAC_1
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_skge_devinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_devinit
_skge_devinit:                          ; @skge_devinit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #72
	bl	_alloc_etherdev
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x1, [x21, #16]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
Lloh0:
	adrp	x8, _skge_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _skge_netdev_ops@GOTPAGEOFF]
Lloh2:
	adrp	x9, _skge_ethtool_ops@GOTPAGE
Lloh3:
	ldr	x9, [x9, _skge_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #32]
Lloh4:
	adrp	x8, _TX_WATCHDOG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TX_WATCHDOG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	ldr	w9, [x9, #4]
	stp	w9, w8, [x19, #20]
Lloh7:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ETH_JUMBO_MTU@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ETH_JUMBO_MTU@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	cbz	w22, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _NETIF_F_HIGHDMA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_HIGHDMA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	bl	_netdev_priv
	mov	x22, x0
	add	x1, x0, #64
Lloh16:
	adrp	x8, _skge_poll@GOTPAGE
Lloh17:
	ldr	x8, [x8, _skge_poll@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _NAPI_WEIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NAPI_WEIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_netif_napi_add
	stp	x21, x19, [x22, #48]
Lloh22:
	adrp	x8, _debug@GOTPAGE
Lloh23:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _default_msg@GOTPAGE
Lloh26:
	ldr	x8, [x8, _default_msg@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x22, #40]
Lloh28:
	adrp	x8, _DEFAULT_TX_RING_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DEFAULT_TX_RING_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _DEFAULT_RX_RING_SIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _DEFAULT_RX_RING_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #32]
Lloh34:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh36:
	adrp	x9, _FLOW_MODE_SYM_OR_REM@GOTPAGE
Lloh37:
	ldr	x9, [x9, _FLOW_MODE_SYM_OR_REM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x22]
	mov	x0, x21
	bl	_skge_supported_modes
	str	w0, [x22, #20]
	ldr	x0, [x21, #16]
	bl	_device_can_wakeup
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_wol_supported
Lloh40:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	and	w1, w8, w0
	str	w1, [x22, #8]
	ldr	x0, [x21, #16]
	bl	_device_set_wakeup_enable
LBB0_5:
	ldr	x8, [x21, #8]
	str	x19, [x8, w20, sxtw #3]
	str	w20, [x22, #12]
	mov	x0, x21
	bl	_is_genesis
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, x22, #16
Lloh43:
	adrp	x8, _xm_link_timer@GOTPAGE
Lloh44:
	ldr	x8, [x8, _xm_link_timer@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	b	LBB0_8
LBB0_7:
Lloh46:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh50:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh52:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w9, w9, w8
	stp	w9, w8, [x19]
LBB0_8:
	ldr	w0, [x19, #8]
	ldr	x8, [x21]
Lloh55:
	adrp	x9, _B2_MAC_1@GOTPAGE
Lloh56:
	ldr	x9, [x9, _B2_MAC_1@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	lsl	w10, w20, #3
	add	x8, x8, w10, sxtw
	add	x1, x8, x9
Lloh58:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	bl	_memcpy_fromio
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_skge_netdev_ops,4,2            ; @skge_netdev_ops
	.comm	_skge_ethtool_ops,4,2           ; @skge_ethtool_ops
	.comm	_TX_WATCHDOG,4,2                ; @TX_WATCHDOG
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_ETH_JUMBO_MTU,4,2              ; @ETH_JUMBO_MTU
	.comm	_NETIF_F_HIGHDMA,4,2            ; @NETIF_F_HIGHDMA
	.comm	_skge_poll,4,2                  ; @skge_poll
	.comm	_NAPI_WEIGHT,4,2                ; @NAPI_WEIGHT
	.comm	_debug,4,2                      ; @debug
	.comm	_default_msg,4,2                ; @default_msg
	.comm	_DEFAULT_TX_RING_SIZE,4,2       ; @DEFAULT_TX_RING_SIZE
	.comm	_DEFAULT_RX_RING_SIZE,4,2       ; @DEFAULT_RX_RING_SIZE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_FLOW_MODE_SYM_OR_REM,4,2       ; @FLOW_MODE_SYM_OR_REM
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_xm_link_timer,4,2              ; @xm_link_timer
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_B2_MAC_1,8,3                   ; @B2_MAC_1
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_skge_devinit
.subsections_via_symbols
