	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_open
_gmac_open:                             ## @gmac_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
	cmpl	$0, 4(%rbx)
	je	LBB0_1
LBB0_3:
	movq	_gmac_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	8(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	jmp	LBB0_14
LBB0_1:
	movq	%rbx, %rdi
	callq	_gmac_setup_phy
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r15d, %r8d
	callq	_netif_err
	jmp	LBB0_14
LBB0_5:
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movl	4(%rbx), %edi
	callq	_phy_start
	movq	%r14, %rdi
	callq	_geth_resize_freeq
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %r15d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	callq	_gmac_setup_rxq
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_netdev_err
LBB0_13:
	movl	4(%rbx), %edi
	callq	_phy_stop
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_gmac_setup_txqs
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_gmac_cleanup_rxq
	jmp	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_gmac_start_dma
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gmac_enable_irq
	movq	%rbx, %rdi
	callq	_gmac_enable_tx_rx
	movq	%rbx, %rdi
	callq	_netif_tx_start_all_queues
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hrtimer_init
	movq	_gmac_coalesce_delay_expired@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_dbg
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY init failed: %d\n"

	.comm	_gmac_irq,4,2                   ## @gmac_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"no IRQ\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"could not resize freeq\n"

L_.str.3:                               ## @.str.3
	.asciz	"could not setup RXQ\n"

L_.str.4:                               ## @.str.4
	.asciz	"could not setup TXQs\n"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_gmac_coalesce_delay_expired,4,2 ## @gmac_coalesce_delay_expired
L_.str.5:                               ## @.str.5
	.asciz	"opened\n"

	.no_dead_strip	_gmac_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_open
_gmac_open:                             ; @gmac_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _gmac_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gmac_irq@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_gmac_setup_phy
	cbz	w0, LBB0_1
; %bb.4:
	mov	x21, x0
Lloh8:
	adrp	x8, _ifup@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	bl	_netif_err
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w0, [x19, #4]
	bl	_phy_start
	mov	x0, x20
	bl	_geth_resize_freeq
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_gmac_setup_rxq
	cbz	w0, LBB0_13
; %bb.8:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_netdev_err
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_phy_stop
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	bl	_gmac_setup_txqs
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.14:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x0, x19
	bl	_gmac_cleanup_rxq
	b	LBB0_11
LBB0_15:
	add	x0, x20, #8
	bl	_napi_enable
	mov	x0, x20
	bl	_gmac_start_dma
	mov	x0, x19
	mov	w1, #1
	bl	_gmac_enable_irq
	mov	x0, x19
	bl	_gmac_enable_tx_rx
	mov	x0, x19
	bl	_netif_tx_start_all_queues
Lloh22:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hrtimer_init
Lloh28:
	adrp	x8, _gmac_coalesce_delay_expired@GOTPAGE
Lloh29:
	ldr	x8, [x8, _gmac_coalesce_delay_expired@GOTPAGEOFF]
	str	x8, [x20]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY init failed: %d\n"

	.comm	_gmac_irq,4,2                   ; @gmac_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"no IRQ\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"could not resize freeq\n"

l_.str.3:                               ; @.str.3
	.asciz	"could not setup RXQ\n"

l_.str.4:                               ; @.str.4
	.asciz	"could not setup TXQs\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_gmac_coalesce_delay_expired,4,2 ; @gmac_coalesce_delay_expired
l_.str.5:                               ; @.str.5
	.asciz	"opened\n"

	.no_dead_strip	_gmac_open
.subsections_via_symbols
