	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_alloc_skb
_p54_alloc_skb:                         ## @p54_alloc_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	%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
	movslq	%edx, %r14
	addq	$40, %r14
	movq	_P54_MAX_CTRL_FRAME_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	ja	LBB0_6
## %bb.2:
	movl	%r8d, %ebx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$4, %rdi
	callq	_skb_queue_len
	xorl	%edi, %edi
	cmpl	$65, %eax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	(%r13), %r14d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	___dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_skb_put
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r14)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_P54_MAX_CTRL_FRAME_LEN,8,3     ## @P54_MAX_CTRL_FRAME_LEN
	.no_dead_strip	_p54_alloc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_alloc_skb
_p54_alloc_skb:                         ; @p54_alloc_skb
	.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	x20, x2
	sxtw	x8, w20
	add	x24, x8, #40
Lloh0:
	adrp	x8, _P54_MAX_CTRL_FRAME_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P54_MAX_CTRL_FRAME_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.hi	LBB0_2
; %bb.1:
	mov	x22, x4
	mov	x19, x3
	mov	x21, x1
	mov	x23, x0
	add	x0, x0, #4
	bl	_skb_queue_len
	cmp	w0, #64
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x22, #0
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	ldr	w8, [x23]
	add	w0, w8, w24
	mov	x1, x22
	bl	___dev_alloc_skb
	mov	x22, x0
	cbz	x0, LBB0_3
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_skb_reserve
	mov	x0, x22
	mov	w1, #40
	bl	_skb_put
	mov	x23, x0
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x23, #32]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x23, #24]
	mov	x0, x19
	bl	_cpu_to_le16
	stp	xzr, x0, [x23, #8]
	str	xzr, [x23]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P54_MAX_CTRL_FRAME_LEN,8,3     ; @P54_MAX_CTRL_FRAME_LEN
	.no_dead_strip	_p54_alloc_skb
.subsections_via_symbols
