	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_event
_mlx4_ib_event:                         ## @mlx4_ib_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_to_mdev
	xorl	%r13d, %r13d
	cmpl	$131, %r12d
	movq	%rbx, %r15
	cmovneq	%r13, %r15
	cmovnel	%ebx, %r13d
	addl	$-128, %r12d
	cmpl	$5, %r12d
	ja	LBB0_14
## %bb.1:
	movq	%rax, %rdi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_19:
	movl	%r13d, %esi
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_17:
	movl	%r13d, %esi
	movl	$1, %edx
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_slave_init                  ## TAILCALL
LBB0_2:
	cmpl	(%rdi), %r13d
	jg	LBB0_14
## %bb.3:
	movq	%rdi, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	%r13d, %esi
	callq	_rdma_port_get_link_layer
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_mlx4_ib_invalidate_all_guid_record
LBB0_6:
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	%rdi, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movq	%rax, %rbx
	movq	_handle_port_mgmt_change_event@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, 8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_16
## %bb.20:
	movq	_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_8:
	cmpl	(%rdi), %r13d
	jg	LBB0_14
## %bb.9:
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movl	$0, 4(%rdi)
	movq	_IB_EVENT_DEVICE_FATAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
LBB0_13:
	movq	%r14, -64(%rbp)
	movslq	%r13d, %rax
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_ib_dispatch_event
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_16:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_port_mgmt_change_event  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ## @IB_LINK_LAYER_INFINIBAND
	.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_DEVICE_FATAL,4,2      ## @IB_EVENT_DEVICE_FATAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory for events work\n"

	.comm	_wq,4,2                         ## @wq
	.no_dead_strip	_mlx4_ib_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_event
_mlx4_ib_event:                         ; @mlx4_ib_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_to_mdev
	cmp	w24, #131
	csel	w20, wzr, w23, eq
	csel	x23, x23, xzr, eq
	sub	w8, w24, #128
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.1:
	mov	x21, x0
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:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_do_slave_init
LBB0_5:
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_18
; %bb.6:
	mov	x0, x22
	bl	_mlx4_is_master
	cbz	w0, LBB0_9
; %bb.7:
	add	x0, x21, #8
	mov	x1, x20
	bl	_rdma_port_get_link_layer
Lloh2:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_ib_invalidate_all_guid_record
LBB0_9:
Lloh5:
	adrp	x8, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_19
; %bb.11:
	mov	x24, x0
Lloh10:
	adrp	x1, _handle_port_mgmt_change_event@GOTPAGE
Lloh11:
	ldr	x1, [x1, _handle_port_mgmt_change_event@GOTPAGEOFF]
	bl	_INIT_WORK
	add	x0, x24, #16
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	str	x21, [x24, #8]
	mov	x0, x22
	bl	_mlx4_is_master
	cbz	w0, LBB0_20
; %bb.12:
Lloh12:
	adrp	x8, _wq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wq@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_queue_work
LBB0_13:
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_18
; %bb.14:
Lloh15:
	adrp	x8, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	str	wzr, [x21, #4]
Lloh17:
	adrp	x8, _IB_EVENT_DEVICE_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_EVENT_DEVICE_FATAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [sp, #24]
LBB0_17:
	sxtw	x8, w20
	stp	x8, x19, [sp, #8]
	add	x0, sp, #8
	bl	_ib_dispatch_event
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_17
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_handle_port_mgmt_change_event
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ; @IB_LINK_LAYER_INFINIBAND
	.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_DEVICE_FATAL,4,2      ; @IB_EVENT_DEVICE_FATAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory for events work\n"

	.comm	_wq,4,2                         ; @wq
	.no_dead_strip	_mlx4_ib_event
.subsections_via_symbols
