	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_port
_get_port:                              ## @get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%esi, %rax
	xorl	%r12d, %r12d
	cmpq	%rdx, %rax
	jae	LBB0_10
## %bb.1:
	movq	%r8, %r14
	incl	%esi
	xorl	%r15d, %r15d
	movl	%esi, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rdi,%rax), %esi
	cmpb	%cl, %sil
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-48(%rsi), %ebx
	cmpb	$9, %bl
	ja	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r15,%r15,4), %ebx
	leal	(%rsi,%rbx,2), %r15d
	addl	$-48, %r15d
	incq	%rax
	incl	%r12d
	cmpq	%rdx, %rax
	jb	LBB0_2
	jmp	LBB0_9
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	movl	%r15d, %edi
	callq	_htons
	movl	%eax, (%r14)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_10
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_port: return %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"get_port: invalid char.\n"

	.no_dead_strip	_get_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_port
_get_port:                              ; @get_port
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x8, w1
	cmp	x8, x2
	b.hs	LBB0_8
; %bb.1:
	mov	x20, x4
	mov	w21, #0
	add	w19, w1, #1
	mov	w9, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0, x8]
	cmp	w10, w3, uxtb
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w10, w10
	sub	w11, w10, #48
	cmp	w11, #9
	b.hi	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	w10, w21, w9, w10
	sub	w21, w10, #48
	add	x8, x8, #1
	add	w19, w19, #1
	cmp	x8, x2
	b.lo	LBB0_2
	b	LBB0_8
LBB0_5:
	cbz	w21, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_htons
	str	w0, [x20]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_port: return %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"get_port: invalid char.\n"

	.no_dead_strip	_get_port
.subsections_via_symbols
