	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function parse_pasv
LCPI0_0:
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.space	4
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_parse_pasv:                            ## @parse_pasv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	-28(%rbp), %rbx
	leaq	-32(%rbp), %r10
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	movq	%rax, %rdi
	pushq	%rbx
	pushq	%r10
	callq	_sscanf
	addq	$16, %rsp
	cmpl	$6, %eax
	jne	LBB0_1
## %bb.3:
	movl	-36(%rbp), %ecx
	movl	$255, %edx
	movd	%edx, %xmm0
	pinsrd	$1, -20(%rbp), %xmm0
	pinsrd	$2, %edx, %xmm0
	movl	-32(%rbp), %eax
	pinsrd	$3, %eax, %xmm0
	movd	-40(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, %ecx, %xmm1
	pinsrd	$2, %edx, %xmm1
	pinsrd	$3, -24(%rbp), %xmm1
	movd	-20(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movd	-24(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	punpcklqdq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0]
	pcmpgtd	%xmm0, %xmm3
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <255,0,u,0>
	pinsrd	$2, %ecx, %xmm0
	movdqa	%xmm1, %xmm2
	pminud	%xmm0, %xmm2
	pcmpeqd	%xmm1, %xmm2
	pcmpeqd	%xmm4, %xmm4
	pxor	%xmm2, %xmm4
	pcmpgtd	%xmm1, %xmm0
	packssdw	%xmm3, %xmm0
	pblendw	$1, %xmm4, %xmm0                ## xmm0 = xmm4[0],xmm0[1,2,3,4,5,6,7]
	psllw	$15, %xmm0
	pmovmskb	%xmm0, %ecx
	testl	$43690, %ecx                    ## imm = 0xAAAA
	jne	LBB0_7
## %bb.4:
	cmpl	$255, %eax
	jg	LBB0_7
## %bb.5:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	-40(%rbp), %eax
	shll	$24, %eax
	movl	-36(%rbp), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	-24(%rbp), %edi
	shll	$8, %edi
	orl	%ecx, %edi
	orl	-20(%rbp), %edi
	callq	_htonl
	movl	%eax, 4(%r14)
	movl	-32(%rbp), %edi
	shll	$8, %edi
	orl	-28(%rbp), %edi
	callq	_htons
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_1:
	leaq	L_str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	leaq	L_str(%rip), %rdi
LBB0_2:
	callq	_puts
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d,%d,%d,%d,%d,%d"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_str:                                  ## @str
	.asciz	"Can't parse passive mode string."

L_str.3:                                ## @str.3
	.asciz	"Passive mode address scan failure. Shouldn't happen!"

	.no_dead_strip	_parse_pasv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_pasv
_parse_pasv:                            ; @parse_pasv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #20
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	add	x7, sp, #8
	mov	x0, x8
	bl	_sscanf
	cmp	w0, #6
	b.ne	LBB0_13
; %bb.1:
	ldur	w8, [x29, #-20]
	cmp	w8, #255
	b.hi	LBB0_14
; %bb.2:
	ldr	w8, [sp, #24]
	tbnz	w8, #31, LBB0_14
; %bb.3:
	cmp	w8, #255
	b.gt	LBB0_14
; %bb.4:
	ldr	w8, [sp, #20]
	tbnz	w8, #31, LBB0_14
; %bb.5:
	cmp	w8, #255
	b.gt	LBB0_14
; %bb.6:
	ldr	w8, [sp, #16]
	tbnz	w8, #31, LBB0_14
; %bb.7:
	cmp	w8, #255
	b.gt	LBB0_14
; %bb.8:
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_14
; %bb.9:
	cmp	w8, #255
	b.gt	LBB0_14
; %bb.10:
	ldr	w8, [sp, #8]
	tbnz	w8, #31, LBB0_14
; %bb.11:
	cmp	w8, #256
	b.ge	LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh2:
	adrp	x8, _AF_INET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldur	w8, [x29, #-20]
	ldr	w9, [sp, #24]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldr	w9, [sp, #20]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [sp, #16]
	orr	w0, w8, w9
	bl	_htonl
	str	w0, [x19, #4]
	ldp	w9, w8, [sp, #8]
	orr	w0, w9, w8, lsl #8
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_16
LBB0_13:
Lloh5:
	adrp	x0, l_str.3@PAGE
Lloh6:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
LBB0_15:
	bl	_puts
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d,%d,%d,%d,%d,%d"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_str:                                  ; @str
	.asciz	"Can't parse passive mode string."

l_str.3:                                ; @str.3
	.asciz	"Passive mode address scan failure. Shouldn't happen!"

	.no_dead_strip	_parse_pasv
.subsections_via_symbols
