	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_arcbuf
_get_arcbuf:                            ## @get_arcbuf
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.3:
	addl	$-5, %eax
	movl	%eax, (%rbx)
LBB0_4:
	cmpl	4(%rbx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_D_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_arc_printk
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_1:
	movq	_D_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_arc_printk
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_6:
	movq	8(%rbx), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%rbx)
	movslq	%eax, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movslq	%edx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$33, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, (%rbx)
LBB0_7:
	movq	_D_DURING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BUGLVL
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rsi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_arc_printk
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	8(%rbx), %rcx
	movslq	%eax, %r12
	movl	(%rcx,%r12,4), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_arc_cont
	movl	%r12d, %eax
	incl	%eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %eax
	negl	%eax
	addl	%r12d, %eax
	incl	%eax
	cmpl	4(%rbx), %eax
	jne	LBB0_10
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_arc_cont
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_atomic_inc
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_NORMAL,4,2                   ## @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_arcbuf: overlap (%d)!\n"

L_.str.1:                               ## @.str.1
	.asciz	"get_arcbuf: BUG: no buffers are available??\n"

	.comm	_D_DURING,4,2                   ## @D_DURING
L_.str.2:                               ## @.str.2
	.asciz	"get_arcbuf: got #%d; buffer queue is now: "

L_.str.3:                               ## @.str.3
	.asciz	"#%d "

L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.no_dead_strip	_get_arcbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_arcbuf
_get_arcbuf:                            ; @get_arcbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	subs	w9, w8, #5
	b.lt	LBB0_3
; %bb.2:
	str	w9, [x20]
	mov	x8, x9
LBB0_3:
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _D_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _D_NORMAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x1, x21
	bl	_arc_printk
	mov	w22, #-1
	b	LBB0_8
LBB0_7:
	ldr	x9, [x20, #8]
	add	w10, w8, #1
	str	w10, [x20]
	ldr	w22, [x9, w8, sxtw #2]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w10, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w8, w8, w8, lsl #2
	sub	w8, w10, w8
	str	w8, [x20]
LBB0_8:
Lloh10:
	adrp	x23, _D_DURING@GOTPAGE
Lloh11:
	ldr	x23, [x23, _D_DURING@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BUGLVL
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w0, [x23]
	str	x22, [sp]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_arc_printk
	ldp	w25, w8, [x20]
	cmp	w25, w8
	b.eq	LBB0_12
; %bb.10:
Lloh14:
	adrp	x21, l_.str.3@PAGE
Lloh15:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	w24, #26215
	movk	w24, #26214, lsl #16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, w25, sxtw #2]
	str	x8, [sp]
	mov	x1, x21
	bl	_arc_cont
	add	w8, w25, #1
	smull	x9, w8, w24
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	add	w9, w9, w9, lsl #2
	ldr	w10, [x20, #4]
	sub	w25, w8, w9
	cmp	w25, w10
	b.ne	LBB0_11
LBB0_12:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_arc_cont
LBB0_13:
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_D_NORMAL,4,2                   ; @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_arcbuf: overlap (%d)!\n"

l_.str.1:                               ; @.str.1
	.asciz	"get_arcbuf: BUG: no buffers are available??\n"

	.comm	_D_DURING,4,2                   ; @D_DURING
l_.str.2:                               ; @.str.2
	.asciz	"get_arcbuf: got #%d; buffer queue is now: "

l_.str.3:                               ; @.str.3
	.asciz	"#%d "

l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.no_dead_strip	_get_arcbuf
.subsections_via_symbols
