	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function passive_mode
_passive_mode:                          ## @passive_mode
	.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
	movq	_myctladdr@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	_data@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_options@GOTPCREL(%rip), %rcx
	movq	_SO_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_socket_set_debug
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_command
	movq	_COMPLETE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_command
	cmpq	(%rbx), %rax
	jne	LBB0_6
LBB0_7:
	movq	_pasv@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_parse_epsv
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_data_addr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movl	%eax, (%r14)
	movq	_hisctladdr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_socket_get_address
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_socket_set_address_and_port
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_13
LBB0_9:
	movq	_data_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	callq	_parse_pasv
	testq	%rax, %rax
	js	LBB0_12
LBB0_10:
	movl	(%r15), %r14d
	movq	_data_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_socket_sockaddr_size
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_connect
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_14
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	jmp	LBB0_12
LBB0_6:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_12:
	movl	(%r15), %edi
	callq	_close
	movl	$-1, (%r15)
	movq	_sendport@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_13:
	movl	$1, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_myctladdr,8,3                  ## @myctladdr
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_data,4,2                       ## @data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_options,4,2                    ## @options
	.comm	_SO_DEBUG,4,2                   ## @SO_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EPSV"

	.comm	_COMPLETE,8,3                   ## @COMPLETE
L_.str.2:                               ## @.str.2
	.asciz	"PASV"

	.comm	_pasv,4,2                       ## @pasv
	.comm	_data_addr,8,3                  ## @data_addr
	.comm	_hisctladdr,4,2                 ## @hisctladdr
L_.str.4:                               ## @.str.4
	.asciz	"connect"

	.comm	_sendport,4,2                   ## @sendport
	.comm	_IPTOS_THROUGHPUT,4,2           ## @IPTOS_THROUGHPUT
L_str:                                  ## @str
	.asciz	"Passive mode refused."

	.no_dead_strip	_passive_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function passive_mode
_passive_mode:                          ; @passive_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _myctladdr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _myctladdr@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
Lloh5:
	adrp	x21, _data@GOTPAGE
Lloh6:
	ldr	x21, [x21, _data@GOTPAGEOFF]
	str	w0, [x21]
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh7:
	adrp	x8, _options@GOTPAGE
Lloh8:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SO_DEBUG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SO_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_socket_set_debug
LBB0_3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_command
Lloh15:
	adrp	x19, _COMPLETE@GOTPAGE
Lloh16:
	ldr	x19, [x19, _COMPLETE@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_command
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_5:
Lloh19:
	adrp	x23, _pasv@GOTPAGE
Lloh20:
	ldr	x23, [x23, _pasv@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_parse_epsv
Lloh21:
	adrp	x22, _data_addr@GOTPAGE
Lloh22:
	ldr	x22, [x22, _data_addr@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	x20, [x22]
	str	w8, [x20]
Lloh23:
	adrp	x8, _hisctladdr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hisctladdr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_socket_get_address
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_socket_set_address_and_port
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w0, #1
	b	LBB0_14
LBB0_8:
	ldr	x0, [x22]
	ldr	w1, [x23]
	bl	_parse_pasv
	tbnz	x0, #63, LBB0_13
LBB0_9:
	ldr	w19, [x21]
	ldr	x20, [x22]
	mov	x0, x20
	bl	_socket_sockaddr_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_connect
	tbnz	x0, #63, LBB0_12
; %bb.10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh28:
	adrp	x0, l_str@PAGE
Lloh29:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_13
LBB0_12:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
LBB0_13:
	ldr	w0, [x21]
	bl	_close
	mov	w8, #-1
	str	w8, [x21]
Lloh32:
	adrp	x8, _sendport@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sendport@GOTPAGEOFF]
	mov	w0, #1
Lloh34:
	str	w0, [x8]
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_myctladdr,8,3                  ; @myctladdr
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_data,4,2                       ; @data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_options,4,2                    ; @options
	.comm	_SO_DEBUG,4,2                   ; @SO_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EPSV"

	.comm	_COMPLETE,8,3                   ; @COMPLETE
l_.str.2:                               ; @.str.2
	.asciz	"PASV"

	.comm	_pasv,4,2                       ; @pasv
	.comm	_data_addr,8,3                  ; @data_addr
	.comm	_hisctladdr,4,2                 ; @hisctladdr
l_.str.4:                               ; @.str.4
	.asciz	"connect"

	.comm	_sendport,4,2                   ; @sendport
	.comm	_IPTOS_THROUGHPUT,4,2           ; @IPTOS_THROUGHPUT
l_str:                                  ; @str
	.asciz	"Passive mode refused."

	.no_dead_strip	_passive_mode
.subsections_via_symbols
