	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_iov_mbx                  ## -- Begin function fm10k_iov_mbx
	.p2align	4, 0x90
_fm10k_iov_mbx:                         ## @fm10k_iov_mbx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.2:
	leaq	16(%r14), %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_fm10k_mbx_lock
	movl	(%rbx), %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_4:
	movl	4(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_14
LBB0_5:
	movslq	%r13d, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	-40(,%rax,8), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r15,%r14), %rsi
	addq	$16, %rsi
	movq	%r12, %rdi
	callq	*16(%r15,%r14)
	addq	$-40, %r14
	decl	%r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	leaq	(%r15,%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r15,%r14), %ebx
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*32(%rax)
	cmpq	$0, (%r15,%r14)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_fm10k_glort_valid_pf
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 32(%r15,%r14)
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*40(%rax)
	leaq	(%r15,%r14), %rsi
	addq	$16, %rsi
	movq	%r12, %rdi
	callq	*24(%r15,%r14)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rax
	movq	_FM10K_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_FM10K_VFMBX_MSG_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*24(%rax)
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*48(%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_fm10k_clear_macvlan_queue
	cmpl	$0, 32(%r15,%r14)
	jne	LBB0_11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	incl	(%rdi)
	callq	_fm10k_service_event_schedule
	testl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_17
LBB0_14:
	cmpl	$0, (%rbx)
	je	LBB0_18
## %bb.15:
	movl	$0, (%rbx)
	xorl	%r13d, %r13d
	testl	%r13d, %r13d
	jne	LBB0_5
	jmp	LBB0_4
LBB0_17:
	movl	%r13d, (%rbx)
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fm10k_mbx_unlock
LBB0_19:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_STATE_OPEN,8,3           ## @FM10K_STATE_OPEN
	.comm	_FM10K_VFMBX_MSG_MTU,4,2        ## @FM10K_VFMBX_MSG_MTU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_iov_mbx                  ; -- Begin function fm10k_iov_mbx
	.p2align	2
_fm10k_iov_mbx:                         ; @fm10k_iov_mbx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_READ_ONCE
	cbz	w0, LBB0_19
; %bb.1:
	bl	_rcu_read_lock
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_18
; %bb.2:
	add	x20, x19, #16
	mov	x0, x19
	bl	_fm10k_mbx_lock
	ldr	w27, [x23]
Lloh0:
	adrp	x26, _FM10K_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FM10K_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _FM10K_VFMBX_MSG_MTU@GOTPAGE
Lloh3:
	ldr	x28, [x28, _FM10K_VFMBX_MSG_MTU@GOTPAGEOFF]
	cbnz	w27, LBB0_4
LBB0_3:
	ldr	w27, [x23, #4]
	cbz	w27, LBB0_14
LBB0_4:
	mov	w8, #40
	mov	x9, #-40
	smaddl	x24, w27, w8, x9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x25, x24
	ldr	x8, [x1, #16]!
	mov	x0, x20
	blr	x8
	sub	x24, x24, #40
	sub	w27, w27, #1
	cbz	w27, LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x23, #8]
	add	x21, x25, x24
	ldr	w22, [x21, #8]
	ldr	x8, [x19, #32]
	mov	x0, x20
	mov	x1, x20
	blr	x8
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_fm10k_glort_valid_pf
	cbz	w0, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #32]
	cbnz	w8, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #40]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	add	x8, x25, x24
	ldr	x9, [x8, #24]
	add	x1, x8, #16
	mov	x0, x20
	blr	x9
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x28]
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_5
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #48]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_fm10k_clear_macvlan_queue
	ldr	w8, [x21, #32]
	cbnz	w8, LBB0_10
	b	LBB0_9
LBB0_13:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_fm10k_service_event_schedule
	cmp	w27, #1
	b.ge	LBB0_16
LBB0_14:
	ldr	w8, [x23]
	cbz	w8, LBB0_17
; %bb.15:
	mov	w27, #0
	str	wzr, [x23]
	cbnz	w27, LBB0_4
	b	LBB0_3
LBB0_16:
	str	w27, [x23]
LBB0_17:
	mov	x0, x19
	bl	_fm10k_mbx_unlock
LBB0_18:
	bl	_rcu_read_unlock
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_STATE_OPEN,8,3           ; @FM10K_STATE_OPEN
	.comm	_FM10K_VFMBX_MSG_MTU,4,2        ; @FM10K_VFMBX_MSG_MTU
.subsections_via_symbols
