	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_and_recv_http
_send_and_recv_http:                    ## @send_and_recv_http
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r13
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	movq	(%rcx), %rdi
	movl	8(%rcx), %esi
	leaq	-56(%rbp), %rdx
	callq	_base64_encode
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r13, %rdx
	callq	_asprintf
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	_free
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.2:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_net_write
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	callq	_free
	testl	%r15d, %r15d
	js	LBB0_13
## %bb.4:
	movl	%r12d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_recv_loop
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	incl	%esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %r14
	movslq	8(%rbx), %rax
	movb	$0, (%r14,%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	leaq	4(%rax), %rdi
	movq	%r14, (%rbx)
	movl	%r14d, %eax
	subl	%edi, %eax
	addl	8(%rbx), %eax
	movl	%eax, 8(%rbx)
	cmpl	$3, %eax
	jle	LBB0_10
## %bb.8:
	addl	$-4, %eax
	movl	%eax, 8(%rbx)
	leaq	-72(%rbp), %rsi
	movl	$4, %edx
	callq	__krb5_get_int
	movq	-72(%rbp), %rdx
	movslq	8(%rbx), %rax
	cmpq	%rax, %rdx
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rdi
	addq	$8, %r15
	movq	%r15, %rsi
	callq	_memmove
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, %rdi
	callq	_krb5_data_zero
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_krb5_data_free
LBB0_12:
	movl	$-1, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET %s%s HTTP/1.0\r\n\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"\r\n\r\n"

	.no_dead_strip	_send_and_recv_http
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_and_recv_http
_send_and_recv_http:                    ; @send_and_recv_http
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #24]
	ldr	x0, [x3]
	ldr	w1, [x3, #8]
	add	x2, sp, #16
	bl	_base64_encode
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	x3, [sp, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x2, x22
	bl	_asprintf
	mov	x23, x0
	ldr	x0, [sp, #16]
	bl	_free
	mov	w22, #-1
	tbnz	w23, #31, LBB0_13
; %bb.2:
	ldr	x23, [sp, #24]
	cbz	x23, LBB0_13
; %bb.3:
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_net_write
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_free
	tbnz	w22, #31, LBB0_13
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_recv_loop
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x0, [x19]
	ldr	w8, [x19, #8]
	add	w1, w8, #1
	bl	_realloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldrsw	x8, [x19, #8]
	strb	wzr, [x0, x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	add	x0, x0, #4
	str	x20, [x19]
	ldr	w8, [x19, #8]
	sub	w9, w20, w0
	add	w8, w8, w9
	str	w8, [x19, #8]
	cmp	w8, #3
	b.le	LBB0_10
; %bb.8:
	sub	w8, w8, #4
	str	w8, [x19, #8]
	add	x1, sp, #8
	mov	w2, #4
	bl	__krb5_get_int
	ldr	x2, [sp, #8]
	ldrsw	x8, [x19, #8]
	cmp	x2, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x19]
	add	x1, x21, #8
	bl	_memmove
	mov	w22, #0
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_krb5_data_zero
	mov	x0, x20
	bl	_free
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_krb5_data_free
LBB0_12:
	mov	w22, #-1
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET %s%s HTTP/1.0\r\n\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"\r\n\r\n"

	.no_dead_strip	_send_and_recv_http
.subsections_via_symbols
