	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_sm_mbx_process_version_1
_fm10k_sm_mbx_process_version_1:        ## @fm10k_sm_mbx_process_version_1
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %edi
	movq	_SM_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	movq	_SM_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FM10K_MSG_HDR_FIELD_GET
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_FM10K_STATE_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_FM10K_STATE_OPEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_fm10k_sm_mbx_receive
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	jne	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_fm10k_sm_mbx_create_reply
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_FM10K_MBX_ERR_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM_TAIL,4,2                    ## @SM_TAIL
	.comm	_SM_HEAD,4,2                    ## @SM_HEAD
	.comm	_FM10K_STATE_CONNECT,8,3        ## @FM10K_STATE_CONNECT
	.comm	_FM10K_MBX_ERR_SRC,8,3          ## @FM10K_MBX_ERR_SRC
	.comm	_FM10K_STATE_OPEN,8,3           ## @FM10K_STATE_OPEN
	.no_dead_strip	_fm10k_sm_mbx_process_version_1
.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_version_1
_fm10k_sm_mbx_process_version_1:        ; @fm10k_sm_mbx_process_version_1
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
Lloh0:
	adrp	x8, _SM_TAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM_TAIL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _SM_HEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM_HEAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FM10K_MSG_HDR_FIELD_GET
	mov	x22, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _FM10K_STATE_CONNECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FM10K_STATE_CONNECT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _FM10K_STATE_OPEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FM10K_STATE_OPEN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_fm10k_sm_mbx_receive
	tbnz	x0, #63, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x0, LBB0_4
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_fm10k_sm_mbx_create_reply
	mov	x0, #0
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _FM10K_MBX_ERR_SRC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FM10K_MBX_ERR_SRC@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SM_TAIL,4,2                    ; @SM_TAIL
	.comm	_SM_HEAD,4,2                    ; @SM_HEAD
	.comm	_FM10K_STATE_CONNECT,8,3        ; @FM10K_STATE_CONNECT
	.comm	_FM10K_MBX_ERR_SRC,8,3          ; @FM10K_MBX_ERR_SRC
	.comm	_FM10K_STATE_OPEN,8,3           ; @FM10K_STATE_OPEN
	.no_dead_strip	_fm10k_sm_mbx_process_version_1
.subsections_via_symbols
