	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_farch_handle_driver_event
_ef4_farch_handle_driver_event:         ## @ef4_farch_handle_driver_event
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rsi), %edi
	movq	_FSF_AZ_DRIVER_EV_SUBCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	_FSF_AZ_DRIVER_EV_SUBDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_QWORD_FIELD
	leal	-128(%rbx), %ecx
	cmpl	$8, %ecx
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	_tx_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_14
LBB0_13:
	movq	_rx_err@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	leaq	L_.str.7(%rip), %rcx
LBB0_14:
	movq	%r14, %rdi
	movl	%eax, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	movq	_RESET_TYPE_DMA_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_vdbg
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ef4_farch_handle_tx_flush_done ## TAILCALL
LBB0_8:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.5(%rip), %rcx
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %r9d
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_vdbg                     ## TAILCALL
LBB0_5:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_vdbg                     ## TAILCALL
LBB0_3:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_netif_vdbg
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ef4_farch_handle_rx_flush_done ## TAILCALL
LBB0_4:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %r9d
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
LBB0_9:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	leaq	4(%r14), %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_EF4_WORKAROUND_6555
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movq	_RESET_TYPE_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	movq	_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	(%r15), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str.9(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_vdbg
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_RESET_TYPE_RX_RECOVERY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ef4_schedule_reset             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_FSF_AZ_DRIVER_EV_SUBCODE,4,2   ## @FSF_AZ_DRIVER_EV_SUBCODE
	.comm	_FSF_AZ_DRIVER_EV_SUBDATA,4,2   ## @FSF_AZ_DRIVER_EV_SUBDATA
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d TXQ %d flushed\n"

L_.str.1:                               ## @.str.1
	.asciz	"channel %d RXQ %d flushed\n"

L_.str.2:                               ## @.str.2
	.asciz	"channel %d EVQ %d initialised\n"

L_.str.3:                               ## @.str.3
	.asciz	"channel %d SRAM update done\n"

L_.str.4:                               ## @.str.4
	.asciz	"channel %d RXQ %d wakeup event\n"

L_.str.5:                               ## @.str.5
	.asciz	"channel %d RX queue %d timer expired\n"

	.comm	_rx_err,4,2                     ## @rx_err
L_.str.6:                               ## @.str.6
	.asciz	"channel %d seen DRIVER RX_RESET event. Resetting.\n"

	.comm	_RESET_TYPE_RX_RECOVERY,4,2     ## @RESET_TYPE_RX_RECOVERY
	.comm	_RESET_TYPE_DISABLE,4,2         ## @RESET_TYPE_DISABLE
L_.str.7:                               ## @.str.7
	.asciz	"RX DMA Q %d reports descriptor fetch error. RX Q %d is disabled.\n"

	.comm	_RESET_TYPE_DMA_ERROR,4,2       ## @RESET_TYPE_DMA_ERROR
	.comm	_tx_err,4,2                     ## @tx_err
L_.str.8:                               ## @.str.8
	.asciz	"TX DMA Q %d reports descriptor fetch error. TX Q %d is disabled.\n"

L_.str.9:                               ## @.str.9
	.asciz	"channel %d unknown driver event code %d data %04x\n"

	.no_dead_strip	_ef4_farch_handle_driver_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_farch_handle_driver_event
_ef4_farch_handle_driver_event:         ; @ef4_farch_handle_driver_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _FSF_AZ_DRIVER_EV_SUBCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSF_AZ_DRIVER_EV_SUBCODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	mov	x22, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _FSF_AZ_DRIVER_EV_SUBDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSF_AZ_DRIVER_EV_SUBDATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EF4_QWORD_FIELD
	mov	x5, x0
	sub	w8, w22, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _tx_err@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x8, x5
Lloh11:
	adrp	x3, l_.str.8@PAGE
Lloh12:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _hw@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
Lloh16:
	adrp	x3, l_.str.9@PAGE
Lloh17:
	add	x3, x3, l_.str.9@PAGEOFF
	stp	x22, x5, [sp]
	b	LBB0_10
LBB0_4:
Lloh18:
	adrp	x8, _rx_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x8, x5
Lloh21:
	adrp	x3, l_.str.7@PAGE
Lloh22:
	add	x3, x3, l_.str.7@PAGEOFF
LBB0_5:
	str	x8, [sp]
	mov	x0, x19
	mov	x4, x5
	bl	_netif_err
Lloh23:
	adrp	x8, _RESET_TYPE_DMA_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RESET_TYPE_DMA_ERROR@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh25:
	adrp	x8, _hw@GOTPAGE
Lloh26:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
Lloh28:
	adrp	x3, l_.str.4@PAGE
Lloh29:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh30:
	adrp	x8, _hw@GOTPAGE
Lloh31:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
Lloh33:
	adrp	x3, l_.str@PAGE
Lloh34:
	add	x3, x3, l_.str@PAGEOFF
	str	x5, [sp]
	mov	x0, x19
	bl	_netif_vdbg
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ef4_farch_handle_tx_flush_done
LBB0_8:
Lloh35:
	adrp	x8, _hw@GOTPAGE
Lloh36:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
Lloh38:
	adrp	x3, l_.str.5@PAGE
Lloh39:
	add	x3, x3, l_.str.5@PAGEOFF
LBB0_9:
	str	x5, [sp]
LBB0_10:
	mov	x0, x19
	bl	_netif_vdbg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh40:
	adrp	x8, _hw@GOTPAGE
Lloh41:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh43:
	adrp	x3, l_.str.3@PAGE
Lloh44:
	add	x3, x3, l_.str.3@PAGEOFF
	ldr	w4, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_netif_vdbg
LBB0_12:
Lloh45:
	adrp	x8, _hw@GOTPAGE
Lloh46:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
                                        ; kill: def $w5 killed $w5 killed $x5 def $x5
Lloh48:
	adrp	x3, l_.str.1@PAGE
Lloh49:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x5, [sp]
	mov	x0, x19
	bl	_netif_vdbg
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ef4_farch_handle_rx_flush_done
LBB0_13:
Lloh50:
	adrp	x8, _hw@GOTPAGE
Lloh51:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x21]
Lloh53:
	adrp	x3, l_.str.2@PAGE
Lloh54:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_netif_dbg
LBB0_14:
Lloh55:
	adrp	x8, _rx_err@GOTPAGE
Lloh56:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x20, x19
	ldr	w2, [x20], #4
	ldr	w4, [x21]
Lloh58:
	adrp	x3, l_.str.6@PAGE
Lloh59:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	mov	x0, x20
	bl	_atomic_inc
	mov	x0, x19
	bl	_EF4_WORKAROUND_6555
Lloh60:
	adrp	x8, _RESET_TYPE_RX_RECOVERY@GOTPAGE
Lloh61:
	ldr	x8, [x8, _RESET_TYPE_RX_RECOVERY@GOTPAGEOFF]
Lloh62:
	adrp	x9, _RESET_TYPE_DISABLE@GOTPAGE
Lloh63:
	ldr	x9, [x9, _RESET_TYPE_DISABLE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ef4_schedule_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_FSF_AZ_DRIVER_EV_SUBCODE,4,2   ; @FSF_AZ_DRIVER_EV_SUBCODE
	.comm	_FSF_AZ_DRIVER_EV_SUBDATA,4,2   ; @FSF_AZ_DRIVER_EV_SUBDATA
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d TXQ %d flushed\n"

l_.str.1:                               ; @.str.1
	.asciz	"channel %d RXQ %d flushed\n"

l_.str.2:                               ; @.str.2
	.asciz	"channel %d EVQ %d initialised\n"

l_.str.3:                               ; @.str.3
	.asciz	"channel %d SRAM update done\n"

l_.str.4:                               ; @.str.4
	.asciz	"channel %d RXQ %d wakeup event\n"

l_.str.5:                               ; @.str.5
	.asciz	"channel %d RX queue %d timer expired\n"

	.comm	_rx_err,4,2                     ; @rx_err
l_.str.6:                               ; @.str.6
	.asciz	"channel %d seen DRIVER RX_RESET event. Resetting.\n"

	.comm	_RESET_TYPE_RX_RECOVERY,4,2     ; @RESET_TYPE_RX_RECOVERY
	.comm	_RESET_TYPE_DISABLE,4,2         ; @RESET_TYPE_DISABLE
l_.str.7:                               ; @.str.7
	.asciz	"RX DMA Q %d reports descriptor fetch error. RX Q %d is disabled.\n"

	.comm	_RESET_TYPE_DMA_ERROR,4,2       ; @RESET_TYPE_DMA_ERROR
	.comm	_tx_err,4,2                     ; @tx_err
l_.str.8:                               ; @.str.8
	.asciz	"TX DMA Q %d reports descriptor fetch error. TX Q %d is disabled.\n"

l_.str.9:                               ; @.str.9
	.asciz	"channel %d unknown driver event code %d data %04x\n"

	.no_dead_strip	_ef4_farch_handle_driver_event
.subsections_via_symbols
