	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_port_change
_handle_port_change:                    ## @handle_port_change
	.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
	movq	%rsi, %rbx
	movl	4(%rsi), %esi
	shrl	$4, %esi
	andl	$15, %esi
	movl	%esi, 4(%rdx)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	addq	$8, %rdi
	callq	_mlx5_ib_port_link_layer
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_4:
	cmpl	$134, (%rbx)
	jne	LBB0_10
## %bb.5:
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_IB_EVENT_PKEY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%rdi), %rax
	movl	%esi, %ecx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	callq	_schedule_work
	jmp	LBB0_12
LBB0_7:
	movq	_IB_EVENT_LID_CHANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_IB_EVENT_GID_CHANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_IB_EVENT_CLIENT_REREGISTER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ## @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ## @IB_EVENT_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ERR,4,2          ## @IB_EVENT_PORT_ERR
	.comm	_IB_EVENT_LID_CHANGE,4,2        ## @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ## @IB_EVENT_PKEY_CHANGE
	.comm	_IB_EVENT_GID_CHANGE,4,2        ## @IB_EVENT_GID_CHANGE
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ## @IB_EVENT_CLIENT_REREGISTER
	.no_dead_strip	_handle_port_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_port_change
_handle_port_change:                    ; @handle_port_change
	.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
	mov	x20, x1
	ldp	w9, w8, [x1]
	ubfx	x1, x8, #4, #4
	str	w1, [x2, #4]
	sub	w8, w9, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x0, x0, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_mlx5_ib_port_link_layer
Lloh2:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	w0, #0
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
Lloh10:
	adrp	x10, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
	cmp	w8, #134
	csel	x8, x9, x10, eq
	b	LBB0_9
LBB0_5:
Lloh12:
	adrp	x8, _IB_EVENT_PKEY_CHANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_EVENT_PKEY_CHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x0]
	add	x8, x8, x1, lsl #2
	sub	x0, x8, #4
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	w0, #0
Lloh15:
	adrp	x8, _IB_EVENT_LID_CHANGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_EVENT_LID_CHANGE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
Lloh17:
	adrp	x8, _IB_EVENT_GID_CHANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_EVENT_GID_CHANGE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
Lloh19:
	adrp	x8, _IB_EVENT_CLIENT_REREGISTER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_EVENT_CLIENT_REREGISTER@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ; @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ; @IB_EVENT_PORT_ACTIVE
	.comm	_IB_EVENT_PORT_ERR,4,2          ; @IB_EVENT_PORT_ERR
	.comm	_IB_EVENT_LID_CHANGE,4,2        ; @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ; @IB_EVENT_PKEY_CHANGE
	.comm	_IB_EVENT_GID_CHANGE,4,2        ; @IB_EVENT_GID_CHANGE
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ; @IB_EVENT_CLIENT_REREGISTER
	.no_dead_strip	_handle_port_change
.subsections_via_symbols
