	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libipw_copy_snap
_libipw_copy_snap:                      ## @libipw_copy_snap
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, -24(%rbp)
	movabsq	$730144440490, %rax             ## imm = 0xAA000000AA
	movq	%rax, (%rdi)
	movl	$3, 8(%rdi)
	movq	_ETH_P_AARP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%r14, %rax
	je	LBB0_3
## %bb.1:
	movq	_ETH_P_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%r14, %rax
	jne	LBB0_2
LBB0_3:
	movq	_P802_1H_OUI@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_RFC1042_OUI@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	16(%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rax), %rcx
	movq	16(%rbx), %rdx
	movq	%rcx, 8(%rdx)
	movq	16(%rax), %rax
	movq	16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_SNAP_SIZE@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,8), %rdi
	leaq	-24(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	addl	$4, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_AARP,4,2                 ## @ETH_P_AARP
	.comm	_ETH_P_IPX,4,2                  ## @ETH_P_IPX
	.comm	_P802_1H_OUI,8,3                ## @P802_1H_OUI
	.comm	_RFC1042_OUI,8,3                ## @RFC1042_OUI
	.comm	_SNAP_SIZE,4,2                  ## @SNAP_SIZE
	.no_dead_strip	_libipw_copy_snap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libipw_copy_snap
_libipw_copy_snap:                      ; @libipw_copy_snap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	movi.2s	v0, #170
	str	d0, [x0]
	mov	w8, #3
	str	w8, [x0, #8]
Lloh0:
	adrp	x8, _ETH_P_AARP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_AARP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
Lloh3:
	adrp	x21, _P802_1H_OUI@GOTPAGE
Lloh4:
	ldr	x21, [x21, _P802_1H_OUI@GOTPAGEOFF]
	cmp	x0, x20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ETH_P_IPX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IPX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
Lloh8:
	adrp	x8, _RFC1042_OUI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFC1042_OUI@GOTPAGEOFF]
	cmp	x0, x20
	csel	x21, x21, x8, eq
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [x8]
	ldr	x10, [x19, #16]
	str	x9, [x10]
	ldr	x9, [x8, #8]
	ldr	x10, [x19, #16]
	str	x9, [x10, #8]
	ldr	x8, [x8, #16]
	ldr	x9, [x19, #16]
	str	x8, [x9, #16]
Lloh10:
	adrp	x20, _SNAP_SIZE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _SNAP_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x0, x19, x8, lsl #3
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
	add	w0, w8, #4
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_AARP,4,2                 ; @ETH_P_AARP
	.comm	_ETH_P_IPX,4,2                  ; @ETH_P_IPX
	.comm	_P802_1H_OUI,8,3                ; @P802_1H_OUI
	.comm	_RFC1042_OUI,8,3                ; @RFC1042_OUI
	.comm	_SNAP_SIZE,4,2                  ; @SNAP_SIZE
	.no_dead_strip	_libipw_copy_snap
.subsections_via_symbols
