	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_assemble_skb
_hns_assemble_skb:                      ## @hns_assemble_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_alloc_skb
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_skb_put
	movq	%r14, 16(%rbx)
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	movl	$255, %esi
	callq	_memset
	movq	8(%rbx), %r14
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	sarl	%eax
	movslq	%eax, %rdx
	leaq	(,%rdx,4), %rdi
	addq	8(%rbx), %rdi
	decl	%edx
	movl	$170, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	_HNS_LB_TX_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_HNS_LB_TX_RING,4,2             ## @HNS_LB_TX_RING
	.no_dead_strip	_hns_assemble_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_assemble_skb
_hns_assemble_skb:                      ; @hns_assemble_skb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #64
	bl	_skb_put
	str	x20, [x19, #16]
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
	mov	w1, #255
	bl	_memset
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x20]
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ands	w8, w8, #0xfffffffe
	orr	w10, w8, #0x1
	csel	w8, w10, w8, lt
	asr	w8, w8, #1
	add	x0, x9, w8, sxtw #2
	sub	w2, w8, #1
	mov	w1, #170
	bl	_memset
Lloh6:
	adrp	x8, _HNS_LB_TX_RING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_LB_TX_RING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_HNS_LB_TX_RING,4,2             ; @HNS_LB_TX_RING
	.no_dead_strip	_hns_assemble_skb
.subsections_via_symbols
