	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enetsw_probe
_bcm_enetsw_probe:                      ## @bcm_enetsw_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	_bcm_enet_shared_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.6:
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$104, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movl	$1, (%rax)
	movl	%r12d, 4(%rax)
	movl	%r13d, 8(%rax)
	movq	%rax, %r13
	movq	_BCMENET_DEF_RX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r13)
	movq	_BCMENET_DEF_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r13)
	movq	_BCMENETSW_DMA_MAXBURST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movl	20(%r15), %edi
	movl	24(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	88(%r13), %edi
	movl	20(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	16(%rbx), %eax
	movl	%eax, 84(%r13)
	movups	(%rbx), %xmm0
	movups	%xmm0, 68(%r13)
LBB0_10:
	movl	16(%r15), %esi
	movq	%r15, %rdi
	callq	_bcm_enet_change_mtu
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_ioremap_resource
	movl	%eax, 64(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	64(%r13), %edi
	jmp	LBB0_14
LBB0_1:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	16(%r13), %edi
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_19:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movq	$0, 56(%r13)
	movl	$1, 12(%r13)
	leaq	52(%r13), %rdi
	callq	_spin_lock_init
	leaq	48(%r13), %rdi
	movq	_bcm_enet_refill_rx_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_bcm_enetsw_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	leaq	44(%r13), %rsi
	movq	_bcm_enet_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %ecx
	callq	_netif_napi_add
	movq	_bcm_enetsw_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r13, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %ebx
	movl	16(%r13), %edi
	callq	_clk_disable_unprepare
	movl	%ebx, %r14d
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r12, 32(%r13)
	movq	%r15, 24(%r13)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_bcm_enet_shared_base,8,3       ## @bcm_enet_shared_base
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BCMENET_DEF_RX_DESC,4,2        ## @BCMENET_DEF_RX_DESC
	.comm	_BCMENET_DEF_TX_DESC,4,2        ## @BCMENET_DEF_TX_DESC
	.comm	_BCMENETSW_DMA_MAXBURST,4,2     ## @BCMENETSW_DMA_MAXBURST
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enetsw"

	.comm	_bcm_enet_refill_rx_timer,4,2   ## @bcm_enet_refill_rx_timer
	.comm	_bcm_enetsw_ops,4,2             ## @bcm_enetsw_ops
	.comm	_bcm_enet_poll,4,2              ## @bcm_enet_poll
	.comm	_bcm_enetsw_ethtool_ops,4,2     ## @bcm_enetsw_ethtool_ops
	.no_dead_strip	_bcm_enetsw_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enetsw_probe
_bcm_enetsw_probe:                      ; @bcm_enetsw_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _bcm_enet_shared_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bcm_enet_shared_base@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1
	bl	_platform_get_irq
	cbz	x22, LBB0_10
; %bb.2:
	tbnz	w23, #31, LBB0_10
; %bb.3:
	mov	x24, x0
	mov	w0, #104
	bl	_alloc_etherdev
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	w8, #1
	stp	w8, w23, [x0]
	str	w24, [x0, #8]
Lloh6:
	adrp	x8, _BCMENET_DEF_RX_DESC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCMENET_DEF_RX_DESC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #100]
Lloh9:
	adrp	x8, _BCMENET_DEF_TX_DESC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BCMENET_DEF_TX_DESC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BCMENETSW_DMA_MAXBURST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BCMENETSW_DMA_MAXBURST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #92]
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_6
; %bb.5:
	mov	x23, x0
	ldr	w0, [x20, #20]
	ldr	w1, [x23, #24]
Lloh15:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x21, #88]
	ldr	w1, [x23, #20]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x23, #16]
	str	w8, [x21, #84]
	ldr	q0, [x23]
	stur	q0, [x21, #68]
LBB0_6:
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_bcm_enet_change_mtu
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.7:
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x21, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.8:
	ldr	w0, [x21, #64]
	b	LBB0_15
LBB0_9:
Lloh18:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x21, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #16]
	cbz	x8, LBB0_17
LBB0_15:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_16:
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_13
LBB0_17:
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.18:
	str	xzr, [x21, #56]
	mov	w8, #1
	str	w8, [x21, #12]
	add	x0, x21, #52
	bl	_spin_lock_init
	add	x0, x21, #48
Lloh26:
	adrp	x8, _bcm_enet_refill_rx_timer@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bcm_enet_refill_rx_timer@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh29:
	adrp	x8, _bcm_enetsw_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bcm_enetsw_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	add	x1, x21, #44
Lloh31:
	adrp	x8, _bcm_enet_poll@GOTPAGE
Lloh32:
	ldr	x8, [x8, _bcm_enet_poll@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #16
	bl	_netif_napi_add
Lloh34:
	adrp	x8, _bcm_enetsw_ethtool_ops@GOTPAGE
Lloh35:
	ldr	x8, [x8, _bcm_enetsw_ethtool_ops@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	add	x0, x21, #40
	bl	_spin_lock_init
	mov	x0, x20
	bl	_register_netdev
	mov	x23, x0
	cbz	w0, LBB0_20
; %bb.19:
	ldr	w0, [x21, #16]
	bl	_clk_disable_unprepare
	b	LBB0_16
LBB0_20:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	stp	x20, x19, [x21, #24]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_bcm_enet_shared_base,8,3       ; @bcm_enet_shared_base
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BCMENET_DEF_RX_DESC,4,2        ; @BCMENET_DEF_RX_DESC
	.comm	_BCMENET_DEF_TX_DESC,4,2        ; @BCMENET_DEF_TX_DESC
	.comm	_BCMENETSW_DMA_MAXBURST,4,2     ; @BCMENETSW_DMA_MAXBURST
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enetsw"

	.comm	_bcm_enet_refill_rx_timer,4,2   ; @bcm_enet_refill_rx_timer
	.comm	_bcm_enetsw_ops,4,2             ; @bcm_enetsw_ops
	.comm	_bcm_enet_poll,4,2              ; @bcm_enet_poll
	.comm	_bcm_enetsw_ethtool_ops,4,2     ; @bcm_enetsw_ethtool_ops
	.no_dead_strip	_bcm_enetsw_probe
.subsections_via_symbols
