	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_nonemb_mbx_cmd
_ocrdma_nonemb_mbx_cmd:                 ## @ocrdma_nonemb_mbx_cmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_OCRDMA_MQE_HDR_EMB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movq	_OCRDMA_MQE_HDR_EMB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movl	4(%r14), %edx
	movq	_OCRDMA_MBX_RSP_OPCODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movq	_OCRDMA_MBX_RSP_OPCODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	_OCRDMA_MBX_RSP_SUBSYS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_OCRDMA_MBX_RSP_SUBSYS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	movq	_OCRDMA_MBX_RSP_STATUS_MASK@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	testl	%edi, (%rax)
	je	LBB0_6
## %bb.4:
	callq	_ocrdma_get_mbx_errno
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_MQE_HDR_EMB_MASK,4,2    ## @OCRDMA_MQE_HDR_EMB_MASK
	.comm	_OCRDMA_MQE_HDR_EMB_SHIFT,4,2   ## @OCRDMA_MQE_HDR_EMB_SHIFT
	.comm	_OCRDMA_MBX_RSP_STATUS_MASK,4,2 ## @OCRDMA_MBX_RSP_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opcode=0x%x, subsystem=0x%x\n"

	.comm	_OCRDMA_MBX_RSP_OPCODE_MASK,4,2 ## @OCRDMA_MBX_RSP_OPCODE_MASK
	.comm	_OCRDMA_MBX_RSP_OPCODE_SHIFT,4,2 ## @OCRDMA_MBX_RSP_OPCODE_SHIFT
	.comm	_OCRDMA_MBX_RSP_SUBSYS_MASK,4,2 ## @OCRDMA_MBX_RSP_SUBSYS_MASK
	.comm	_OCRDMA_MBX_RSP_SUBSYS_SHIFT,4,2 ## @OCRDMA_MBX_RSP_SUBSYS_SHIFT
	.no_dead_strip	_ocrdma_nonemb_mbx_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_nonemb_mbx_cmd
_ocrdma_nonemb_mbx_cmd:                 ; @ocrdma_nonemb_mbx_cmd
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _OCRDMA_MQE_HDR_EMB_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_MQE_HDR_EMB_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _OCRDMA_MQE_HDR_EMB_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCRDMA_MQE_HDR_EMB_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbz	w8, LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_ocrdma_mbx_cmd
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _OCRDMA_MBX_RSP_OPCODE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_MBX_RSP_OPCODE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh9:
	adrp	x10, _OCRDMA_MBX_RSP_OPCODE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OCRDMA_MBX_RSP_OPCODE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w1, w9, w10
Lloh12:
	adrp	x9, _OCRDMA_MBX_RSP_SUBSYS_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OCRDMA_MBX_RSP_SUBSYS_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _OCRDMA_MBX_RSP_SUBSYS_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OCRDMA_MBX_RSP_SUBSYS_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_4:
	mov	x0, x20
	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_5:
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _OCRDMA_MBX_RSP_STATUS_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OCRDMA_MBX_RSP_STATUS_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	bl	_ocrdma_get_mbx_errno
	mov	x20, x0
	cbnz	w0, LBB0_3
	b	LBB0_4
LBB0_7:
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_MQE_HDR_EMB_MASK,4,2    ; @OCRDMA_MQE_HDR_EMB_MASK
	.comm	_OCRDMA_MQE_HDR_EMB_SHIFT,4,2   ; @OCRDMA_MQE_HDR_EMB_SHIFT
	.comm	_OCRDMA_MBX_RSP_STATUS_MASK,4,2 ; @OCRDMA_MBX_RSP_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opcode=0x%x, subsystem=0x%x\n"

	.comm	_OCRDMA_MBX_RSP_OPCODE_MASK,4,2 ; @OCRDMA_MBX_RSP_OPCODE_MASK
	.comm	_OCRDMA_MBX_RSP_OPCODE_SHIFT,4,2 ; @OCRDMA_MBX_RSP_OPCODE_SHIFT
	.comm	_OCRDMA_MBX_RSP_SUBSYS_MASK,4,2 ; @OCRDMA_MBX_RSP_SUBSYS_MASK
	.comm	_OCRDMA_MBX_RSP_SUBSYS_SHIFT,4,2 ; @OCRDMA_MBX_RSP_SUBSYS_SHIFT
	.no_dead_strip	_ocrdma_nonemb_mbx_cmd
.subsections_via_symbols
