	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_mad
_process_mad:                           ## @process_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rcx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	testq	%rcx, %rcx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%edx, %r12d
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_ib_lid_cpu16
	jmp	LBB0_3
LBB0_2:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
LBB0_3:
	movq	(%r15), %rcx
	movq	_IB_MGMT_METHOD_TRAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_IB_MAD_RESULT_CONSUMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	(%rcx), %eax
	jmp	LBB0_21
LBB0_7:
	movq	8(%r15), %rax
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rdx
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rsi
	cmpq	(%rdx), %rax
	je	LBB0_15
## %bb.8:
	cmpq	(%rsi), %rax
	je	LBB0_15
## %bb.9:
	movq	_IB_MGMT_CLASS_PERF_MGMT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_13
## %bb.10:
	movq	_MLX5_IB_VENDOR_CLASS1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_13
## %bb.11:
	movq	_MLX5_IB_VENDOR_CLASS2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_13
## %bb.12:
	movq	_IB_MGMT_CLASS_CONG_MGMT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_19
LBB0_13:
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_22
## %bb.14:
	movq	_IB_MGMT_METHOD_SET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_19
	jmp	LBB0_22
LBB0_15:
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_18
## %bb.16:
	movq	_IB_MGMT_METHOD_SET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_18
## %bb.17:
	movq	_IB_MGMT_METHOD_TRAP_REPRESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_19
LBB0_18:
	movq	16(%r15), %rax
	movq	_IB_SMP_ATTR_SM_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_19:
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r14, %rdi
	callq	_to_mdev
	movq	_IB_MAD_IGNORE_MKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r13d, %esi
	movq	_IB_MAD_IGNORE_BKEY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	movl	%eax, %edi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	movq	16(%rbp), %rbx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	pushq	%r15
	callq	_mlx5_MAD_IFC
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movq	_IB_MAD_RESULT_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_24:
	movq	8(%r15), %rax
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_cpu_to_be16
	orl	%eax, 24(%rbx)
LBB0_26:
	movq	(%r15), %rcx
	movq	_IB_MGMT_METHOD_TRAP_REPRESS@GOTPCREL(%rip), %rdx
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_28
## %bb.27:
	movq	_IB_MAD_RESULT_CONSUMED@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_28:
	movq	_IB_MAD_RESULT_REPLY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LID_PERMISSIVE,4,2          ## @IB_LID_PERMISSIVE
	.comm	_IB_MGMT_METHOD_TRAP,8,3        ## @IB_MGMT_METHOD_TRAP
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ## @IB_MAD_RESULT_CONSUMED
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_METHOD_GET,8,3         ## @IB_MGMT_METHOD_GET
	.comm	_IB_MGMT_METHOD_SET,8,3         ## @IB_MGMT_METHOD_SET
	.comm	_IB_MGMT_METHOD_TRAP_REPRESS,8,3 ## @IB_MGMT_METHOD_TRAP_REPRESS
	.comm	_IB_SMP_ATTR_SM_INFO,8,3        ## @IB_SMP_ATTR_SM_INFO
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ## @IB_MGMT_CLASS_PERF_MGMT
	.comm	_MLX5_IB_VENDOR_CLASS1,8,3      ## @MLX5_IB_VENDOR_CLASS1
	.comm	_MLX5_IB_VENDOR_CLASS2,8,3      ## @MLX5_IB_VENDOR_CLASS2
	.comm	_IB_MGMT_CLASS_CONG_MGMT,8,3    ## @IB_MGMT_CLASS_CONG_MGMT
	.comm	_IB_MAD_IGNORE_MKEY,4,2         ## @IB_MAD_IGNORE_MKEY
	.comm	_IB_MAD_IGNORE_BKEY,4,2         ## @IB_MAD_IGNORE_BKEY
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ## @IB_MAD_RESULT_FAILURE
	.comm	_IB_MAD_RESULT_REPLY,4,2        ## @IB_MAD_RESULT_REPLY
	.no_dead_strip	_process_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_mad
_process_mad:                           ; @process_mad
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x6
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	cbz	x3, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_ib_lid_cpu16
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _IB_LID_PERMISSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LID_PERMISSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_be16_to_cpu
LBB0_3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IB_MGMT_METHOD_TRAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MGMT_METHOD_TRAP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x0, #0, #0, eq
	b.eq	LBB0_7
; %bb.4:
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x26, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
	ldr	x11, [x26]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_10
; %bb.5:
Lloh11:
	adrp	x9, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _IB_MGMT_METHOD_SET@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_MGMT_METHOD_SET@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
Lloh17:
	adrp	x11, _IB_MGMT_METHOD_TRAP_REPRESS@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IB_MGMT_METHOD_TRAP_REPRESS@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x9, _IB_SMP_ATTR_SM_INFO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_SMP_ATTR_SM_INFO@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
	b	LBB0_16
LBB0_7:
Lloh23:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
LBB0_8:
Lloh26:
	adrp	x9, _IB_MAD_RESULT_CONSUMED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_MAD_RESULT_CONSUMED@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_15
LBB0_10:
Lloh28:
	adrp	x10, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGEOFF]
Lloh30:
	adrp	x11, _MLX5_IB_VENDOR_CLASS1@GOTPAGE
Lloh31:
	ldr	x11, [x11, _MLX5_IB_VENDOR_CLASS1@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
Lloh33:
	ldr	x11, [x11]
Lloh34:
	adrp	x12, _MLX5_IB_VENDOR_CLASS2@GOTPAGE
Lloh35:
	ldr	x12, [x12, _MLX5_IB_VENDOR_CLASS2@GOTPAGEOFF]
Lloh36:
	adrp	x13, _IB_MGMT_CLASS_CONG_MGMT@GOTPAGE
Lloh37:
	ldr	x13, [x13, _IB_MGMT_CLASS_CONG_MGMT@GOTPAGEOFF]
Lloh38:
	ldr	x12, [x12]
Lloh39:
	ldr	x13, [x13]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	ccmp	x9, x12, #4, ne
	ccmp	x9, x13, #4, ne
	b.ne	LBB0_13
; %bb.11:
Lloh40:
	adrp	x9, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.12:
Lloh43:
	adrp	x9, _IB_MGMT_METHOD_SET@GOTPAGE
Lloh44:
	ldr	x9, [x9, _IB_MGMT_METHOD_SET@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_13:
Lloh46:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x25
	bl	_to_mdev
Lloh48:
	adrp	x8, _IB_MAD_IGNORE_MKEY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IB_MAD_IGNORE_MKEY@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	and	w1, w8, w24
Lloh51:
	adrp	x8, _IB_MAD_IGNORE_BKEY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IB_MAD_IGNORE_BKEY@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	and	w2, w8, w24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x19
	mov	x7, x20
	bl	_mlx5_MAD_IFC
	cbz	w0, LBB0_18
; %bb.17:
Lloh54:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
	b	LBB0_14
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #32768
	bl	_cpu_to_be16
	ldr	w8, [x20, #24]
	orr	w8, w8, w0
	str	w8, [x20, #24]
LBB0_20:
Lloh56:
	adrp	x8, _IB_MGMT_METHOD_TRAP_REPRESS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _IB_MGMT_METHOD_TRAP_REPRESS@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh58:
	ldr	x10, [x8]
Lloh59:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.21:
Lloh62:
	adrp	x9, _IB_MAD_RESULT_REPLY@GOTPAGE
Lloh63:
	ldr	x9, [x9, _IB_MAD_RESULT_REPLY@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LID_PERMISSIVE,4,2          ; @IB_LID_PERMISSIVE
	.comm	_IB_MGMT_METHOD_TRAP,8,3        ; @IB_MGMT_METHOD_TRAP
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ; @IB_MAD_RESULT_CONSUMED
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_METHOD_GET,8,3         ; @IB_MGMT_METHOD_GET
	.comm	_IB_MGMT_METHOD_SET,8,3         ; @IB_MGMT_METHOD_SET
	.comm	_IB_MGMT_METHOD_TRAP_REPRESS,8,3 ; @IB_MGMT_METHOD_TRAP_REPRESS
	.comm	_IB_SMP_ATTR_SM_INFO,8,3        ; @IB_SMP_ATTR_SM_INFO
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ; @IB_MGMT_CLASS_PERF_MGMT
	.comm	_MLX5_IB_VENDOR_CLASS1,8,3      ; @MLX5_IB_VENDOR_CLASS1
	.comm	_MLX5_IB_VENDOR_CLASS2,8,3      ; @MLX5_IB_VENDOR_CLASS2
	.comm	_IB_MGMT_CLASS_CONG_MGMT,8,3    ; @IB_MGMT_CLASS_CONG_MGMT
	.comm	_IB_MAD_IGNORE_MKEY,4,2         ; @IB_MAD_IGNORE_MKEY
	.comm	_IB_MAD_IGNORE_BKEY,4,2         ; @IB_MAD_IGNORE_BKEY
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ; @IB_MAD_RESULT_FAILURE
	.comm	_IB_MAD_RESULT_REPLY,4,2        ; @IB_MAD_RESULT_REPLY
	.no_dead_strip	_process_mad
.subsections_via_symbols
