	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_net_open
_hix5hd2_net_open:                      ## @hix5hd2_net_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	8(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	movq	_hix5hd2_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	callq	_phy_start
	movq	%rbx, %rdi
	callq	_hix5hd2_hw_init
	movq	%rbx, %rdi
	callq	_hix5hd2_rx_refill
	movq	%r15, %rdi
	callq	_netdev_reset_queue
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_hix5hd2_port_enable
	movq	%rbx, %rdi
	callq	_hix5hd2_irq_enable
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_netdev_err
	jmp	LBB0_8
LBB0_6:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable mac core clk %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable mac ifc clk %d\n"

	.comm	_hix5hd2_adjust_link,4,2        ## @hix5hd2_adjust_link
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_hix5hd2_net_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_net_open
_hix5hd2_net_open:                      ; @hix5hd2_net_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	w0, [x0, #4]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldp	w4, w1, [x19, #12]
Lloh0:
	adrp	x2, _hix5hd2_adjust_link@GOTPAGE
Lloh1:
	ldr	x2, [x2, _hix5hd2_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	bl	_of_phy_connect
	cbz	x0, LBB0_7
; %bb.3:
	bl	_phy_start
	mov	x0, x19
	bl	_hix5hd2_hw_init
	mov	x0, x19
	bl	_hix5hd2_rx_refill
	mov	x0, x20
	bl	_netdev_reset_queue
	mov	x0, x20
	bl	_netif_start_queue
	mov	x0, x19
	bl	_napi_enable
	mov	x0, x19
	bl	_hix5hd2_port_enable
	mov	x0, x19
	bl	_hix5hd2_irq_enable
	mov	w21, #0
	b	LBB0_8
LBB0_4:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_err
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable mac core clk %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable mac ifc clk %d\n"

	.comm	_hix5hd2_adjust_link,4,2        ; @hix5hd2_adjust_link
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_hix5hd2_net_open
.subsections_via_symbols
