	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assemble_hw_header             ## -- Begin function assemble_hw_header
	.p2align	4, 0x90
_assemble_hw_header:                    ## @assemble_hw_header
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$8, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rsi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_3:
	movq	_ETHERTYPE_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -32(%rbp)
	movslq	(%r14), %rax
	addq	%rax, %r15
	movq	_ETHER_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_memcpy
	movl	(%rbx), %eax
	addl	%eax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHERTYPE_IP,4,2               ## @ETHERTYPE_IP
	.comm	_ETHER_HEADER_SIZE,4,2          ## @ETHER_HEADER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assemble_hw_header             ; -- Begin function assemble_hw_header
	.p2align	2
_assemble_hw_header:                    ; @assemble_hw_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, #8
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [x21, #8]
	mov	w2, #8
	bl	_memcpy
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_3:
Lloh0:
	adrp	x8, _ETHERTYPE_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHERTYPE_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp, #24]
	ldrsw	x8, [x19]
	add	x0, x20, x8
Lloh3:
	adrp	x20, _ETHER_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ETHER_HEADER_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x1, sp, #8
	bl	_memcpy
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHERTYPE_IP,4,2               ; @ETHERTYPE_IP
	.comm	_ETHER_HEADER_SIZE,4,2          ; @ETHER_HEADER_SIZE
.subsections_via_symbols
