	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_process_mad            ## -- Begin function mlx4_ib_process_mad
	.p2align	4, 0x90
_mlx4_ib_process_mad:                   ## @mlx4_ib_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %r12
	callq	_to_mdev
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rdma_port_get_link_layer
	movl	%eax, %r13d
	movl	$1, %edi
	cmpq	$16, %r12
	jne	LBB0_2
## %bb.1:
	movq	32(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$16, (%rax)
	setne	%dil
LBB0_2:
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IB_MAD_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	movq	24(%rbp), %r12
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_11
## %bb.5:
	movl	(%r15), %edi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	movq	(%r9), %rax
	movq	_IB_MGMT_CLASS_PERF_MGMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	8(%r9), %rax
	movq	_IB_PMA_PORT_COUNTERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.8:
	movq	_IB_PMA_PORT_COUNTERS_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.9:
	movq	_IB_PMA_CLASS_PORT_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
LBB0_10:
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_ib_process_mad
	jmp	LBB0_16
LBB0_11:
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_13
## %bb.12:
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_14:
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
LBB0_15:
	callq	_iboe_process_mad
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ## @IB_MAD_RESULT_FAILURE
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ## @IB_MGMT_CLASS_PERF_MGMT
	.comm	_IB_PMA_PORT_COUNTERS,8,3       ## @IB_PMA_PORT_COUNTERS
	.comm	_IB_PMA_PORT_COUNTERS_EXT,8,3   ## @IB_PMA_PORT_COUNTERS_EXT
	.comm	_IB_PMA_CLASS_PORT_INFO,8,3     ## @IB_PMA_CLASS_PORT_INFO
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ## @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_process_mad            ; -- Begin function mlx4_ib_process_mad
	.p2align	2
_mlx4_ib_process_mad:                   ; @mlx4_ib_process_mad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	mov	x28, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x19, [x29, #16]
	bl	_to_mdev
	mov	x26, x0
	mov	x0, x25
	mov	x1, x23
	bl	_rdma_port_get_link_layer
	mov	x27, x0
	cmp	x28, #16
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #16
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
LBB0_5:
Lloh3:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_10
; %bb.6:
	ldr	w0, [x26]
	bl	_mlx4_is_slave
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _IB_PMA_PORT_COUNTERS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_PMA_PORT_COUNTERS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _IB_PMA_PORT_COUNTERS_EXT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_PMA_PORT_COUNTERS_EXT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _IB_PMA_CLASS_PORT_INFO@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IB_PMA_CLASS_PORT_INFO@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_11
LBB0_9:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldr	x6, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ib_process_mad
LBB0_10:
Lloh18:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldr	x6, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_iboe_process_mad
LBB0_12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ; @IB_MAD_RESULT_FAILURE
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ; @IB_MGMT_CLASS_PERF_MGMT
	.comm	_IB_PMA_PORT_COUNTERS,8,3       ; @IB_PMA_PORT_COUNTERS
	.comm	_IB_PMA_PORT_COUNTERS_EXT,8,3   ; @IB_PMA_PORT_COUNTERS_EXT
	.comm	_IB_PMA_CLASS_PORT_INFO,8,3     ; @IB_PMA_CLASS_PORT_INFO
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ; @IB_LINK_LAYER_ETHERNET
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
