	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_listen
_http_listen:                           ## @http_listen
	.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
	subq	$1168, %rsp                     ## imm = 0x490
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -40(%rbp)
	movq	16(%rdi), %r14
	leaq	-1188(%rbp), %r10
	leaq	-1082(%rbp), %rdi
	leaq	-1072(%rbp), %rbx
	movl	$10, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$1024, %r9d                     ## imm = 0x400
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	%r10
	callq	_av_url_split
	addq	$32, %rsp
	movl	$1886680168, %eax               ## imm = 0x70747468
	xorl	-1082(%rbp), %eax
	movzwl	-1078(%rbp), %ecx
	xorl	$115, %ecx
	orl	%eax, %ecx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	-1188(%rbp), %r9d
	subq	$8, %rsp
	leaq	-1184(%rbp), %rdi
	movl	$100, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	leaq	20(%r14), %rdi
	movq	_AVIO_FLAG_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r12), %rcx
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	leaq	-1184(%rbp), %rsi
	movq	%r15, %r8
	pushq	%r12
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_LOWER_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	(%r14), %rax
	movq	_HTTP_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	$200, 8(%r14)
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_http_handshake
	testl	%eax, %eax
	jg	LBB0_4
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_av_dict_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$1168, %rsp                     ## imm = 0x490
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

L_.str.1:                               ## @.str.1
	.asciz	"https"

L_.str.2:                               ## @.str.2
	.asciz	"tls"

L_.str.3:                               ## @.str.3
	.asciz	"listen"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ## @AVIO_FLAG_READ_WRITE
	.comm	_LOWER_PROTO,4,2                ## @LOWER_PROTO
	.comm	_HTTP_SINGLE,8,3                ## @HTTP_SINGLE
	.no_dead_strip	_http_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_listen
_http_listen:                           ; @http_listen
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1168
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0, #16]
	str	x1, [sp, #8]
	str	wzr, [sp]
	add	x0, sp, #126
	add	x4, sp, #136
	add	x6, sp, #20
	mov	w1, #10
	mov	x2, #0
	mov	w3, #0
	mov	w5, #1024
	mov	x7, #0
	bl	_av_url_split
	ldur	w8, [sp, #126]
	mov	w9, #29800
	movk	w9, #28788, lsl #16
	eor	w8, w8, w9
	ldrh	w9, [sp, #130]
	mov	w10, #115
	eor	w9, w9, w10
Lloh3:
	adrp	x10, l_.str@PAGE
Lloh4:
	add	x10, x10, l_.str@PAGEOFF
	orr	w8, w8, w9
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x9, x10, eq
	ldr	w5, [sp, #20]
	add	x0, sp, #26
	add	x4, sp, #136
	mov	w1, #100
	mov	x3, #0
	mov	x6, #0
	bl	_ff_url_join
	ldr	x2, [x22]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_av_dict_set_int
	tbnz	w0, #31, LBB0_5
; %bb.1:
	add	x0, x22, #20
Lloh9:
	adrp	x8, _AVIO_FLAG_READ_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVIO_FLAG_READ_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, x19, #8
	ldp	w6, w5, [x19]
	add	x1, sp, #26
	mov	x4, x20
	mov	x7, x19
	bl	_ffurl_open_whitelist
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _LOWER_PROTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOWER_PROTO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldr	x8, [x22]
Lloh15:
	adrp	x9, _HTTP_SINGLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HTTP_SINGLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #200
	str	w8, [x22, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_http_handshake
	cmp	w0, #0
	b.gt	LBB0_4
LBB0_5:
	mov	x21, x0
LBB0_6:
	add	x0, x22, #12
	bl	_av_dict_free
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	add	sp, sp, #1168
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

l_.str.1:                               ; @.str.1
	.asciz	"https"

l_.str.2:                               ; @.str.2
	.asciz	"tls"

l_.str.3:                               ; @.str.3
	.asciz	"listen"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ; @AVIO_FLAG_READ_WRITE
	.comm	_LOWER_PROTO,4,2                ; @LOWER_PROTO
	.comm	_HTTP_SINGLE,8,3                ; @HTTP_SINGLE
	.no_dead_strip	_http_listen
.subsections_via_symbols
