	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_sm_mbx_process
_fm10k_sm_mbx_process:                  ## @fm10k_sm_mbx_process
	.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	(%rsi), %rax
	movq	_FM10K_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_fm10k_mbx_read
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	%r15, %rdi
	callq	_fm10k_sm_mbx_validate_fifo_hdr
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	movl	8(%r15), %edi
	movq	_SM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_fm10k_sm_mbx_process_error
	jmp	LBB0_12
LBB0_6:
	movl	8(%r15), %edi
	movq	_SM_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fm10k_sm_mbx_process_reset
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fm10k_sm_mbx_process_version_1
LBB0_10:
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fm10k_sm_mbx_create_error_msg
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fm10k_mbx_write
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_STATE_CLOSED,8,3         ## @FM10K_STATE_CLOSED
	.comm	_SM_ERR,4,2                     ## @SM_ERR
	.comm	_SM_VER,4,2                     ## @SM_VER
	.no_dead_strip	_fm10k_sm_mbx_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_sm_mbx_process
_fm10k_sm_mbx_process:                  ; @fm10k_sm_mbx_process
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _FM10K_STATE_CLOSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM10K_STATE_CLOSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_13
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	bl	_fm10k_mbx_read
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_fm10k_sm_mbx_validate_fifo_hdr
	mov	x21, x0
	tbnz	x0, #63, LBB0_11
; %bb.4:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _SM_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_fm10k_sm_mbx_process_error
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _SM_VER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SM_VER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.7:
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_fm10k_sm_mbx_process_reset
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_fm10k_sm_mbx_process_version_1
LBB0_10:
	mov	x21, x0
	tbz	x0, #63, LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_fm10k_sm_mbx_create_error_msg
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_fm10k_mbx_write
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_STATE_CLOSED,8,3         ; @FM10K_STATE_CLOSED
	.comm	_SM_ERR,4,2                     ; @SM_ERR
	.comm	_SM_VER,4,2                     ; @SM_VER
	.no_dead_strip	_fm10k_sm_mbx_process
.subsections_via_symbols
