	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_en_event
_handle_en_event:                       ## @handle_en_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %r8
	movq	(%rcx,%rsi,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-128(%rdx), %rcx
	cmpq	$4, %rcx
	ja	LBB0_5
## %bb.3:
	cmpq	$2, %rcx
	je	LBB0_6
## %bb.4:
	movl	(%rsi), %edx
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hns_roce_set_mac               ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r8, %rdi
	movq	%rax, %rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r8, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port(%d) can't find netdev\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"NETDEV event = 0x%x!\n"

	.no_dead_strip	_handle_en_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_en_event
_handle_en_event:                       ; @handle_en_event
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	mov	x9, x0
	ldr	x0, [x0, #8]
	ldr	x10, [x9]
	ldr	x10, [x10, x1, lsl #3]
	cbz	x10, LBB0_4
; %bb.1:
	sub	x11, x2, #128
	cmp	x11, #4
	b.hi	LBB0_5
; %bb.2:
	cmp	x11, #2
	b.eq	LBB0_6
; %bb.3:
	ldr	w2, [x10]
	mov	x0, x9
	mov	x1, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_hns_roce_set_mac
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port(%d) can't find netdev\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"NETDEV event = 0x%x!\n"

	.no_dead_strip	_handle_en_event
.subsections_via_symbols
