	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iboe_process_mad
_iboe_process_mad:                      ## @iboe_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%edx, %r14d
	callq	_to_mdev
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movq	_IB_MGMT_CLASS_PERF_MGMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	movzwl	-4(%rax,%rcx,4), %r15d
	movl	8(%r12), %edi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IB_MAD_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movl	8(%r12), %edi
	movl	8(%r14), %edx
	movq	_MLX4_CMD_QUERY_IF_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	16(%rbp), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rdi
	testb	$15, (%rdi)
	je	LBB0_6
LBB0_7:
	movq	_IB_MAD_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	8(%r12), %edi
	movq	%r14, %rsi
	callq	_mlx4_free_cmd_mailbox
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	(%rbx), %rsi
	addq	$40, %rsi
	callq	_edit_counter
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	movq	_IB_MAD_RESULT_REPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ## @IB_MGMT_CLASS_PERF_MGMT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ## @IB_MAD_RESULT_FAILURE
	.comm	_MLX4_CMD_QUERY_IF_STAT,4,2     ## @MLX4_CMD_QUERY_IF_STAT
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ## @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ## @IB_MAD_RESULT_REPLY
	.no_dead_strip	_iboe_process_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iboe_process_mad
_iboe_process_mad:                      ; @iboe_process_mad
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x6
	mov	x22, x5
	mov	x20, x2
	bl	_to_mdev
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MGMT_CLASS_PERF_MGMT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	sub	w9, w20, #1
	sbfiz	x9, x9, #2, #32
	ldrh	w22, [x8, x9]
	ldr	w0, [x0, #8]
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	w2, [x20, #8]
Lloh9:
	adrp	x8, _MLX4_CMD_QUERY_IF_STAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_QUERY_IF_STAT@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
	mov	w1, #0
	mov	x3, x22
	mov	w4, #0
	bl	_mlx4_cmd_box
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x20]
	ldrb	w8, [x0]
	tst	w8, #0xf
	b.eq	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
LBB0_7:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldrsw	x8, [x21]
	add	x1, x8, #40
	bl	_edit_counter
Lloh21:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _IB_MAD_RESULT_REPLY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IB_MAD_RESULT_REPLY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_7
	.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	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_PERF_MGMT,8,3    ; @IB_MGMT_CLASS_PERF_MGMT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ; @IB_MAD_RESULT_FAILURE
	.comm	_MLX4_CMD_QUERY_IF_STAT,4,2     ; @MLX4_CMD_QUERY_IF_STAT
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ; @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ; @IB_MAD_RESULT_REPLY
	.no_dead_strip	_iboe_process_mad
.subsections_via_symbols
