	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91ether_close
_at91ether_close:                       ## @at91ether_close
	.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	_AT91_EMAC_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_at91_emac_read
	movl	(%r15), %edi
	movq	_AT91_EMAC_TE@GOTPCREL(%rip), %rcx
	movq	_AT91_EMAC_RE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	orq	(%rcx), %rsi
	notq	%rsi
	andq	%rax, %rsi
	callq	_at91_emac_write
	movq	%rbx, %rdi
	callq	_disable_phyirq
	movq	_AT91_EMAC_RCOM@GOTPCREL(%rip), %rax
	movq	_AT91_EMAC_RBNA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	orq	(%rax), %rsi
	movq	_AT91_EMAC_TUND@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_AT91_EMAC_RTRY@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_AT91_EMAC_TCOM@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_AT91_EMAC_IDR@GOTPCREL(%rip), %rax
	movq	_AT91_EMAC_ROVR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	movl	(%rax), %edi
	movq	_AT91_EMAC_ABT@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	callq	_at91_emac_write
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	(%r14), %edi
	callq	_clk_disable
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_EMAC_CTL,4,2              ## @AT91_EMAC_CTL
	.comm	_AT91_EMAC_TE,8,3               ## @AT91_EMAC_TE
	.comm	_AT91_EMAC_RE,8,3               ## @AT91_EMAC_RE
	.comm	_AT91_EMAC_IDR,4,2              ## @AT91_EMAC_IDR
	.comm	_AT91_EMAC_RCOM,8,3             ## @AT91_EMAC_RCOM
	.comm	_AT91_EMAC_RBNA,8,3             ## @AT91_EMAC_RBNA
	.comm	_AT91_EMAC_TUND,8,3             ## @AT91_EMAC_TUND
	.comm	_AT91_EMAC_RTRY,8,3             ## @AT91_EMAC_RTRY
	.comm	_AT91_EMAC_TCOM,8,3             ## @AT91_EMAC_TCOM
	.comm	_AT91_EMAC_ROVR,8,3             ## @AT91_EMAC_ROVR
	.comm	_AT91_EMAC_ABT,8,3              ## @AT91_EMAC_ABT
	.no_dead_strip	_at91ether_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91ether_close
_at91ether_close:                       ; @at91ether_close
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x21, _AT91_EMAC_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AT91_EMAC_CTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_at91_emac_read
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _AT91_EMAC_TE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AT91_EMAC_TE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _AT91_EMAC_RE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AT91_EMAC_RE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	orr	x9, x10, x9
	bic	x1, x0, x9
	mov	x0, x8
	bl	_at91_emac_write
	mov	x0, x19
	bl	_disable_phyirq
Lloh8:
	adrp	x8, _AT91_EMAC_IDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT91_EMAC_IDR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _AT91_EMAC_RCOM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT91_EMAC_RCOM@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _AT91_EMAC_RBNA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AT91_EMAC_RBNA@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh17:
	adrp	x9, _AT91_EMAC_TUND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AT91_EMAC_TUND@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh20:
	adrp	x9, _AT91_EMAC_RTRY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AT91_EMAC_RTRY@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh23:
	adrp	x9, _AT91_EMAC_TCOM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AT91_EMAC_TCOM@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh26:
	adrp	x9, _AT91_EMAC_ROVR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AT91_EMAC_ROVR@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh29:
	adrp	x9, _AT91_EMAC_ABT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AT91_EMAC_ABT@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	orr	x1, x8, x9
	bl	_at91_emac_write
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w0, [x20]
	bl	_clk_disable
	mov	w0, #0
	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	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_EMAC_CTL,4,2              ; @AT91_EMAC_CTL
	.comm	_AT91_EMAC_TE,8,3               ; @AT91_EMAC_TE
	.comm	_AT91_EMAC_RE,8,3               ; @AT91_EMAC_RE
	.comm	_AT91_EMAC_IDR,4,2              ; @AT91_EMAC_IDR
	.comm	_AT91_EMAC_RCOM,8,3             ; @AT91_EMAC_RCOM
	.comm	_AT91_EMAC_RBNA,8,3             ; @AT91_EMAC_RBNA
	.comm	_AT91_EMAC_TUND,8,3             ; @AT91_EMAC_TUND
	.comm	_AT91_EMAC_RTRY,8,3             ; @AT91_EMAC_RTRY
	.comm	_AT91_EMAC_TCOM,8,3             ; @AT91_EMAC_TCOM
	.comm	_AT91_EMAC_ROVR,8,3             ; @AT91_EMAC_ROVR
	.comm	_AT91_EMAC_ABT,8,3              ; @AT91_EMAC_ABT
	.no_dead_strip	_at91ether_close
.subsections_via_symbols
