	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function type_trans
_type_trans:                            ## @type_trans
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_ARC_HDR_SIZE@GOTPCREL(%rip), %rax
	movq	_RFC1051_HDR_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	callq	_skb_reset_mac_header
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skb_pull
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_6
## %bb.3:
	movq	8(%r14), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_PACKET_OTHERHOST@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_PACKET_BROADCAST@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	8(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.8:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_ETH_P_ARP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htons                          ## TAILCALL
LBB0_11:
	incl	20(%r14)
	incl	16(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARC_HDR_SIZE,4,2               ## @ARC_HDR_SIZE
	.comm	_RFC1051_HDR_SIZE,4,2           ## @RFC1051_HDR_SIZE
	.comm	_PACKET_BROADCAST,4,2           ## @PACKET_BROADCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_PACKET_OTHERHOST,4,2           ## @PACKET_OTHERHOST
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_ARP,4,2                  ## @ETH_P_ARP
	.no_dead_strip	_type_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function type_trans
_type_trans:                            ; @type_trans
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ARC_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARC_HDR_SIZE@GOTPAGEOFF]
	ldr	x22, [x0, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RFC1051_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RFC1051_HDR_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w21, w9, w8
	bl	_skb_reset_mac_header
	mov	x0, x20
	mov	x1, x21
	bl	_skb_pull
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.2:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _PACKET_OTHERHOST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PACKET_OTHERHOST@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _PACKET_BROADCAST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PACKET_BROADCAST@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_6:
	ldr	w8, [x22, #8]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.8:
Lloh13:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x8, _ETH_P_ARP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_P_ARP@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	b	_htons
LBB0_11:
	ldr	d0, [x19, #16]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19, #16]
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARC_HDR_SIZE,4,2               ; @ARC_HDR_SIZE
	.comm	_RFC1051_HDR_SIZE,4,2           ; @RFC1051_HDR_SIZE
	.comm	_PACKET_BROADCAST,4,2           ; @PACKET_BROADCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_PACKET_OTHERHOST,4,2           ; @PACKET_OTHERHOST
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_ARP,4,2                  ; @ETH_P_ARP
	.no_dead_strip	_type_trans
.subsections_via_symbols
