	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_drv_probe
_sh_eth_drv_probe:                      ## @sh_eth_drv_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
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_2:
	movl	$40, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	movl	(%r15), %ebx
	movl	$-1, (%r14)
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	testl	%ebx, %ebx
	cmovgl	%ebx, %r13d
	movl	%eax, 4(%r14)
	leaq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_ether_setup
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	32(%rax), %rdi
	callq	_spin_lock_init
	movq	8(%r15), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	_sh_eth_my_cpu_data@GOTPCREL(%rip), %rdi
	movq	%rdi, 8(%r12)
	callq	_sh_eth_set_default_cpu_data
	movq	_sh_eth_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_POST_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %r13d
	movl	%r13d, %ecx
	sarl	%cl, %eax
	movl	%eax, (%r12)
	movq	_POST_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%cl, %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_read_mac_address
	testl	%ebx, %ebx
	jg	LBB0_9
## %bb.7:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	*%rax
LBB0_9:
	movq	%r14, %rdi
	callq	_register_netdev
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_sh_mdio_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_unregister_netdev
	jmp	LBB0_13
LBB0_3:
	addq	$8, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_13:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	16(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	8(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movl	12(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movl	16(%rax), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%r14), %rax
	movl	20(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid resource\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate device.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sh_eth_my_cpu_data,8,3         ## @sh_eth_my_cpu_data
	.comm	_sh_eth_netdev_ops,4,2          ## @sh_eth_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ## @TX_TIMEOUT
	.comm	_POST_RX,4,2                    ## @POST_RX
	.comm	_POST_FW,4,2                    ## @POST_FW
L_.str.2:                               ## @.str.2
	.asciz	"Base address at 0x%x, "

L_.str.3:                               ## @.str.3
	.asciz	"%02X:"

L_.str.4:                               ## @.str.4
	.asciz	"%02X, IRQ %d.\n"

	.comm	_SH_TSU_ADDR,4,2                ## @SH_TSU_ADDR
	.no_dead_strip	_sh_eth_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_drv_probe
_sh_eth_drv_probe:                      ; @sh_eth_drv_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
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_3:
	mov	w0, #40
	bl	_alloc_etherdev
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0, #16]
	ldr	w22, [x19]
	mov	w8, #-1
	str	w8, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_12
; %bb.5:
	cmp	w22, #0
	csel	w23, w22, wzr, gt
	str	w0, [x20, #4]
	add	x1, x19, #8
	mov	x0, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_ether_setup
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	add	x0, x0, #32
	bl	_spin_lock_init
	ldr	x8, [x19, #8]
	ldr	q0, [x8]
	str	q0, [x21, #16]
Lloh7:
	adrp	x0, _sh_eth_my_cpu_data@GOTPAGE
Lloh8:
	ldr	x0, [x0, _sh_eth_my_cpu_data@GOTPAGEOFF]
	str	x0, [x21, #8]
	bl	_sh_eth_set_default_cpu_data
Lloh9:
	adrp	x8, _sh_eth_netdev_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sh_eth_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh11:
	adrp	x8, _TX_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TX_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh14:
	adrp	x8, _POST_RX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POST_RX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w9, w23, #1
	asr	w8, w8, w9
	str	w8, [x21]
Lloh17:
	adrp	x8, _POST_FW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POST_FW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	asr	w8, w8, w9
	str	w8, [x21, #4]
	mov	x0, x20
	bl	_read_mac_address
	cmp	w22, #0
	b.gt	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	blr	x8
LBB0_8:
	mov	x0, x20
	bl	_register_netdev
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_sh_mdio_init
	cbz	w0, LBB0_15
; %bb.10:
	mov	x21, x0
	mov	x0, x20
	bl	_unregister_netdev
	b	LBB0_13
LBB0_11:
	add	x0, x19, #8
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x20
	bl	_free_netdev
LBB0_14:
	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_15:
	ldr	w1, [x20, #16]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh29:
	adrp	x21, l_.str.3@PAGE
Lloh30:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_printk
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_printk
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_printk
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #12]
	mov	x0, x21
	bl	_printk
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_printk
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #20]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid resource\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate device.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sh_eth_my_cpu_data,8,3         ; @sh_eth_my_cpu_data
	.comm	_sh_eth_netdev_ops,4,2          ; @sh_eth_netdev_ops
	.comm	_TX_TIMEOUT,4,2                 ; @TX_TIMEOUT
	.comm	_POST_RX,4,2                    ; @POST_RX
	.comm	_POST_FW,4,2                    ; @POST_FW
l_.str.2:                               ; @.str.2
	.asciz	"Base address at 0x%x, "

l_.str.3:                               ; @.str.3
	.asciz	"%02X:"

l_.str.4:                               ; @.str.4
	.asciz	"%02X, IRQ %d.\n"

	.comm	_SH_TSU_ADDR,4,2                ; @SH_TSU_ADDR
	.no_dead_strip	_sh_eth_drv_probe
.subsections_via_symbols
