	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_process_mad             ## -- Begin function ocrdma_process_mad
	.p2align	4, 0x90
_ocrdma_process_mad:                    ## @ocrdma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %rbx
	movq	%rdi, %r14
	movl	$1, %edi
	cmpq	$4, 16(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	32(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$4, (%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
	jmp	LBB0_8
LBB0_4:
	cmpl	$128, (%rbx)
	jne	LBB0_7
## %bb.5:
	movq	24(%rbp), %rbx
	movq	%r14, %rdi
	callq	_get_ocrdma_dev
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_pma_counters
	movl	%eax, %ecx
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.6:
	movq	_IB_MAD_RESULT_REPLY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_IB_MAD_RESULT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ## @IB_MAD_RESULT_FAILURE
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ## @IB_MAD_RESULT_REPLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_process_mad             ; -- Begin function ocrdma_process_mad
	.p2align	2
_ocrdma_process_mad:                    ; @ocrdma_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	x19, x7
	mov	x21, x5
	mov	x20, x0
	cmp	x6, #4
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x29, #16]
	ldr	x8, [x8]
	cmp	x8, #4
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _IB_MAD_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MAD_RESULT_FAILURE@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_get_ocrdma_dev
	mov	x1, x19
	bl	_ocrdma_pma_counters
	mov	x8, x0
Lloh2:
	adrp	x9, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	cbnz	w8, LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _IB_MAD_RESULT_REPLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_MAD_RESULT_REPLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _IB_MAD_RESULT_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_MAD_RESULT_SUCCESS@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_RESULT_FAILURE,4,2      ; @IB_MAD_RESULT_FAILURE
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_REPLY,4,2        ; @IB_MAD_RESULT_REPLY
.subsections_via_symbols
