	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_nsap_ntoa                 ## -- Begin function inet_nsap_ntoa
	.p2align	4, 0x90
_inet_nsap_ntoa:                        ## @inet_nsap_ntoa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rax
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_inet_nsap_ntoa_tmpbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	movw	$30768, (%rax)                  ## imm = 0x7830
	leaq	2(%rax), %r10
	cmpl	$255, %edi
	movl	$255, %r8d
	cmovll	%edi, %r8d
	testl	%edi, %edi
	jle	LBB0_3
## %bb.4:
	cmpl	$2, %r8d
	movl	$1, %r9d
	cmovgel	%r8d, %r9d
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdi
	movq	%rcx, %r10
	cmpl	%edi, %r9d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %edx
	movl	%edx, %ecx
	shrl	$4, %ecx
	leal	55(%rcx), %r11d
	addl	$48, %ecx
	cmpl	$160, %edx
	cmovgel	%r11d, %ecx
	movb	%cl, (%r10)
	movl	(%rsi,%rdi,4), %ecx
	andl	$15, %ecx
	leal	55(%rcx), %r11d
	leal	48(%rcx), %edx
	cmpl	$10, %ecx
	cmovael	%r11d, %edx
	leaq	2(%r10), %rcx
	movb	%dl, 1(%r10)
	testb	$1, %dil
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rdi), %edx
	cmpl	%r8d, %edx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$46, 2(%r10)
	addq	$3, %r10
	movq	%r10, %rcx
	jmp	LBB0_8
LBB0_3:
	movq	%r10, %rcx
LBB0_9:
	movb	$0, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inet_nsap_ntoa_tmpbuf,8,3      ## @inet_nsap_ntoa_tmpbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_nsap_ntoa                 ; -- Begin function inet_nsap_ntoa
	.p2align	2
_inet_nsap_ntoa:                        ; @inet_nsap_ntoa
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _inet_nsap_ntoa_tmpbuf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _inet_nsap_ntoa_tmpbuf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x2, #0
	csel	x0, x9, x2, eq
	mov	w9, #30768
	mov	x11, x0
	strh	w9, [x11], #2
	mov	w9, #255
	cmp	w8, #255
	csel	w9, w8, w9, lt
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	cmp	w9, #1
	csinc	w10, w9, wzr, gt
	mov	w12, #55
	mov	w13, #48
	mov	w14, #46
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	mov	x11, x15
	cmp	w10, w8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x15, x8, #2
	ldr	w16, [x1, x15]
	cmp	w16, #160
	csel	w17, w13, w12, lt
	add	w16, w17, w16, lsr #4
	strb	w16, [x11]
	ldr	w15, [x1, x15]
	and	w15, w15, #0xf
	cmp	w15, #10
	csel	w16, w13, w12, lo
	add	w16, w16, w15
	add	x15, x11, #2
	strb	w16, [x11, #1]
	tbnz	w8, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w16, w8, #1
	cmp	w16, w9
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x11, #3
	strb	w14, [x11, #2]
	b	LBB0_2
LBB0_6:
	strb	wzr, [x15]
	ret
LBB0_7:
	strb	wzr, [x11]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_inet_nsap_ntoa_tmpbuf,8,3      ; @inet_nsap_ntoa_tmpbuf
.subsections_via_symbols
