	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6gmac_open
_s6gmac_open:                           ## @s6gmac_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_phy_read_status
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 40(%rbx)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_s6gmac_linkisup
	movq	%r14, %rdi
	callq	_s6gmac_init_device
	movq	%r14, %rdi
	callq	_s6gmac_init_stats
	movq	%r14, %rdi
	callq	_s6gmac_init_dmac
	movq	%rbx, %rdi
	callq	_s6gmac_rx_fillfifo
	movl	32(%rbx), %esi
	movl	36(%rbx), %edi
	movl	$2, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$1
	pushq	$0
	pushq	$2
	pushq	$-1
	pushq	$7
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_s6dmac_enable_chan
	addq	$64, %rsp
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$0
	pushq	$2
	pushq	$-1
	pushq	$7
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_s6dmac_enable_chan
	addq	$64, %rsp
	movq	_S6_GMAC_HOST_INTMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rdi
	callq	_phy_start
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_GMAC_HOST_INT_TXBURSTOVER,4,2 ## @S6_GMAC_HOST_INT_TXBURSTOVER
	.comm	_S6_GMAC_HOST_INT_TXPREWOVER,4,2 ## @S6_GMAC_HOST_INT_TXPREWOVER
	.comm	_S6_GMAC_HOST_INT_RXBURSTUNDER,4,2 ## @S6_GMAC_HOST_INT_RXBURSTUNDER
	.comm	_S6_GMAC_HOST_INT_RXPOSTRFULL,4,2 ## @S6_GMAC_HOST_INT_RXPOSTRFULL
	.comm	_S6_GMAC_HOST_INT_RXPOSTRUNDER,4,2 ## @S6_GMAC_HOST_INT_RXPOSTRUNDER
	.comm	_S6_GMAC_HOST_INTMASK,8,3       ## @S6_GMAC_HOST_INTMASK
	.no_dead_strip	_s6gmac_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6gmac_open
_s6gmac_open:                           ; @s6gmac_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x0, [x0]
	bl	_phy_read_status
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	xzr, [x20, #40]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s6gmac_linkisup
	mov	x0, x19
	bl	_s6gmac_init_device
	mov	x0, x19
	bl	_s6gmac_init_stats
	mov	x0, x19
	bl	_s6gmac_init_dmac
	mov	x0, x20
	bl	_s6gmac_rx_fillfifo
	ldp	w1, w0, [x20, #32]
	mov	x22, #4294967296
	mov	x23, #-281462091808769
	movk	x23, #0, lsl #48
	mov	x24, #30064771072
	stp	x23, x22, [sp, #8]
	str	x24, [sp]
	mov	w2, #2
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	mov	w7, #0
	bl	_s6dmac_enable_chan
	ldp	w1, w0, [x20, #24]
	stp	x23, x22, [sp, #8]
	str	x24, [sp]
	mov	w2, #2
	mov	w3, #0
	mov	w4, #1
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_s6dmac_enable_chan
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _S6_GMAC_HOST_INTMASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S6_GMAC_HOST_INTMASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x0, [x20]
	bl	_phy_start
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_GMAC_HOST_INT_TXBURSTOVER,4,2 ; @S6_GMAC_HOST_INT_TXBURSTOVER
	.comm	_S6_GMAC_HOST_INT_TXPREWOVER,4,2 ; @S6_GMAC_HOST_INT_TXPREWOVER
	.comm	_S6_GMAC_HOST_INT_RXBURSTUNDER,4,2 ; @S6_GMAC_HOST_INT_RXBURSTUNDER
	.comm	_S6_GMAC_HOST_INT_RXPOSTRFULL,4,2 ; @S6_GMAC_HOST_INT_RXPOSTRFULL
	.comm	_S6_GMAC_HOST_INT_RXPOSTRUNDER,4,2 ; @S6_GMAC_HOST_INT_RXPOSTRUNDER
	.comm	_S6_GMAC_HOST_INTMASK,8,3       ; @S6_GMAC_HOST_INTMASK
	.no_dead_strip	_s6gmac_open
.subsections_via_symbols
