	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_demux_mad
_mlx4_ib_demux_mad:                     ## @mlx4_ib_demux_mad
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_to_mdev
	movq	%rax, %r12
	movl	$-1, -44(%rbp)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_rdma_port_get_link_layer
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.1:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	(%r12), %rdi
	callq	_mlx4_master_func_num
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
	testb	$-128, 4(%rbx)
	movq	%rbx, %rcx
	je	LBB0_4
## %bb.2:
	movl	8(%rcx), %eax
	movl	%eax, -44(%rbp)
	movl	$255, %r15d
	cmpl	$255, %eax
	je	LBB0_4
## %bb.3:
	movl	$0, 8(%rcx)
	movl	%eax, %r15d
LBB0_4:
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, (%rsi)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %r14
	je	LBB0_12
## %bb.5:
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	(%r14), %rbx
	movq	_IB_SA_WELL_KNOWN_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	cmpq	%rax, %rbx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_11
## %bb.6:
	movq	8(%r14), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	callq	_atomic64_read
	movl	%eax, %edi
	callq	_cpu_to_be64
	cmpq	%rax, %r15
	jne	LBB0_11
## %bb.7:
	movl	$0, -44(%rbp)
	xorl	%r15d, %r15d
	movq	%r13, %rsi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	leaq	-104(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	_get_gids_from_l3_hdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_47
LBB0_11:
	movq	(%r14), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mlx4_ib_find_real_gid
	movl	%eax, %r15d
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	movq	%r13, %rsi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	js	LBB0_23
LBB0_12:
	movl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	ja	LBB0_26
## %bb.13:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_14:
	movq	%rcx, %rbx
	movq	%rsi, %r13
	movl	$255, %edx
	cmpl	$255, %r15d
	je	LBB0_38
## %bb.15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	callq	_mlx4_master_func_num
	cmpl	%eax, %r15d
	je	LBB0_37
## %bb.35:
	movq	(%r14), %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx4_vf_smi_enabled
	testl	%eax, %eax
	je	LBB0_48
## %bb.36:
	movl	4(%rbx), %r8d
	movq	_IB_MGMT_METHOD_RESP@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	jne	LBB0_37
## %bb.54:
	movl	(%rbx), %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	jmp	LBB0_34
LBB0_17:
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.18:
	movq	%rbx, %rax
	cmpl	$132, (%rbx)
	jne	LBB0_32
## %bb.19:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movl	-72(%rbp), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %esi
	callq	_mlx4_get_slave_from_roce_gid
	testl	%eax, %eax
	je	LBB0_50
## %bb.20:
	movq	(%r12), %rdi
	callq	_mlx4_is_mf_bonded
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	cmpl	$1, %r15d
	sete	%al
	movl	%eax, %r15d
	incl	%r15d
	movq	(%r12), %rdi
	movl	-72(%rbp), %edx
	leaq	-44(%rbp), %rcx
	movl	%r15d, %esi
	callq	_mlx4_get_slave_from_roce_gid
	testl	%eax, %eax
	je	LBB0_49
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
LBB0_24:
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
	jmp	LBB0_43
LBB0_25:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_33
LBB0_26:
	movq	%rsi, %r13
	movq	%rcx, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_mlx4_master_func_num
	cmpl	%eax, %r15d
	jne	LBB0_45
LBB0_37:
	movl	%r15d, %edx
	jmp	LBB0_38
LBB0_28:
	movq	%rsi, %r13
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rcx, %rbx
	callq	_mlx4_ib_demux_sa_handler
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	testl	%eax, %eax
	jne	LBB0_47
	jmp	LBB0_38
LBB0_29:
	movq	%rsi, %r13
	movq	%rcx, %rbx
	movl	4(%rcx), %eax
	movq	_IB_MGMT_METHOD_GET_RESP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	cmpl	(%rcx), %eax
	jne	LBB0_47
	jmp	LBB0_38
LBB0_30:
	movq	%rsi, %r13
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rcx, %rbx
	callq	_mlx4_ib_demux_cm_handler
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_47
## %bb.31:
	movl	-44(%rbp), %edx
LBB0_38:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_41
## %bb.39:
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	movl	%edx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_mlx4_ib_send_to_slave
	testl	%eax, %eax
	je	LBB0_44
LBB0_40:
	movl	-44(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	jmp	LBB0_46
LBB0_41:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
LBB0_42:
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
LBB0_43:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_47
LBB0_32:
	leaq	L_.str.1(%rip), %rsi
LBB0_33:
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mlx4_ib_warn
LBB0_34:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_47
LBB0_44:
	xorl	%r14d, %r14d
	jmp	LBB0_47
LBB0_45:
	movl	(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %edx
LBB0_46:
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_47:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_49:
	movl	-44(%rbp), %esi
	movl	16(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_50:
	movl	-44(%rbp), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_53
## %bb.51:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_mlx4_ib_demux_cm_handler
	testq	%rax, %rax
	jne	LBB0_47
## %bb.52:
	movl	-44(%rbp), %esi
	movq	%r12, %r8
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_mlx4_ib_send_to_slave
	testl	%eax, %eax
	jne	LBB0_40
	jmp	LBB0_47
LBB0_53:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	jmp	LBB0_42
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RoCE grh not present.\n"

L_.str.1:                               ## @.str.1
	.asciz	"RoCE mgmt class is not CM\n"

L_.str.2:                               ## @.str.2
	.asciz	"resolved slave %d from gid %pI6 wire port %d other %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed matching grh\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"slave id: %d is bigger than allowed:%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed sending to slave %d via tunnel qp (%d)\n"

	.comm	_IB_SA_WELL_KNOWN_GUID,4,2      ## @IB_SA_WELL_KNOWN_GUID
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_IB_MGMT_METHOD_RESP,4,2        ## @IB_MGMT_METHOD_RESP
L_.str.6:                               ## @.str.6
	.asciz	"demux QP0. rejecting unsolicited mad for slave %d class 0x%x, method 0x%x\n"

	.comm	_IB_MGMT_METHOD_GET_RESP,4,2    ## @IB_MGMT_METHOD_GET_RESP
L_.str.7:                               ## @.str.7
	.asciz	"dropping unsupported ingress mad from class:%d for slave:%d\n"

	.no_dead_strip	_mlx4_ib_demux_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_demux_mad
_mlx4_ib_demux_mad:                     ; @mlx4_ib_demux_mad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_to_mdev
	mov	x24, x0
	mov	w8, #-1
	str	w8, [sp, #44]
	mov	x0, x19
	mov	x1, x23
	bl	_rdma_port_get_link_layer
Lloh0:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x24]
	bl	_mlx4_master_func_num
	mov	x25, x0
	str	w0, [sp, #44]
	ldrb	w8, [x20, #4]
	tbz	w8, #7, LBB0_15
; %bb.2:
	ldr	w25, [x20, #8]
	str	w25, [sp, #44]
	cmp	w25, #255
	b.ne	LBB0_14
; %bb.3:
	mov	w25, #255
	b	LBB0_15
LBB0_4:
	add	x1, sp, #32
	add	x2, sp, #40
	mov	x0, x21
	bl	_get_gids_from_l3_hdr
	cbnz	x0, LBB0_46
; %bb.5:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _IB_WC_GRH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_WC_GRH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, #132
	b.ne	LBB0_44
; %bb.7:
	ldr	x0, [x24]
	ldr	w2, [sp, #40]
	add	x3, sp, #44
	mov	x1, x23
	bl	_mlx4_get_slave_from_roce_gid
	cbz	w0, LBB0_11
; %bb.8:
	ldr	x0, [x24]
	bl	_mlx4_is_mf_bonded
	cbz	x0, LBB0_24
; %bb.9:
	cmp	w23, #1
	mov	w8, #1
	cinc	w23, w8, eq
	ldr	x0, [x24]
	ldr	w2, [sp, #40]
	add	x3, sp, #44
	mov	x1, x23
	bl	_mlx4_get_slave_from_roce_gid
	cbnz	w0, LBB0_24
; %bb.10:
	ldr	w1, [sp, #44]
	ldr	w2, [x21, #16]
	stp	x23, x23, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_11:
	ldr	w8, [sp, #44]
	ldr	x9, [x24]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_49
; %bb.12:
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	mov	x3, x20
	bl	_mlx4_ib_demux_cm_handler
	cbnz	x0, LBB0_40
; %bb.13:
	ldr	w1, [sp, #44]
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
	mov	x0, x24
	b	LBB0_37
LBB0_14:
	str	wzr, [x20, #8]
LBB0_15:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _IB_WC_GRH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_WC_GRH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.16:
	ldr	x25, [x21]
Lloh11:
	adrp	x8, _IB_SA_WELL_KNOWN_GUID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SA_WELL_KNOWN_GUID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	cmp	x25, x0
	b.ne	LBB0_19
; %bb.17:
	ldr	x25, [x21, #8]
	ldr	x8, [x24, #8]
	add	x8, x8, w23, sxtw #2
	sub	x0, x8, #4
	bl	_atomic64_read
	bl	_cpu_to_be64
	cmp	x25, x0
	b.ne	LBB0_19
; %bb.18:
	mov	w25, #0
	str	wzr, [sp, #44]
	b	LBB0_20
LBB0_19:
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x23
	bl	_mlx4_ib_find_real_gid
	mov	x25, x0
	str	w0, [sp, #44]
	tbnz	w0, #31, LBB0_24
LBB0_20:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_26
; %bb.21:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_22
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_22:
	cmp	w25, #255
	b.ne	LBB0_32
; %bb.23:
	mov	w25, #255
	b	LBB0_35
LBB0_24:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_43
LBB0_25:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_45
LBB0_26:
	ldr	x0, [x24]
	bl	_mlx4_master_func_num
	cmp	w25, w0
	b.eq	LBB0_35
; %bb.27:
	ldr	w1, [x20]
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x25
	b	LBB0_39
LBB0_28:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x20
	bl	_mlx4_ib_demux_sa_handler
	cbnz	w0, LBB0_40
	b	LBB0_35
LBB0_29:
	ldr	w8, [x20, #4]
Lloh22:
	adrp	x9, _IB_MGMT_METHOD_GET_RESP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET_RESP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_35
	b	LBB0_40
LBB0_30:
	add	x2, sp, #44
	mov	x0, x19
	mov	x1, x23
	mov	x3, x20
	bl	_mlx4_ib_demux_cm_handler
	cbnz	x0, LBB0_40
; %bb.31:
	ldr	w25, [sp, #44]
	b	LBB0_35
LBB0_32:
	ldr	x0, [x24]
	bl	_mlx4_master_func_num
	cmp	w25, w0
	b.eq	LBB0_35
; %bb.33:
	ldr	x0, [x24]
	mov	x1, x25
	mov	x2, x23
	bl	_mlx4_vf_smi_enabled
	cbz	w0, LBB0_50
; %bb.34:
	ldr	w8, [x20, #4]
Lloh25:
	adrp	x9, _IB_MGMT_METHOD_RESP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IB_MGMT_METHOD_RESP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
LBB0_35:
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_41
; %bb.36:
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x25
LBB0_37:
	mov	x2, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_mlx4_ib_send_to_slave
	cbz	w0, LBB0_48
; %bb.38:
	mov	x2, x0
	ldr	w1, [sp, #44]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_39:
	bl	_pr_debug
LBB0_40:
	mov	w0, #0
	b	LBB0_48
LBB0_41:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x25, x8, [sp]
LBB0_42:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_43:
	mov	x0, x19
	bl	_mlx4_ib_warn
Lloh32:
	adrp	x8, _ENOENT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_47
LBB0_44:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_45:
	mov	x0, x19
	bl	_mlx4_ib_warn
LBB0_46:
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_47:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_48:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_49:
	stp	x8, x9, [sp]
	b	LBB0_42
LBB0_50:
Lloh38:
	adrp	x8, _EPERM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_47
LBB0_51:
	ldr	w9, [x20]
	stp	x9, x8, [sp, #8]
	str	x25, [sp]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_45
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_28-LBB0_22)>>2
	.byte	(LBB0_29-LBB0_22)>>2
	.byte	(LBB0_30-LBB0_22)>>2
                                        ; -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RoCE grh not present.\n"

l_.str.1:                               ; @.str.1
	.asciz	"RoCE mgmt class is not CM\n"

l_.str.2:                               ; @.str.2
	.asciz	"resolved slave %d from gid %pI6 wire port %d other %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed matching grh\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"slave id: %d is bigger than allowed:%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed sending to slave %d via tunnel qp (%d)\n"

	.comm	_IB_SA_WELL_KNOWN_GUID,4,2      ; @IB_SA_WELL_KNOWN_GUID
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_IB_MGMT_METHOD_RESP,4,2        ; @IB_MGMT_METHOD_RESP
l_.str.6:                               ; @.str.6
	.asciz	"demux QP0. rejecting unsolicited mad for slave %d class 0x%x, method 0x%x\n"

	.comm	_IB_MGMT_METHOD_GET_RESP,4,2    ; @IB_MGMT_METHOD_GET_RESP
l_.str.7:                               ; @.str.7
	.asciz	"dropping unsupported ingress mad from class:%d for slave:%d\n"

	.no_dead_strip	_mlx4_ib_demux_mad
.subsections_via_symbols
