	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_port
_print_port:                            ## @print_port
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_IPPROTO_ETHERTYPE@GOTPCREL(%rip), %rcx
	movq	_co@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%esi, (%rcx)
	jne	LBB0_7
## %bb.1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ether_types@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_match_value
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	jmp	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movl	%esi, %edi
	callq	_getprotobynumber
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_htons
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	(%r15), %rsi
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	movl	%eax, %edi
	callq	_getservbyport
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ETHERTYPE,4,2          ## @IPPROTO_ETHERTYPE
	.comm	_co,8,3                         ## @co
	.comm	_ether_types,4,2                ## @ether_types
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"0x%04x"

L_.str.2:                               ## @.str.2
	.asciz	"%d"

	.no_dead_strip	_print_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_port
_print_port:                            ; @print_port
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _IPPROTO_ETHERTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_ETHERTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _co@GOTPAGE
Lloh4:
	ldr	x8, [x8, _co@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w9, w1
	b.ne	LBB0_4
; %bb.1:
	cbz	x8, LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _ether_types@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ether_types@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_match_value
	cbz	x0, LBB0_9
; %bb.3:
	mov	x2, x0
	b	LBB0_8
LBB0_4:
	cbz	x8, LBB0_11
; %bb.5:
	mov	x0, x1
	bl	_getprotobynumber
	mov	x21, x0
	mov	x0, x20
	bl	_htons
	cbz	x21, LBB0_10
; %bb.6:
	ldr	x1, [x21]
	bl	_getservbyport
	cbz	x0, LBB0_11
LBB0_7:
	ldr	x2, [x0]
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x1, #0
	bl	_getservbyport
	cbnz	x0, LBB0_7
LBB0_11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x20
LBB0_13:
	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	_bprintf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ETHERTYPE,4,2          ; @IPPROTO_ETHERTYPE
	.comm	_co,8,3                         ; @co
	.comm	_ether_types,4,2                ; @ether_types
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"0x%04x"

l_.str.2:                               ; @.str.2
	.asciz	"%d"

	.no_dead_strip	_print_port
.subsections_via_symbols
