	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_read_header
_http_read_header:                      ## @http_read_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movq	_MAX_URL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_http_get_line
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	callq	_av_log
	movl	24(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_process_line
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%r13)
	jmp	LBB0_1
LBB0_5:
	cmpl	$-1, (%r13)
	je	LBB0_6
LBB0_9:
	leaq	8(%r13), %rbx
	movl	8(%r13), %edi
	addq	$12, %r13
	movq	%r13, %rsi
	callq	_cookie_string
	movq	%rbx, %rdi
	callq	_av_dict_free
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 16(%r13)
	je	LBB0_9
## %bb.7:
	cmpl	$2000000000, 4(%r13)            ## imm = 0x77359400
	jne	LBB0_9
## %bb.8:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_URL_SIZE,4,2               ## @MAX_URL_SIZE
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header='%s'\n"

	.no_dead_strip	_http_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_read_header
_http_read_header:                      ; @http_read_header
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x8, _MAX_URL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_URL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_http_get_line
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh11:
	adrp	x25, _AV_LOG_TRACE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh13:
	adrp	x24, l_.str@PAGE
Lloh14:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x24
	mov	x3, x23
	bl	_av_log
	ldr	w2, [x19, #24]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	bl	_process_line
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_http_get_line
	tbz	w0, #31, LBB0_2
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_9
LBB0_6:
	ldr	w0, [x19, #8]!
	add	x1, x19, #4
	bl	_cookie_string
	mov	x0, x19
	bl	_av_dict_free
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	sub	sp, x29, #64
	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
LBB0_9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.10:
	ldr	w8, [x19, #4]
	mov	w9, #37888
	movk	w9, #30517, lsl #16
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.11:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_URL_SIZE,4,2               ; @MAX_URL_SIZE
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header='%s'\n"

	.no_dead_strip	_http_read_header
.subsections_via_symbols
