	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_set_edcf                   ## -- Begin function p54_set_edcf
	.p2align	4, 0x90
_p54_set_edcf:                          ## @p54_set_edcf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_P54_HDR_FLAG_CONTROL_OPSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P54_CONTROL_TYPE_DCFINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$48, %edx
	callq	_p54_alloc_skb
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_skb_put
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	movl	$20, %ecx
	movl	$9, %edx
	cmovel	%ecx, %edx
	movl	$10, %ecx
	movl	$16, %esi
	cmovel	%ecx, %esi
	movl	$6, %ecx
	cmovnel	%r12d, %ecx
	movq	%rax, %rbx
	movl	%edx, (%rax)
	movl	%esi, 4(%rax)
	movl	%ecx, 8(%rax)
	movl	(%r15), %eax
	leal	(%rax,%rax,2), %edi
	addl	%edi, %edx
	movl	%edx, (%rbx)
	callq	_cpu_to_le16
	movq	%rax, 40(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%rbx), %edi
	movl	4(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_p54_tx
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ## @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_DCFINIT,4,2   ## @P54_CONTROL_TYPE_DCFINIT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function p54_set_edcf
lCPI0_0:
	.long	9                               ; 0x9
	.long	16                              ; 0x10
lCPI0_1:
	.long	20                              ; 0x14
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_p54_set_edcf
	.p2align	2
_p54_set_edcf:                          ; @p54_set_edcf
	.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
Lloh0:
	adrp	x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _P54_CONTROL_TYPE_DCFINIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P54_CONTROL_TYPE_DCFINIT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w2, #48
	bl	_p54_alloc_skb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	w1, #48
	bl	_skb_put
	mov	x21, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w8, eq
	mov	w9, #6
	csel	w9, w9, wzr, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
Lloh14:
	adrp	x8, lCPI0_1@PAGE
Lloh15:
	ldr	d2, [x8, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x0]
	str	w9, [x0, #8]
	ldr	w8, [x19]
	add	w0, w8, w8, lsl #1
	fmov	w8, s0
	add	w8, w8, w0
	str	w8, [x21]
	bl	_cpu_to_le16
	str	x0, [x21, #40]
	mov	w0, #0
	bl	_cpu_to_le16
	stp	xzr, x0, [x21, #24]
	ldr	w0, [x21, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x21, #12]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_p54_tx
	mov	w0, #0
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ; @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_DCFINIT,4,2   ; @P54_CONTROL_TYPE_DCFINIT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
