	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_open
_temac_open:                            ## @temac_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	%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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	4(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	20(%r14), %edi
	movq	_temac_adjust_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%rax, %r15
LBB0_8:
	movq	%r15, %rdi
	callq	_phy_start
	jmp	LBB0_9
LBB0_3:
	movl	16(%r14), %edi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:
	movl	20(%r14), %edi
	movl	12(%r14), %ecx
	movl	16(%r14), %esi
	movq	_temac_adjust_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_connect
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r12, %rdi
	callq	_temac_device_reset
	movl	4(%r14), %edi
	movq	_ll_temac_tx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	testq	%r15, %r15
	je	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_phy_disconnect
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r13d, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%r14), %edi
	movq	_ll_temac_rx_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %r13d
	movl	4(%r14), %edi
	movq	%r12, %rsi
	callq	_free_irq
	testq	%r15, %r15
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temac_open()\n"

	.comm	_temac_adjust_link,4,2          ## @temac_adjust_link
L_.str.1:                               ## @.str.1
	.asciz	"of_phy_connect() failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"phy_connect() failed\n"

	.comm	_ll_temac_tx_irq,4,2            ## @ll_temac_tx_irq
	.comm	_ll_temac_rx_irq,4,2            ## @ll_temac_rx_irq
L_.str.3:                               ## @.str.3
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_temac_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temac_open
_temac_open:                            ; @temac_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
	add	x0, x20, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x8, _temac_adjust_link@GOTPAGE
Lloh3:
	ldr	x8, [x8, _temac_adjust_link@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_of_phy_connect
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	bl	_phy_start
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:
	ldp	w1, w0, [x19, #16]
Lloh5:
	adrp	x8, _temac_adjust_link@GOTPAGE
Lloh6:
	ldr	x8, [x8, _temac_adjust_link@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x19, #12]
	bl	_phy_connect
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.6:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	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
	b	_PTR_ERR
LBB0_7:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x0, x20
	bl	_temac_device_reset
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _ll_temac_tx_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ll_temac_tx_irq@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.10:
	cbz	x21, LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_phy_disconnect
LBB0_12:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_13:
	mov	x0, x22
	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_14:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x8, _ll_temac_rx_irq@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ll_temac_rx_irq@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.15:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_free_irq
	cbnz	x21, LBB0_11
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temac_open()\n"

	.comm	_temac_adjust_link,4,2          ; @temac_adjust_link
l_.str.1:                               ; @.str.1
	.asciz	"of_phy_connect() failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"phy_connect() failed\n"

	.comm	_ll_temac_tx_irq,4,2            ; @ll_temac_tx_irq
	.comm	_ll_temac_rx_irq,4,2            ; @ll_temac_rx_irq
l_.str.3:                               ; @.str.3
	.asciz	"request_irq() failed\n"

	.no_dead_strip	_temac_open
.subsections_via_symbols
