	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pktgen_wait_for_skb
_pktgen_wait_for_skb:                   ## @pktgen_wait_for_skb
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ktime_now
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	callq	_atomic_read
	cmpl	$1, %eax
	jne	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	callq	_ktime_now
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_ns
	addl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_current@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	callq	_atomic_read
	cmpl	$1, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_need_resched
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pktgen_resched
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_pktgen_wait_for_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pktgen_wait_for_skb
_pktgen_wait_for_skb:                   ; @pktgen_wait_for_skb
	.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, x0
	bl	_ktime_now
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_atomic_read
	cmp	w0, #1
	b.ne	LBB0_2
LBB0_1:
	bl	_ktime_now
	mov	x1, x20
	bl	_ktime_sub
	bl	_ktime_to_ns
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	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
LBB0_2:
Lloh0:
	adrp	x21, _current@GOTPAGE
Lloh1:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	bl	_atomic_read
	cmp	w0, #1
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_signal_pending
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_need_resched
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_pktgen_resched
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_pktgen_wait_for_skb
.subsections_via_symbols
