	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_open
_http_open:                             ## @http_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	xorl	%eax, %eax
	cmpl	$1, (%r13)
	setne	%al
	movl	%eax, (%rdi)
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	%rsi, %rdi
	callq	_av_strdup
	movl	%eax, 32(%r13)
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	leaq	16(%r13), %rdi
	movq	(%r14), %rsi
	xorl	%edx, %edx
	callq	_av_dict_copy
LBB0_3:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.4:
	leaq	8(%r13), %r15
	callq	_strlen
	movl	%eax, %ebx
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movl	%ebx, %ecx
	leaq	(%rax,%rcx), %rsi
	addq	$-2, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	leal	3(%rbx), %esi
	movq	%r15, %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movb	$13, (%rax,%rcx)
	movq	(%r15), %rax
	movb	$10, 1(%rcx,%rax)
	movq	(%r15), %rax
	movb	$0, 2(%rcx,%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	cmpq	$0, 24(%r13)
	je	LBB0_10
## %bb.14:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_listen                    ## TAILCALL
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_http_open_cnx
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_av_dict_free
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"No trailing CRLF found in HTTP header. Adding it.\n"

	.no_dead_strip	_http_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_open
_http_open:                             ; @http_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x26, [x0, #8]
	ldr	w8, [x26]
	cmp	w8, #1
	cset	w8, ne
	str	w8, [x0]
Lloh0:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x26, #36]
	mov	x0, x1
	bl	_av_strdup
	str	w0, [x26, #32]
	cbz	w0, LBB0_10
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	add	x0, x26, #16
	ldr	x1, [x19]
	mov	w2, #0
	bl	_av_dict_copy
LBB0_3:
	mov	x23, x26
	ldr	x0, [x23, #8]!
	cbz	x0, LBB0_8
; %bb.4:
	bl	_strlen
	mov	x24, x0
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x23]
	add	x8, x8, w24, uxtw
	sub	x1, x8, #2
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_av_log
	add	w1, w24, #3
	mov	x0, x23
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	x8, [x23]
	sxtw	x9, w24
	mov	w10, #13
	strb	w10, [x8, x9]
	ldr	x8, [x23]
	add	x8, x9, x8
	mov	w10, #10
	strb	w10, [x8, #1]
	ldr	x8, [x23]
	add	x8, x9, x8
	strb	wzr, [x8, #2]
LBB0_8:
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_http_listen
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	bl	_http_open_cnx
	mov	x25, x0
	tbz	w0, #31, LBB0_14
; %bb.12:
	add	x0, x26, #16
	bl	_av_dict_free
	b	LBB0_14
LBB0_13:
	mov	x25, x0
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"No trailing CRLF found in HTTP header. Adding it.\n"

	.no_dead_strip	_http_open
.subsections_via_symbols
