	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_request_done
_http_request_done:                     ## @http_request_done
	.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	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	movq	%rdi, %r15
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_evhttp_request_get_response_code
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_evhttp_request_get_response_code_line
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	callq	_evhttp_request_get_input_buffer
	leaq	-304(%rbp), %rsi
	movl	%eax, %edi
	movl	$256, %edx                      ## imm = 0x100
	callq	_evbuffer_remove
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movq	_stdout@GOTPCREL(%rip), %r14
	leaq	-304(%rbp), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	%r15, %rdi
	callq	_evhttp_request_get_input_buffer
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_evbuffer_remove
	testl	%eax, %eax
	jg	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	%rsi, %r14
	xorl	%eax, %eax
	callq	_EVUTIL_SOCKET_ERROR
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_bufferevent_get_openssl_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-304(%rbp), %rbx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_ERR_error_string_n
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	callq	_bufferevent_get_openssl_error
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movl	(%r12), %r14d
	movl	%ebx, %edi
	callq	_evutil_socket_error_to_string
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"some request failed - no idea which one though!\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"socket error = %s (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Response line: %d %s\n"

	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_http_request_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_request_done
_http_request_done:                     ; @http_request_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_evhttp_request_get_response_code
	mov	x21, x0
	mov	x0, x19
	bl	_evhttp_request_get_response_code_line
	stp	x21, x0, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	x0, x19
	bl	_evhttp_request_get_input_buffer
	add	x1, sp, #24
	mov	w2, #256
	bl	_evbuffer_remove
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x1, x0
Lloh8:
	adrp	x20, _stdout@GOTPAGE
Lloh9:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20]
	add	x0, sp, #24
	mov	w2, #1
	bl	_fwrite
	mov	x0, x19
	bl	_evhttp_request_get_input_buffer
	add	x1, sp, #24
	mov	w2, #256
	bl	_evbuffer_remove
	mov	x1, x0
	cmp	w0, #0
	b.gt	LBB0_3
	b	LBB0_8
LBB0_4:
	mov	x20, x1
	bl	_EVUTIL_SOCKET_ERROR
	mov	x19, x0
Lloh10:
	adrp	x21, _stderr@GOTPAGE
Lloh11:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	bl	_bufferevent_get_openssl_error
	cbz	x0, LBB0_7
; %bb.5:
	add	x22, sp, #24
Lloh14:
	adrp	x19, l_.str.1@PAGE
Lloh15:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	w2, #256
	bl	_ERR_error_string_n
	ldr	w0, [x21]
	str	x22, [sp]
	mov	x1, x19
	bl	_fprintf
	mov	x0, x20
	bl	_bufferevent_get_openssl_error
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_7:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_evutil_socket_error_to_string
	stp	x0, x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_8:
	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_10
; %bb.9:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"some request failed - no idea which one though!\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"socket error = %s (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Response line: %d %s\n"

	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_http_request_done
.subsections_via_symbols
