	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_medsa_print                    ## -- Begin function medsa_print
	.p2align	4, 0x90
_medsa_print:                           ## @medsa_print
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_ND_TCHECK
	cmpq	$0, 8(%r15)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_medsa_print_full
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_SRC_DEV
	movq	%rbx, %rdi
	callq	_SRC_PORT
	movq	%rbx, %rdi
	callq	_VID
	movslq	%eax, %rdi
	callq	_ND_PRINT
LBB0_3:
	leaq	32(%rbx), %r14
	addl	$-8, %r12d
	addl	$-8, %r13d
	movq	%rbx, %rdi
	callq	_EXTRACT_16BITS
	movl	%r13d, %ecx
	movq	%rax, %r13
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_4
## %bb.5:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	_ethertype_values@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_tok2str
	movq	%r13, %rdi
	callq	_ND_PRINT
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_ethertype_print
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movq	_ethertype_values@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_tok2str
	movq	%r13, %rdi
	callq	_ND_PRINT
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_llc_print
	testq	%rax, %rax
	jns	LBB0_11
LBB0_10:
	cmpl	$0, (%r15)
	je	LBB0_12
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ND_DEFAULTPRINT                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHERMTU,8,3                   ## @ETHERMTU
	.comm	_ethertype_values,4,2           ## @ethertype_values
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Unknown"

	.comm	_tstr,4,2                       ## @tstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_medsa_print                    ; -- Begin function medsa_print
	.p2align	2
_medsa_print:                           ; @medsa_print
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ND_TCHECK
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_medsa_print_full
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	bl	_SRC_DEV
	mov	x0, x24
	bl	_SRC_PORT
	mov	x0, x24
	bl	_VID
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_ND_PRINT
LBB0_3:
	add	x22, x24, #32
	sub	w25, w25, #8
	sub	w23, w23, #8
	mov	x0, x24
	bl	_EXTRACT_16BITS
Lloh0:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_9
; %bb.4:
	mov	x24, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _ethertype_values@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ethertype_values@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_tok2str
	mov	x0, x24
	bl	_ND_PRINT
LBB0_6:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x25
	mov	x4, x23
	mov	x5, x21
	mov	x6, x20
	bl	_ethertype_print
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_10
; %bb.8:
Lloh8:
	adrp	x8, _ethertype_values@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ethertype_values@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_tok2str
	mov	x0, x24
	bl	_ND_PRINT
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x21
	mov	x5, x20
	bl	_llc_print
	tbz	x0, #63, LBB0_11
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x22
	mov	x1, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ND_DEFAULTPRINT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHERMTU,8,3                   ; @ETHERMTU
	.comm	_ethertype_values,4,2           ; @ethertype_values
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Unknown"

	.comm	_tstr,4,2                       ; @tstr
.subsections_via_symbols
