	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function https_to_ip
_https_to_ip:                           ## @https_to_ip
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_setup_sslctx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_connect_to_ip
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	movq	%r12, %rbx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_TLS_initiate
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_write_http_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_read_http_result
	movq	%rax, %rbx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_TLS_shutdown
	movq	%rbx, %rax
	jmp	LBB0_11
LBB0_5:
	movq	%r15, %rdi
	callq	_SSL_CTX_free
	jmp	LBB0_10
LBB0_6:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_8:
	movq	%r12, %rdi
	callq	_SSL_free
LBB0_9:
	movq	%r15, %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %edi
	callq	_fd_close
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"could not write to server"

	.no_dead_strip	_https_to_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function https_to_ip
_https_to_ip:                           ; @https_to_ip
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_setup_sslctx
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_connect_to_ip
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_TLS_initiate
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	mov	x1, x23
	mov	x2, x22
	bl	_write_http_get
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_read_http_result
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_TLS_shutdown
	mov	x0, x22
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_SSL_CTX_free
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _verb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	mov	x0, x21
	bl	_SSL_free
LBB0_9:
	mov	x0, x19
	bl	_SSL_CTX_free
	mov	x0, x20
	bl	_fd_close
LBB0_10:
	mov	x0, #0
LBB0_11:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"could not write to server"

	.no_dead_strip	_https_to_ip
.subsections_via_symbols
