	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8851_probe
_ks8851_probe:                          ## @ks8851_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$152, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	$8, (%r13)
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movq	%r13, 144(%rax)
	movl	$6144, (%rax)                   ## imm = 0x1800
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_named_gpio_flags
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	addl	(%rax), %ecx
	je	LBB0_24
## %bb.3:
	leaq	4(%r13), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, 4(%rbx)
	movl	%r12d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_24
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_24
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_12:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_14:
	movl	%r12d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_gpio_set_value
LBB0_16:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	140(%r14), %rdi
	callq	_mutex_init
	leaq	136(%r14), %rdi
	callq	_spin_lock_init
	leaq	132(%r14), %rdi
	movq	_ks8851_tx_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	128(%r14), %rdi
	movq	_ks8851_rxctrl_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	120(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	124(%r14), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	leaq	104(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	movq	112(%r14), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	112(%r14), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r14, 96(%r14)
	movq	_PCI_EEPROM_WIDTH_93C46@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movq	_ks8851_eeprom_regread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r14)
	movq	_ks8851_eeprom_regwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movq	%r15, 72(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 48(%r14)
	movl	$15, 56(%r14)
	movq	_ks8851_phy_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_ks8851_phy_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_msg_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_dev_info
	movq	_NETIF_MSG_DRV@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_msg_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, 44(%r14)
	movq	%r14, %rdi
	addq	$40, %rdi
	callq	_skb_queue_head_init
	movq	_ks8851_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	32(%r14), %rdi
	callq	_netif_carrier_off
	movq	_IF_PORT_100BASET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ks8851_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movl	8(%r13), %eax
	movl	%eax, (%r15)
	movq	_GRR_GSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ks8851_soft_reset
	movq	_KS_CIDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ks8851_rdreg16
	movq	%rax, %r13
	movq	_CIDER_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r13d, %eax
	movq	_CIDER_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.18:
	movq	_KS_CCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ks8851_rdreg16
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_ks8851_read_selftest
	movq	%r14, %rdi
	callq	_ks8851_init_mac
	movq	%r15, %rdi
	callq	_register_netdev
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_20:
	movl	%r12d, %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
LBB0_22:
	movq	24(%rbx), %rdi
	callq	_regulator_disable
LBB0_23:
	movq	16(%rbx), %rdi
	callq	_regulator_disable
	movl	%r14d, %r12d
LBB0_24:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_25:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%r13d, %edi
	callq	_CIDER_REV_GET
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	_CCR_EEPROM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%r14), %edx
	leaq	L_.str.12(%rip), %rdx
	leaq	L_.str.11(%rip), %r9
	cmoveq	%rdx, %r9
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_netdev_info
	xorl	%r12d, %r12d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset-gpios"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"ks8851_rst_n"

L_.str.2:                               ## @.str.2
	.asciz	"reset gpio request failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"vdd-io"

L_.str.4:                               ## @.str.4
	.asciz	"regulator vdd_io enable fail: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"vdd"

L_.str.6:                               ## @.str.6
	.asciz	"regulator vdd enable fail: %d\n"

	.comm	_ks8851_tx_work,4,2             ## @ks8851_tx_work
	.comm	_ks8851_rxctrl_work,4,2         ## @ks8851_rxctrl_work
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ## @PCI_EEPROM_WIDTH_93C46
	.comm	_ks8851_eeprom_regread,4,2      ## @ks8851_eeprom_regread
	.comm	_ks8851_eeprom_regwrite,4,2     ## @ks8851_eeprom_regwrite
	.comm	_ks8851_phy_read,4,2            ## @ks8851_phy_read
	.comm	_ks8851_phy_write,4,2           ## @ks8851_phy_write
L_.str.7:                               ## @.str.7
	.asciz	"message enable is %d\n"

	.comm	_msg_enable,4,2                 ## @msg_enable
	.comm	_NETIF_MSG_DRV,4,2              ## @NETIF_MSG_DRV
	.comm	_NETIF_MSG_PROBE,4,2            ## @NETIF_MSG_PROBE
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.comm	_ks8851_ethtool_ops,4,2         ## @ks8851_ethtool_ops
	.comm	_IF_PORT_100BASET,4,2           ## @IF_PORT_100BASET
	.comm	_ks8851_netdev_ops,4,2          ## @ks8851_netdev_ops
	.comm	_GRR_GSR,4,2                    ## @GRR_GSR
	.comm	_KS_CIDER,4,2                   ## @KS_CIDER
	.comm	_CIDER_REV_MASK,4,2             ## @CIDER_REV_MASK
	.comm	_CIDER_ID,4,2                   ## @CIDER_ID
L_.str.8:                               ## @.str.8
	.asciz	"failed to read device ID\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_KS_CCR,4,2                     ## @KS_CCR
L_.str.9:                               ## @.str.9
	.asciz	"failed to register network device\n"

L_.str.10:                              ## @.str.10
	.asciz	"revision %d, MAC %pM, IRQ %d, %s EEPROM\n"

	.comm	_CCR_EEPROM,4,2                 ## @CCR_EEPROM
L_.str.11:                              ## @.str.11
	.asciz	"has"

L_.str.12:                              ## @.str.12
	.asciz	"no"

	.no_dead_strip	_ks8851_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8851_probe
_ks8851_probe:                          ; @ks8851_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	x23, x0
	mov	w0, #152
	bl	_alloc_etherdev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w8, #8
	str	w8, [x23]
	bl	_netdev_priv
	mov	x20, x0
	str	x19, [x0, #32]
	str	x23, [x0, #144]
	mov	w8, #6144
	str	w8, [x0]
	mov	x22, x23
	ldr	w0, [x22, #4]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	mov	x3, #0
	bl	_of_get_named_gpio_flags
	mov	x21, x0
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_25
; %bb.2:
	str	w21, [x20, #4]
	mov	x0, x21
	bl	_gpio_is_valid
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_devm_gpio_request_one
	cbz	w0, LBB0_6
; %bb.4:
	mov	x24, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x21, x24
	b	LBB0_25
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_26
LBB0_6:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_25
LBB0_8:
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x24, x0
	str	x24, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_24
LBB0_10:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #24]
	cbz	x8, LBB0_12
; %bb.11:
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_23
LBB0_12:
	bl	_regulator_enable
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
	str	x24, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_23
LBB0_14:
	mov	x0, x21
	bl	_gpio_is_valid
	cbz	x0, LBB0_16
; %bb.15:
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	mov	x0, x21
	mov	w1, #1
	bl	_gpio_set_value
LBB0_16:
	add	x0, x20, #140
	bl	_mutex_init
	add	x0, x20, #136
	bl	_spin_lock_init
	add	x0, x20, #132
Lloh23:
	adrp	x8, _ks8851_tx_work@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ks8851_tx_work@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #128
Lloh26:
	adrp	x8, _ks8851_rxctrl_work@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ks8851_rxctrl_work@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x24, x20, #120
	mov	x0, x24
	bl	_spi_message_init
	add	x0, x20, #124
	mov	x1, x24
	bl	_spi_message_add_tail
	add	x24, x20, #104
	mov	x0, x24
	bl	_spi_message_init
	ldr	x0, [x20, #112]
	mov	x1, x24
	bl	_spi_message_add_tail
	ldr	x8, [x20, #112]
	add	x0, x8, #4
	mov	x1, x24
	bl	_spi_message_add_tail
	str	x20, [x20, #96]
Lloh29:
	adrp	x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #88]
Lloh32:
	adrp	x8, _ks8851_eeprom_regread@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ks8851_eeprom_regread@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _ks8851_eeprom_regwrite@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ks8851_eeprom_regwrite@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
	str	x19, [x20, #72]
	movi.2s	v0, #1
	str	d0, [x20, #48]
	mov	w8, #15
Lloh38:
	adrp	x9, _ks8851_phy_read@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ks8851_phy_read@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	str	w9, [x20, #64]
Lloh41:
	adrp	x9, _ks8851_phy_write@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ks8851_phy_write@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #56]
Lloh44:
	adrp	x24, _msg_enable@GOTPAGE
Lloh45:
	ldr	x24, [x24, _msg_enable@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	ldr	w0, [x24]
Lloh48:
	adrp	x8, _NETIF_MSG_DRV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NETIF_MSG_DRV@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _NETIF_MSG_LINK@GOTPAGE
Lloh55:
	ldr	x9, [x9, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_netif_msg_init
	str	w0, [x20, #44]
	add	x0, x20, #40
	bl	_skb_queue_head_init
Lloh57:
	adrp	x8, _ks8851_ethtool_ops@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ks8851_ethtool_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x23
	mov	x1, x20
	bl	_spi_set_drvdata
	ldr	x0, [x20, #32]
	bl	_netif_carrier_off
Lloh59:
	adrp	x8, _IF_PORT_100BASET@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IF_PORT_100BASET@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh62:
	adrp	x8, _ks8851_netdev_ops@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ks8851_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	w8, [x23, #8]
	str	w8, [x19]
Lloh64:
	adrp	x8, _GRR_GSR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _GRR_GSR@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ks8851_soft_reset
Lloh67:
	adrp	x8, _KS_CIDER@GOTPAGE
Lloh68:
	ldr	x8, [x8, _KS_CIDER@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ks8851_rdreg16
	mov	x23, x0
Lloh70:
	adrp	x8, _CIDER_REV_MASK@GOTPAGE
Lloh71:
	ldr	x8, [x8, _CIDER_REV_MASK@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	bic	w8, w23, w8
Lloh73:
	adrp	x9, _CIDER_ID@GOTPAGE
Lloh74:
	ldr	x9, [x9, _CIDER_ID@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.17:
Lloh76:
	adrp	x8, _KS_CCR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _KS_CCR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ks8851_rdreg16
	str	w0, [x20, #8]
	mov	x0, x20
	bl	_ks8851_read_selftest
	mov	x0, x20
	bl	_ks8851_init_mac
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_27
; %bb.18:
	mov	x24, x0
Lloh79:
	adrp	x1, l_.str.9@PAGE
Lloh80:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_20
LBB0_19:
Lloh81:
	adrp	x1, l_.str.8@PAGE
Lloh82:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh83:
	adrp	x8, _ENODEV@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_20:
	mov	x0, x21
	bl	_gpio_is_valid
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	mov	w1, #0
	bl	_gpio_set_value
LBB0_22:
	ldr	x0, [x20, #24]
	bl	_regulator_disable
LBB0_23:
	ldr	x0, [x20, #16]
	bl	_regulator_disable
LBB0_24:
	mov	x21, x24
LBB0_25:
	mov	x0, x19
	bl	_free_netdev
LBB0_26:
	mov	x0, x21
	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_27:
	mov	x0, x23
	bl	_CIDER_REV_GET
	mov	x2, x0
	ldp	w4, w3, [x19]
	ldr	w8, [x20, #8]
Lloh86:
	adrp	x9, _CCR_EEPROM@GOTPAGE
Lloh87:
	ldr	x9, [x9, _CCR_EEPROM@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
Lloh89:
	adrp	x10, l_.str.11@PAGE
Lloh90:
	add	x10, x10, l_.str.11@PAGEOFF
Lloh91:
	adrp	x11, l_.str.12@PAGE
Lloh92:
	add	x11, x11, l_.str.12@PAGEOFF
	tst	w9, w8
	csel	x5, x11, x10, eq
Lloh93:
	adrp	x1, l_.str.10@PAGE
Lloh94:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	w21, #0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.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	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset-gpios"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"ks8851_rst_n"

l_.str.2:                               ; @.str.2
	.asciz	"reset gpio request failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"vdd-io"

l_.str.4:                               ; @.str.4
	.asciz	"regulator vdd_io enable fail: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"vdd"

l_.str.6:                               ; @.str.6
	.asciz	"regulator vdd enable fail: %d\n"

	.comm	_ks8851_tx_work,4,2             ; @ks8851_tx_work
	.comm	_ks8851_rxctrl_work,4,2         ; @ks8851_rxctrl_work
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ; @PCI_EEPROM_WIDTH_93C46
	.comm	_ks8851_eeprom_regread,4,2      ; @ks8851_eeprom_regread
	.comm	_ks8851_eeprom_regwrite,4,2     ; @ks8851_eeprom_regwrite
	.comm	_ks8851_phy_read,4,2            ; @ks8851_phy_read
	.comm	_ks8851_phy_write,4,2           ; @ks8851_phy_write
l_.str.7:                               ; @.str.7
	.asciz	"message enable is %d\n"

	.comm	_msg_enable,4,2                 ; @msg_enable
	.comm	_NETIF_MSG_DRV,4,2              ; @NETIF_MSG_DRV
	.comm	_NETIF_MSG_PROBE,4,2            ; @NETIF_MSG_PROBE
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.comm	_ks8851_ethtool_ops,4,2         ; @ks8851_ethtool_ops
	.comm	_IF_PORT_100BASET,4,2           ; @IF_PORT_100BASET
	.comm	_ks8851_netdev_ops,4,2          ; @ks8851_netdev_ops
	.comm	_GRR_GSR,4,2                    ; @GRR_GSR
	.comm	_KS_CIDER,4,2                   ; @KS_CIDER
	.comm	_CIDER_REV_MASK,4,2             ; @CIDER_REV_MASK
	.comm	_CIDER_ID,4,2                   ; @CIDER_ID
l_.str.8:                               ; @.str.8
	.asciz	"failed to read device ID\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_KS_CCR,4,2                     ; @KS_CCR
l_.str.9:                               ; @.str.9
	.asciz	"failed to register network device\n"

l_.str.10:                              ; @.str.10
	.asciz	"revision %d, MAC %pM, IRQ %d, %s EEPROM\n"

	.comm	_CCR_EEPROM,4,2                 ; @CCR_EEPROM
l_.str.11:                              ; @.str.11
	.asciz	"has"

l_.str.12:                              ; @.str.12
	.asciz	"no"

	.no_dead_strip	_ks8851_probe
.subsections_via_symbols
