	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_open
_xgbe_open:                             ## @xgbe_open
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_netdev_name
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$7, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	8(%r14), %rbx
	movq	%r12, %rdi
	callq	_netdev_name
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$7, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	16(%r14), %rbx
	movq	%r12, %rdi
	callq	_netdev_name
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$7, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	callq	_netdev_name
	movq	%rax, %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_xgbe_phy_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movl	40(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_alert
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_7:
	movl	44(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_alert
	jmp	LBB0_14
LBB0_9:
	leaq	64(%r14), %rdi
	movq	_xgbe_service@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	60(%r14), %rdi
	movq	_xgbe_restart@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	56(%r14), %rdi
	movq	_xgbe_stopdev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	52(%r14), %rdi
	movq	_xgbe_tx_tstamp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_xgbe_alloc_memory
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_xgbe_start
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_xgbe_free_memory
LBB0_13:
	movl	44(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_14:
	movl	40(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_15:
	movq	32(%r14), %rdi
	callq	_destroy_workqueue
LBB0_16:
	movq	24(%r14), %rdi
	callq	_destroy_workqueue
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_XGBE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$48, %r14
	movq	%r14, %rsi
	callq	_clear_bit
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-pcs"

L_.str.1:                               ## @.str.1
	.asciz	"%s-ecc"

L_.str.2:                               ## @.str.2
	.asciz	"%s-i2c"

L_.str.3:                               ## @.str.3
	.asciz	"device workqueue creation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"phy workqueue creation failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"dma clk_prepare_enable failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"ptp clk_prepare_enable failed\n"

	.comm	_xgbe_service,4,2               ## @xgbe_service
	.comm	_xgbe_restart,4,2               ## @xgbe_restart
	.comm	_xgbe_stopdev,4,2               ## @xgbe_stopdev
	.comm	_xgbe_tx_tstamp,4,2             ## @xgbe_tx_tstamp
	.comm	_XGBE_DOWN,4,2                  ## @XGBE_DOWN
	.no_dead_strip	_xgbe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_open
_xgbe_open:                             ; @xgbe_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x20
	bl	_netdev_name
	mov	x3, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #7
	bl	_snprintf
	ldr	x21, [x19, #8]
	mov	x0, x20
	bl	_netdev_name
	mov	x3, x0
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #7
	bl	_snprintf
	ldr	x21, [x19, #16]
	mov	x0, x20
	bl	_netdev_name
	mov	x3, x0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w1, #7
	bl	_snprintf
	mov	x0, x20
	bl	_netdev_name
	bl	_create_singlethread_workqueue
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x0, [x19]
	bl	_create_singlethread_workqueue
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_xgbe_phy_reset
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	w0, [x19, #40]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_alert
	b	LBB0_14
LBB0_5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_6:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_7:
	ldr	w0, [x19, #44]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_netdev_alert
	b	LBB0_13
LBB0_9:
	add	x0, x19, #64
Lloh20:
	adrp	x8, _xgbe_service@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xgbe_service@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #60
Lloh23:
	adrp	x8, _xgbe_restart@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xgbe_restart@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #56
Lloh26:
	adrp	x8, _xgbe_stopdev@GOTPAGE
Lloh27:
	ldr	x8, [x8, _xgbe_stopdev@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #52
Lloh29:
	adrp	x8, _xgbe_tx_tstamp@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xgbe_tx_tstamp@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_xgbe_alloc_memory
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_xgbe_start
	mov	x21, x0
	cbz	w0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_xgbe_free_memory
LBB0_12:
	ldr	w0, [x19, #44]
	bl	_clk_disable_unprepare
LBB0_13:
	ldr	w0, [x19, #40]
	bl	_clk_disable_unprepare
LBB0_14:
	ldr	x0, [x19, #32]
	bl	_destroy_workqueue
LBB0_15:
	ldr	x0, [x19, #24]
	bl	_destroy_workqueue
LBB0_16:
	mov	x0, x21
	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
LBB0_17:
Lloh32:
	adrp	x8, _XGBE_DOWN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XGBE_DOWN@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_clear_bit
	b	LBB0_16
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-pcs"

l_.str.1:                               ; @.str.1
	.asciz	"%s-ecc"

l_.str.2:                               ; @.str.2
	.asciz	"%s-i2c"

l_.str.3:                               ; @.str.3
	.asciz	"device workqueue creation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"phy workqueue creation failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"dma clk_prepare_enable failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"ptp clk_prepare_enable failed\n"

	.comm	_xgbe_service,4,2               ; @xgbe_service
	.comm	_xgbe_restart,4,2               ; @xgbe_restart
	.comm	_xgbe_stopdev,4,2               ; @xgbe_stopdev
	.comm	_xgbe_tx_tstamp,4,2             ; @xgbe_tx_tstamp
	.comm	_XGBE_DOWN,4,2                  ; @XGBE_DOWN
	.no_dead_strip	_xgbe_open
.subsections_via_symbols
