	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_event
_mlx4_en_event:                         ## @mlx4_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	leal	-130(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.5:
	callq	_netdev_priv
	movl	%ebx, (%rax)
	movl	8(%r14), %edi
	leaq	4(%rax), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_2:
	cmpl	$132, %ebx
	jne	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mlx4_err                       ## TAILCALL
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	cmpq	%rcx, (%rdi)
	jb	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_9
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mlx4_warn                      ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error detected, restarting device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unhandled event %d for port %d\n"

	.no_dead_strip	_mlx4_en_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_event
_mlx4_en_event:                         ; @mlx4_en_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w2, #128
	cmp	w8, #2
	b.lo	LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	sub	w8, w2, #130
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8, x3, lsl #2]
	cbz	w0, LBB0_10
; %bb.3:
	bl	_netdev_priv
	mov	x1, x0
	str	w20, [x1], #4
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
LBB0_4:
	cmp	w20, #132
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlx4_err
LBB0_6:
	cbz	x3, LBB0_10
; %bb.7:
	ldr	x8, [x0]
	cmp	x8, x3
	b.lo	LBB0_10
; %bb.8:
	ldr	x8, [x19]
	ldr	w8, [x8, x3, lsl #2]
	cbz	w8, LBB0_10
; %bb.9:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mlx4_warn
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error detected, restarting device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unhandled event %d for port %d\n"

	.no_dead_strip	_mlx4_en_event
.subsections_via_symbols
