	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_open
_ag71xx_open:                           ## @ag71xx_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movl	4(%rbx), %edi
	callq	_ag71xx_max_frame_len
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_SKB_DATA_ALIGN
	movl	%eax, (%r14)
	movq	_AG71XX_REG_MAC_MFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ag71xx_wr
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ag71xx_hw_set_macaddr
	movq	%r14, %rdi
	callq	_ag71xx_hw_enable
	movl	%eax, %ebx
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	callq	_ag71xx_rings_cleanup
	jmp	LBB0_3
LBB0_1:
	callq	_ag71xx_phy_start
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_AG71XX_REG_MAC_MFL,4,2         ## @AG71XX_REG_MAC_MFL
	.no_dead_strip	_ag71xx_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_open
_ag71xx_open:                           ; @ag71xx_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
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	w0, [x20, #4]
	bl	_ag71xx_max_frame_len
	mov	x21, x0
Lloh0:
	adrp	x8, _NET_SKB_PAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_SKB_PAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w0, uxtw
Lloh3:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9
	bl	_SKB_DATA_ALIGN
	str	w0, [x19]
Lloh6:
	adrp	x8, _AG71XX_REG_MAC_MFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AG71XX_REG_MAC_MFL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ag71xx_wr
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ag71xx_hw_set_macaddr
	mov	x0, x19
	bl	_ag71xx_hw_enable
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ag71xx_rings_cleanup
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ag71xx_phy_start
LBB0_3:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_AG71XX_REG_MAC_MFL,4,2         ; @AG71XX_REG_MAC_MFL
	.no_dead_strip	_ag71xx_open
.subsections_via_symbols
