	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_mbx_test
_fm10k_mbx_test:                        ## @fm10k_mbx_test
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_fm10k_mac_vf@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_FM10K_TEST_MSG_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%rax, %r15
	movq	_FM10K_TEST_MSG_NESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	callq	_BIT
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.2:
	leaq	8(%r12), %r14
	leaq	-96(%rbp), %rax
	movq	_FM10K_NOT_IMPLEMENTED@GOTPCREL(%rip), %r15
	movq	_HZ@GOTPCREL(%rip), %r13
	movq	%r14, -120(%rbp)                ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_fm10k_tlv_msg_test_create
	movq	%r12, %rdi
	callq	_fm10k_mbx_lock
	movl	(%r15), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	*16(%r12)
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fm10k_mbx_unlock
	movq	(%r13), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	%r12, %rdi
	callq	_fm10k_mbx_lock
	movq	%r12, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	*24(%r12)
	movq	%r12, %rdi
	callq	_fm10k_mbx_unlock
	movl	8(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	addq	%r14, %r14
	movq	_FM10K_TEST_MSG_NESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	movl	$0, %ecx
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	cmpq	%rax, %r14
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	-96(%rbp), %rax
	movq	_FM10K_NOT_IMPLEMENTED@GOTPCREL(%rip), %r15
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jl	LBB0_3
	jmp	LBB0_11
LBB0_9:
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%al
	js	LBB0_6
## %bb.10:
	movb	%al, %cl
	jmp	LBB0_11
LBB0_5:
	movq	-104(%rbp), %rdx                ## 8-byte Reload
LBB0_6:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
LBB0_11:
	movq	%rcx, (%rdx)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_fm10k_mac_vf,8,3               ## @fm10k_mac_vf
	.comm	_FM10K_TEST_MSG_UNSET,4,2       ## @FM10K_TEST_MSG_UNSET
	.comm	_FM10K_TEST_MSG_NESTED,4,2      ## @FM10K_TEST_MSG_NESTED
	.comm	_FM10K_NOT_IMPLEMENTED,4,2      ## @FM10K_NOT_IMPLEMENTED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_fm10k_mbx_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_mbx_test
_fm10k_mbx_test:                        ; @fm10k_mbx_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	x22, x0
	ldr	x8, [x22], #8
Lloh3:
	adrp	x9, _fm10k_mac_vf@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fm10k_mac_vf@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _FM10K_TEST_MSG_UNSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FM10K_TEST_MSG_UNSET@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh12:
	adrp	x25, _FM10K_TEST_MSG_NESTED@GOTPAGE
Lloh13:
	ldr	x25, [x25, _FM10K_TEST_MSG_NESTED@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w0, w8, #1
	bl	_BIT
	cmp	x20, x0
	b.ge	LBB0_9
; %bb.2:
Lloh14:
	adrp	x26, _FM10K_NOT_IMPLEMENTED@GOTPAGE
Lloh15:
	ldr	x26, [x26, _FM10K_NOT_IMPLEMENTED@GOTPAGEOFF]
Lloh16:
	adrp	x27, _jiffies@GOTPAGE
Lloh17:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
Lloh18:
	adrp	x28, _HZ@GOTPAGE
Lloh19:
	ldr	x28, [x28, _HZ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x0, sp, #8
	mov	x1, x20
	bl	_fm10k_tlv_msg_test_create
	mov	x0, x21
	bl	_fm10k_mbx_lock
	ldr	w8, [x26]
	str	w8, [x21, #8]
	ldr	x8, [x21, #16]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x23, x0
	mov	x0, x21
	bl	_fm10k_mbx_unlock
	ldr	x8, [x27]
	ldr	x9, [x28]
	add	x24, x9, x8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w23, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	mov	x0, x21
	bl	_fm10k_mbx_lock
	ldr	x8, [x21, #24]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x0, x21
	bl	_fm10k_mbx_unlock
	ldr	w23, [x21, #8]
	cbz	w23, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x24
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_4
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x20, x20, #1
	ldr	w8, [x25]
	lsl	w0, w8, #1
	bl	_BIT
	mov	x8, #0
	cmp	x20, x0
	b.lt	LBB0_3
	b	LBB0_12
LBB0_8:
	mov	w23, #0
	b	LBB0_13
LBB0_9:
	neg	w23, w23
LBB0_10:
	cmp	w23, #0
	cset	w8, ne
	tbz	w23, #31, LBB0_12
LBB0_11:
	mov	x8, x20
LBB0_12:
	str	x8, [x19]
LBB0_13:
	ldr	x8, [sp, #56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_fm10k_mac_vf,8,3               ; @fm10k_mac_vf
	.comm	_FM10K_TEST_MSG_UNSET,4,2       ; @FM10K_TEST_MSG_UNSET
	.comm	_FM10K_TEST_MSG_NESTED,4,2      ; @FM10K_TEST_MSG_NESTED
	.comm	_FM10K_NOT_IMPLEMENTED,4,2      ; @FM10K_NOT_IMPLEMENTED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_fm10k_mbx_test
.subsections_via_symbols
