	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_run_loopback_test
_ql_run_loopback_test:                  ## @ql_run_loopback_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SMALL_BUF_MAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$64, %r12d
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movl	%r15d, %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	$0, (%rax)
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ql_create_lb_frame
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_ql_lb_send
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_atomic_inc
	decl	%r12d
	jne	LBB0_1
## %bb.7:
	movl	$2, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movl	$128, %esi
	callq	_ql_clean_lb_rx_ring
	movq	%r14, %rdi
	callq	_atomic_read
	movq	%rax, %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovel	%edx, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_EPIPE@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMALL_BUF_MAP_SIZE,4,2         ## @SMALL_BUF_MAP_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NETDEV_TX_OK,8,3               ## @NETDEV_TX_OK
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ql_run_loopback_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_run_loopback_test
_ql_run_loopback_test:                  ; @ql_run_loopback_test
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SMALL_BUF_MAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMALL_BUF_MAP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w22, #64
Lloh3:
	adrp	x23, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	str	xzr, [x0]
	mov	x1, x20
	bl	_skb_put
	mov	x0, x21
	mov	x1, x20
	bl	_ql_create_lb_frame
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_ql_lb_send
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_atomic_inc
	subs	w22, w22, #1
	b.ne	LBB0_1
; %bb.4:
	mov	w0, #2
	bl	_msleep
	ldr	x0, [x19, #8]
	mov	w1, #128
	bl	_ql_clean_lb_rx_ring
	mov	x0, x19
	bl	_atomic_read
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EPIPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SMALL_BUF_MAP_SIZE,4,2         ; @SMALL_BUF_MAP_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NETDEV_TX_OK,8,3               ; @NETDEV_TX_OK
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ql_run_loopback_test
.subsections_via_symbols
