	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_parse_eqe
_ehea_parse_eqe:                        ## @ehea_parse_eqe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_NEQE_EVENT_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EHEA_BMASK_GET
	movl	%eax, %r13d
	movq	_NEQE_PORTNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_EHEA_BMASK_GET
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ehea_get_port
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rax, %r12
	movq	16(%rax), %r14
	cmpl	$128, %r13d
	je	LBB0_22
## %bb.2:
	cmpl	$130, %r13d
	je	LBB0_21
## %bb.3:
	cmpl	$129, %r13d
	jne	LBB0_23
## %bb.4:
	movq	_NEQE_PORT_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_EHEA_BMASK_GET
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	%r12, %rdi
	callq	_ehea_sense_port_attr
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_24:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_22:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_disable               ## TAILCALL
LBB0_21:
	leaq	L_.str.10(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_23:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_netif_tx_disable
	jmp	LBB0_12
LBB0_9:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %r8d
	cmpl	$1, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r14, %rdi
	callq	_netif_wake_queue
LBB0_12:
	movq	_NEQE_EXTSWITCH_PORT_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_EHEA_BMASK_GET
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	_EHEA_PHY_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
	movq	_prop_carrier_state@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_17
LBB0_15:
	movq	_EHEA_PHY_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_info
	movq	_prop_carrier_state@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_netif_carrier_off
LBB0_17:
	movq	_NEQE_EXTSWITCH_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_EHEA_BMASK_GET
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_19
LBB0_20:
	leaq	L_.str.9(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NEQE_EVENT_CODE,4,2            ## @NEQE_EVENT_CODE
	.comm	_NEQE_PORTNUM,4,2               ## @NEQE_PORTNUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown portnum %x\n"

	.comm	_NEQE_PORT_UP,4,2               ## @NEQE_PORT_UP
L_.str.1:                               ## @.str.1
	.asciz	"failed resensing port attributes\n"

	.comm	_link,4,2                       ## @link
L_.str.2:                               ## @.str.2
	.asciz	"Logical port up: %dMbps %s Duplex\n"

L_.str.3:                               ## @.str.3
	.asciz	"Full"

L_.str.4:                               ## @.str.4
	.asciz	"Half"

L_.str.5:                               ## @.str.5
	.asciz	"Logical port down\n"

	.comm	_NEQE_EXTSWITCH_PORT_UP,4,2     ## @NEQE_EXTSWITCH_PORT_UP
	.comm	_EHEA_PHY_LINK_UP,4,2           ## @EHEA_PHY_LINK_UP
L_.str.6:                               ## @.str.6
	.asciz	"Physical port up\n"

	.comm	_prop_carrier_state,4,2         ## @prop_carrier_state
	.comm	_EHEA_PHY_LINK_DOWN,4,2         ## @EHEA_PHY_LINK_DOWN
L_.str.7:                               ## @.str.7
	.asciz	"Physical port down\n"

	.comm	_NEQE_EXTSWITCH_PRIMARY,4,2     ## @NEQE_EXTSWITCH_PRIMARY
L_.str.8:                               ## @.str.8
	.asciz	"External switch port is primary port\n"

L_.str.9:                               ## @.str.9
	.asciz	"External switch port is backup port\n"

L_.str.10:                              ## @.str.10
	.asciz	"Adapter malfunction\n"

L_.str.11:                              ## @.str.11
	.asciz	"Port malfunction\n"

L_.str.12:                              ## @.str.12
	.asciz	"unknown event code %x, eqe=0x%llX\n"

	.no_dead_strip	_ehea_parse_eqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_parse_eqe
_ehea_parse_eqe:                        ; @ehea_parse_eqe
	.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
Lloh0:
	adrp	x8, _NEQE_EVENT_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEQE_EVENT_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_EHEA_BMASK_GET
	mov	x22, x0
Lloh3:
	adrp	x8, _NEQE_PORTNUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NEQE_PORTNUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_EHEA_BMASK_GET
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_ehea_get_port
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x19, [x0, #16]
	cmp	w22, #128
	b.eq	LBB0_9
; %bb.2:
	cmp	w22, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w22, #129
	b.ne	LBB0_12
; %bb.4:
Lloh6:
	adrp	x8, _NEQE_PORT_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NEQE_PORT_UP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_EHEA_BMASK_GET
	mov	x22, x0
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	w22, LBB0_14
; %bb.5:
	cbnz	w0, LBB0_17
; %bb.6:
	mov	x0, x21
	bl	_ehea_sense_port_attr
	cbz	w0, LBB0_16
; %bb.7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_9:
Lloh13:
	adrp	x1, l_.str.11@PAGE
Lloh14:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_netif_carrier_off
	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_tx_disable
LBB0_10:
Lloh15:
	adrp	x1, l_.str.10@PAGE
Lloh16:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_11:
	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	_netdev_err
LBB0_12:
	stp	x22, x20, [sp]
Lloh17:
	adrp	x1, l_.str.12@PAGE
Lloh18:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
LBB0_13:
	bl	_netdev_err
	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_14:
	cbz	w0, LBB0_17
; %bb.15:
Lloh19:
	adrp	x8, _link@GOTPAGE
Lloh20:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x3, l_.str.5@PAGE
Lloh23:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netif_info
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_netif_tx_disable
	b	LBB0_17
LBB0_16:
Lloh24:
	adrp	x8, _link@GOTPAGE
Lloh25:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, l_.str.4@PAGE
Lloh28:
	add	x8, x8, l_.str.4@PAGEOFF
	ldr	w9, [x21]
Lloh29:
	adrp	x10, l_.str.3@PAGE
Lloh30:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w9, #1
	csel	x8, x10, x8, eq
	ldr	w9, [x21, #8]
	stp	x9, x8, [sp]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netif_info
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_17:
Lloh33:
	adrp	x8, _NEQE_EXTSWITCH_PORT_UP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NEQE_EXTSWITCH_PORT_UP@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_EHEA_BMASK_GET
	cbz	w0, LBB0_20
; %bb.18:
Lloh36:
	adrp	x8, _EHEA_PHY_LINK_UP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EHEA_PHY_LINK_UP@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh39:
	adrp	x8, _link@GOTPAGE
Lloh40:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x3, l_.str.6@PAGE
Lloh43:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netif_info
Lloh44:
	adrp	x8, _prop_carrier_state@GOTPAGE
Lloh45:
	ldr	x8, [x8, _prop_carrier_state@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.19:
	mov	x0, x19
	bl	_netif_carrier_on
	b	LBB0_22
LBB0_20:
Lloh47:
	adrp	x8, _EHEA_PHY_LINK_DOWN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EHEA_PHY_LINK_DOWN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh50:
	adrp	x8, _link@GOTPAGE
Lloh51:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x3, l_.str.7@PAGE
Lloh54:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_netif_info
Lloh55:
	adrp	x8, _prop_carrier_state@GOTPAGE
Lloh56:
	ldr	x8, [x8, _prop_carrier_state@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_netif_carrier_off
LBB0_22:
Lloh58:
	adrp	x8, _NEQE_EXTSWITCH_PRIMARY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _NEQE_EXTSWITCH_PRIMARY@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_EHEA_BMASK_GET
	cbz	w0, LBB0_24
; %bb.23:
Lloh61:
	adrp	x1, l_.str.8@PAGE
Lloh62:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh63:
	adrp	x1, l_.str.9@PAGE
Lloh64:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_25:
	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	_netdev_info
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_NEQE_EVENT_CODE,4,2            ; @NEQE_EVENT_CODE
	.comm	_NEQE_PORTNUM,4,2               ; @NEQE_PORTNUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown portnum %x\n"

	.comm	_NEQE_PORT_UP,4,2               ; @NEQE_PORT_UP
l_.str.1:                               ; @.str.1
	.asciz	"failed resensing port attributes\n"

	.comm	_link,4,2                       ; @link
l_.str.2:                               ; @.str.2
	.asciz	"Logical port up: %dMbps %s Duplex\n"

l_.str.3:                               ; @.str.3
	.asciz	"Full"

l_.str.4:                               ; @.str.4
	.asciz	"Half"

l_.str.5:                               ; @.str.5
	.asciz	"Logical port down\n"

	.comm	_NEQE_EXTSWITCH_PORT_UP,4,2     ; @NEQE_EXTSWITCH_PORT_UP
	.comm	_EHEA_PHY_LINK_UP,4,2           ; @EHEA_PHY_LINK_UP
l_.str.6:                               ; @.str.6
	.asciz	"Physical port up\n"

	.comm	_prop_carrier_state,4,2         ; @prop_carrier_state
	.comm	_EHEA_PHY_LINK_DOWN,4,2         ; @EHEA_PHY_LINK_DOWN
l_.str.7:                               ; @.str.7
	.asciz	"Physical port down\n"

	.comm	_NEQE_EXTSWITCH_PRIMARY,4,2     ; @NEQE_EXTSWITCH_PRIMARY
l_.str.8:                               ; @.str.8
	.asciz	"External switch port is primary port\n"

l_.str.9:                               ; @.str.9
	.asciz	"External switch port is backup port\n"

l_.str.10:                              ; @.str.10
	.asciz	"Adapter malfunction\n"

l_.str.11:                              ; @.str.11
	.asciz	"Port malfunction\n"

l_.str.12:                              ; @.str.12
	.asciz	"unknown event code %x, eqe=0x%llX\n"

	.no_dead_strip	_ehea_parse_eqe
.subsections_via_symbols
